The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
"if" condition for forum id?
Hi. Basically I want to add something to the navbar template, but only have it show up for certain usergroups, and in certain sections of the forum. I know the condition for usergroups, but what's the condition for e.g. "if currently in forum id 10"? Is there one?
Thanks! |
#2
|
|||
|
|||
I think you could try
Code:
<if condition="$forumid == X AND is_member_of($bbuserinfo, Y)"> Code Here. </if> Remember, you can join up multiple conditions by using 'AND'. |
#3
|
||||
|
||||
Excellent, just what I was looking for thanks!
Is there a list out there somewhere of useful vb variables? If not, someone should make one! It'd definitely come in handy |
#4
|
|||
|
|||
Not sure about a list, but you're welcome. Happy to help.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|