Remove add/renew tab

Discussion in 'Customization & add-ons' started by thefinancialpuzzle, May 3, 2010.

  1. thefinancialpuzzle

    thefinancialpuzzle New Member

    Joined:
    Mar 3, 2009
    Messages:
    13
    How would I remove the add/renew tab from the member.html

    {include file="member_menu.inc.html"} {if $smarty.get.tab eq "add_renew"} {include file="member_add_renew.html"} {elseif $smarty.get.tab eq "payment_history"} {include file="member_payment_history.html"}
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    comment it out?

    {* {include file="member_add_renew.html"} *}

    David
  3. mcintosh

    mcintosh New Member

    Joined:
    Dec 11, 2008
    Messages:
    10
    that doesn't comment out the tab, just the page from loading when the tab is clicked.
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    That was pre 3.2.3.
    Now you need to add a site.inc.php file with:
    TabMenu::getInstance()->remove(new TabMenu_Tab(null, null, 'add_renew'));


    David
  5. mcintosh

    mcintosh New Member

    Joined:
    Dec 11, 2008
    Messages:
    10
    David, if I add that to site.inc.php, I get the error:

    Fatal error: Call to undefined method TabMenu::remove() in /home/business/public_html/members/site.inc.php on line 3

    What do I need to include to make it work?
  6. mcintosh

    mcintosh New Member

    Joined:
    Dec 11, 2008
    Messages:
    10
    subscribed
  7. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Contact us in helpdesk and request latest tab.inc.php It will be inclded in next release and is not available yet.

Share This Page