Dashboard Buttons

Discussion in 'Customization & add-ons' started by kcarter, Nov 28, 2015.

  1. kcarter

    kcarter New Member

    Joined:
    Sep 30, 2015
    Messages:
    3
    Currently on the users' dashboard I have the following buttons:

    Dashboard
    Add/ Renew Subscription
    Edit Profile
    Helpdesk

    I would like to change the Add/Renew Subscription to "Our Products" and link it off to a page on our site.

    Would it be easier to remove that button then add the button I want... or change it?

    Either way, I have no idea how to do either of those. So any advice or help someone may have would be GREATY appreciated!

    THANKS
    Kristin
  2. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    493
    In /amember/application/configs/site.php
    PHP:
    Am_Di::getInstance()->hook->add('userMenu''siteUserMenu');
    function 
    siteUserMenu(Am_Event $event)
    {
        
    // $user = $event->getUser(); // if required
        
    $menu $event->getMenu();

        
    // Remove a tab
        
    $page $menu->findOneBy('id''add-renew');
        
    $menu->removePage($page);
            
    $menu->addPage(array(
              
    'id' => 'site-mypage',
              
    'label' => ___('myPage'),
              
    'uri' => '/myPage',
              
    'order' => 300,));
    }
    caesar likes this.

Share This Page