Useful Links

Discussion in 'aMember Pro v.4' started by wplook, Dec 23, 2011.

  1. wplook

    wplook New Member

    Joined:
    Jun 17, 2011
    Messages:
    8
    Hi,

    How to add useful links?

    Attached Files:

  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Have a look:
    you need to set hook for getMemberLinks event.
  3. wplook

    wplook New Member

    Joined:
    Jun 17, 2011
    Messages:
    8
    Give me please more details.

    Thanks
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Create or edit amember/application/configs/site.php

    PHP:
    <?php

    function gmlCustom(Am_Event $event)
    {
        
    $event->addReturn('My Custom Link''http://www.yoursite.com/customlink/');
    }
    // add our custom handler for getMemberLinks event
    Am_Di::getInstance()->hook->add('getMemberLinks''gmlCustom');

  5. wplook

    wplook New Member

    Joined:
    Jun 17, 2011
    Messages:
    8
    Thank You

Share This Page