How to add/remove html blocks in member's area

From aMember Pro Documentation
Revision as of 02:00, 29 August 2012 by Caesar (talk | contribs)
Jump to: navigation, search

Create /amember/application/configs/site.php with this code:

//add new block at position member/main/left
Am_Di::getInstance()->blocks->add(new Am_Block('member/main/left', 'My Block Title', 'my-block-id', null, 'renderMyBlock'));

function renderMyBlock() {
    $html = <<<CUT 
     <p>You can put some html code here</p>
    return $html;

//remove block with id member-main-unsubscribe