View Full Version : conditional needed to stop banner from showing on forum
GoTTi
05-16-2006, 08:52 PM
how would i stop a banner from showing on a certain forum id #?
it should be a conditional right?
i will have the banner in the header template. please help. thanks.
Dr.Viggy
05-16-2006, 09:01 PM
<if condition="is_member_of($bbuserinfo, 2,9,10,11)"> where the numbers are the usergroups you want to see it.
then input the code for your banner and end it with
</if>
after re-reading your request i realized that you wanted to choose by forum ID not but usergroup. i'm not 100%sure on that one, but something similar
"is_member_of" will be changed and instead of $bbuserinfo it will be $forumid
sorry about that.
GoTTi
05-17-2006, 04:05 PM
can u explain that please. gimme a working example of the code im trying to get here
Dr.Viggy
05-17-2006, 08:07 PM
the code i gave you is to make a conditional for usergroups, not for forum IDs. i don't know the code to use for forum IDs. with my code you can choose to make something show up for certain groups if you want. for instance, paid members on my site don't see google ads, but free users do. i can give you a more indepth example if you think that's the route you want to take
As Dr. Viggy said the numbers in
<if condition="is_member_of($bbuserinfo, 2,9,10,11)">
Represent the usergroup numbers, those usergroups would be the only ones to see what is inbetween the <if>'s. If you need to find out the usergroup numbers you can easily find them in the usergroup manager where it'll show you the numbers.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.