
09-08-2008, 11:09 PM
|
 |
|
|
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by bobster65
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>
|
Wouldn't that be:
Code:
<if condition="is_member_of($bbuserinfo, 5, 6)">
I thought $vbulletin-> only worked in files.
|