On some cases, you might want to customize how the Contact Details page shows or hides the Tabs. If you wish to customize how it behaves, here is a quick example to teach you how to do it. Let's say we wish to hide a Tab based on the membership feature. For this particular case, we would edit the Website - Account - Menu Tabs widget. So go to Toolbox -> Widget Manager and look for the Website - Account - Menu Tabs widget. Customize it so we can start playing with it.


As an example, let us say you want to hide the About tab (Last tab) for your free members which have the subscription id of 3. In this case, we scroll to around line 157 and you will find the following code:

 

} else {
      echo '<li class="';
 
      if ($pars[1] == "about") {
          echo 'active';
      } else {
          echo 'tabs';
      }
      echo '"><a href="/account/about" rel="listing">'.$Label[account_listing_tab_4].'</a></li>';
}

 

We would change it to:


} else {
    if ($user_data[subscription_id] != 3) {
      echo '<li class="';
 
      if ($pars[1] == "about") {
          echo 'active';
      } else {
          echo 'tabs';
      }
      echo '"><a href="/account/about" rel="listing">'.$Label[account_listing_tab_4].'</a></li>';
    }
}

 

So that the whole echo to create the about tab will not appear unless the member is NOT a free member.  In this example, you can see I used the $user_data[subscription_id] which is the one we use when we want to compare a part of the code against a membership level. The number 3 here varies depending on membership level and we can find this number by simply going to Members -> Membership Level and looking at the actual subscription id