PDA

View Full Version : Template Code Permissions


Hell Bomb
06-19-2009, 01:41 AM
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.

Lynne
06-19-2009, 02:03 AM
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.

Outbackmark
06-19-2009, 02:35 AM
From what I understand you want to have certain links available only to some usergroups, you can do it like this -
<if condition="$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '6'"><tr><td class="vbmenu_option"><a href=
That would make the link that follows available only to mods and admins.

Hell Bomb
06-19-2009, 03:58 AM
Dude thank you so much i have been searching forever for how to do this its very very very appreciated.

From what I understand you want to have certain links available only to some usergroups, you can do it like this -
<if condition="$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '6'"><tr><td class="vbmenu_option"><a href=
That would make the link that follows available only to mods and admins.

--------------- Added 1245389945 at 1245389945 ---------------

wait, how do i end the command, like where do i put the final </if> after each statement

--------------- Added 1245390299 at 1245390299 ---------------

That code did not work does anyone else have an idea on how to do this?

--------------- Added 1245390669 at 1245390669 ---------------

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

<if condition="$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '6'"><div class="sidebar_cat">Moderation</div></if>