Right now the menu has: "Main Page", "Add/Renew Subscription", "Payments History", "Edit Profile" I would like to remove the button for "Payments History" Does anyone know where I can do this in aMember v4 ? Thanks
Add this code to /amember/application/configs/site.php: PHP: Am_Di::getInstance()->hook->add(Am_Event::USER_MENU, create_function('$event', " \$event->getMenu()->removePage(\$event->getMenu()->findOneBy('id', 'payment-history'));"));
/amember/application/configs/site.php did not exist, so I created it and added the line you provided within <?php ?> tags. It worked perfectly. Thanks!
Hi, I have a similar question: How can I add items to the menu in aMember v4? For example, a protected page. Thanks.
I found the above quote in this thread: http://www.amember.com/forum/threads/how-to-customise-amember-user-tab-menu.14129/
Thanks Glacius! That worked, with one small problem. The CSS that makes the currently selected tab red is not working for the new tab. It works for all others, but not the new one. Since this thread is about customising the menu, does anyone know how to fix this? Thanks.
I've seen both threads and I want to customize the button label. Where can I check the existing methods for that class? I need something like $menu->findOneBy('id', 'new-add-renew')->setLabel('Whatever I need'); Cheers
Well, I've been looking and epic logic is epic. To set a label for any item: PHP: $menu->findOneBy('id', 'the-id-i-need')->setLabel('The label I want'); Amember guys: You should create a collaborative wiki. Cheers.
Thank you for suggestion and for publishing the solution. We are going to make this part of program customizable by GUI in next version.
they have one just for this topic too: http://www.amember.com/docs/How_to_customize_user_tabs_in_member's_area
hi, 3 years after the above post and there is no configuration GUI yet to edit the members menu, mmmmm
@fergus the issue is this menu is very dynamic and different modules/plugins/customization add/remove items automatically based on user criteria (user active subscriptions/user fields). It do this task a bit difficult. In most cases all necessary changes can be done with site.php and usually you do it only once during setup. So this task has not high priority. Do you need to do some exact changes? Please let me know and I will give you solution.