Jump to content

MemberACPProfile extension not working


Go to solution Solved by Adriano Faria,

Recommended Posts

Hello, i'm trying to make something work on my localhost installation and after 2 hours of trying to add a block to ACP Member Profile, i'm coming here to ask for help.

What i did:

  • I've created an extension trough Developer Center
  • I've tried to change default output from return 'Hello World!'; to template but neither of those two seem to be working.
  • I've disabled DEV_MODE to check if that was the issue but even with dev_mode disabled, nothing showed.

Is there something i'm missing?

Link to comment
Share on other sites

1 hour ago, CodePixel said:

I've tried to change default output from return 'Hello World!'; to template but neither of those two seem to be working.

Could you show us your code maybe?

Link to comment
Share on other sites

17 hours ago, Daniel F said:

You'll also need either a hook or a MemberACPProfileTabs extension to register the new block/tell the system where to show the block.

Can any info about this be found somewhere?

Link to comment
Share on other sites

  • Solution
6 minutes ago, CodePixel said:

Can any info about this be found somewhere?

This is one example from one of my resources:

class _Main extends \IPS\core\MemberACPProfile\MainTab
{
    /**
     * Get left-column blocks
     *
     * @return    array
     */
    public function leftColumnBlocks()
    {
        return array(
            'IPS\membernotes\extensions\core\MemberACPProfileBlocks\AccountData',
        );
    }
    
    /**
     * Get main-column blocks
     *
     * @return    array
     */
    public function mainColumnBlocks()
    {
        return array(
            'IPS\membernotes\extensions\core\MemberACPProfileBlocks\Notes',
        );
    }
    
    /**
     * Get right-column blocks
     *
     * @return    array
     */
    public function rightColumnBlocks()
    {
        return array();
    }

    /**
     * Get Output
     *
     * @return    string
     */
    public function output()
    {    
        return parent::output();
    }
}
 

 

Mobile phone. No way to use CODE tag.

Link to comment
Share on other sites

1 minute ago, Adriano Faria said:

This is one example from one of my resources:

class _Main extends \IPS\core\MemberACPProfile\MainTab
{
    /**
     * Get left-column blocks
     *
     * @return    array
     */
    public function leftColumnBlocks()
    {
        return array(
            'IPS\membernotes\extensions\core\MemberACPProfileBlocks\AccountData',
        );
    }
    
    /**
     * Get main-column blocks
     *
     * @return    array
     */
    public function mainColumnBlocks()
    {
        return array(
            'IPS\membernotes\extensions\core\MemberACPProfileBlocks\Notes',
        );
    }
    
    /**
     * Get right-column blocks
     *
     * @return    array
     */
    public function rightColumnBlocks()
    {
        return array();
    }

    /**
     * Get Output
     *
     * @return    string
     */
    public function output()
    {    
        return parent::output();
    }
}
 

 

Mobile phone. No way to use CODE tag.

Thank you!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...