The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template Code Permissions
Hello, i am looking to make it so certain categories of the side bar will only show to certain user groups.
Here is what i am trying to do code wise To make a category you need this code <div class="forumlinks"> and then like all the other links you want under it, is there any way i can make that code only display for certain user groups. so say someone in VIP user group will only be able to see that catgory and all the links in that category. |
#2
|
||||
|
||||
What side bar? You need to be more explicit about where you are talking about and state exactly what template you are wanting to modify.
|
#3
|
||||
|
||||
From what I understand you want to have certain links available only to some usergroups, you can do it like this -
Code:
<if condition="$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '6'"><tr><td class="vbmenu_option"><a href= |
#4
|
|||
|
|||
Dude thank you so much i have been searching forever for how to do this its very very very appreciated.
Quote:
wait, how do i end the command, like where do i put the final </if> after each statement --------------- Added [DATE]1245390299[/DATE] at [TIME]1245390299[/TIME] --------------- That code did not work does anyone else have an idea on how to do this? --------------- Added [DATE]1245390669[/DATE] at [TIME]1245390669[/TIME] --------------- I got it to work i had to edit the script a little to get it to work but it helped alot thank you again. here is the code that i ended up using Code:
<if condition="$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '6'"><div class="sidebar_cat">Moderation</div></if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|