View Full Version : "if" condition for forum id?
Bundle
05-30-2010, 09:21 PM
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!
jamesyfx
05-30-2010, 09:31 PM
I think you could try
<if condition="$forumid == X AND is_member_of($bbuserinfo, Y)">
Code Here.
</if>
If you use this, it will only show up in the forumid you specify with X, by the member of the usergroup you specify with Y.
Remember, you can join up multiple conditions by using 'AND'.
Bundle
05-30-2010, 11:21 PM
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 :D
jamesyfx
05-31-2010, 01:23 AM
Not sure about a list, but you're welcome. Happy to help.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.