Log in

View Full Version : Right column with usergroup permissions


Evoir
09-06-2011, 04:46 PM
vB 3.8
I want to add a right hand column in vB which I know how to do... but I want to list all the top level forums there (like 12) but have the listing respect vB usergroup permissions. For example: The list would be something like this (could be hard coded)

Staff
Board
Classroom 1
Classroom 2
etc

If you are in the Staff usergroup, your permissions on the forum allow you to see the "Staff" link that I create. How do I have vB respect those permissions on the links I put in the right column? Attaching a sketch to illustrate (ignore the part about the breadcrumb)

What code do I use for vB to show/not show depending on usergroup?

Evoir
09-06-2011, 05:41 PM
OK. I didn't realize they were called Template Conditionals
<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if>

For anyone else trying to do this:
https://vborg.vbsupport.ru/showthread.php?t=215032&highlight=template+conditionals