Quote:
Originally Posted by DeanoG
it is possible to use Usergroup permissions to view tabs?
I have some Beta Software testing forums on my board only visible to the Beta Testing Group.
Is it possible to show the a "Beta Forum" tab using usergroup permissions so that the tab is only visible to the Beta testers ?
|
yes, just wrap the specific tab with this... (use the ID's of the user groups you want to be able to view it)
Code:
<if condition="is_member_of($vbulletin->userinfo, 5,6)">
</if>
so it would look something like this.. (The code in
RED is what you would need to add ...
Code:
<!-- Tabbed Forum Home Tabs Layout -->
<ul id="forumtabs" class="shadetabs">
<li><a href="#" rel="tcontent1" class="selected">Tab 1 Name</a></li>
<li><a href="#" rel="tcontent2">Tab 2 Name</a></li>
<if condition="is_member_of($vbulletin->userinfo, 5,6)">
<li><a href="#" rel="tcontent3">BETA FORUM Tab/a></li>
</if>
</ul>
<!-- /Tabbed Forum Home Tabs Layout -->
Then you will also want to wrap the tab display data as well ..
Code:
<!-- Tabbed Forum Home – START BETA FORUM TAB Content Layout -->
<if condition="is_member_of($vbulletin->userinfo, 5,6)">
<div id="tcontent3" class="tabcontent">
CONTENT REMOVED FOR EXAMPLE ONLY
</div>
</if>
<!-- /Tabbed Forum Home – END BETA FORUM TAB Content Layout-->