Quote:
Originally Posted by megabyte366
Great mod... i love it... i look but i didn't find it... how can i hide my staff tab, but make is visible to the staff only..
thanks..
|
You can wrap the specific <li> tag with a template conditional where the numbers after userinfo are the User Group IDs that you want to display the Tab too.
Code:
<if condition="is_member_of($vbulletin->userinfo, 5,6)">
CODE HERE
</if>
So for example if you had 3 Tabs and wanted to hide one for Staff Only it would look like this..
Code:
<div id="ajaxTFH" class="TFHmenu2">
<ul>
<li class="selected"><a href="tabforumhome.php?tabcat[]=1" rel="ajaxTFHcontentarea">TAB 1 NAME</a></li>
<li><a href="tabforumhome.php?tabcat[]=1&tabcat[]=2" rel="ajaxTFHcontentarea">TAB 2 NAME</a></li>
<if condition="is_member_of($vbulletin->userinfo, 5,6)">
<li><a href="tabforumhome.php?tabcat[]=100" rel="ajaxTFHcontentarea">STAFF</a></li>
</if>
</ul>
</div>