Hello I was wondering what template I modify to remove the tabs after the user logs in. At member.php there are 4 tabs Main Page: This I want to keep Add/Renew Subscription: I need to remove this I do not want anyone to edit add or renew their sub subscription. Your Payment History: I need to remove this I do not want anyone to edit their payment history Edit Profile: I need to remove this I do not want anyone to edit their profile
You can remove tab using this code(example for add_renew): TabMenu::getInstance()->remove(new TabMenu_Tab(null, null, 'add_renew'));
Hello I tried what you suggested but I think I may have added more than what you wrote. Now I think you are saying that I do the following on the member_menu.inc.html I see this part: TabMenu::getInstance() {php} $tabMenu = TabMenu::getInstance(); echo $tabMenu->render(); {/php} I do not know what the following means -> TabMenu::getInstance()->remove(new TabMenu_Tab(null, null, 'add_renew'));
Create (or edit) a file called site.inc.php put this in it <?php if (!defined('INCLUDED_AMEMBER_CONFIG')) die("Direct access to this location is not allowed"); TabMenu::getInstance()->remove(new TabMenu_Tab(null, null, 'add_renew')); ?> Upload to /amember/ David
Fatal error: Call to undefined method TabMenu::remove() in /home/tnt/public_html/amember/site.inc.php on line 14