The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
if statement for checking what forum i'm viewing.
I figured out how to block off code using if's for user groups. how can it do it for 1 or many forums by id number? Similar to what's below...
<vb:if condition="is_member_of($bbuserinfo, 4,5,6)"> |
#2
|
||||
|
||||
<vb:if condition="in_array($forum['forumid'], array(1,2,3))">code to display in forums</vb:if>
change the 1,2,3 to the forums you want the code to display in. |
#3
|
|||
|
|||
Isn't $forum['forumid'] a vb3 variable? foruminfo[] now right?
|
#4
|
|||
|
|||
I do have vb 4 and this doesn't seem to work. I want to skip showing adsense code if they are browsing particular forums, 41, 12, 143. Tried both ways, neither worked.
<vb:if condition="!in_array($foruminfo['forumid'], array(41, 12, 143))"> <!-- adsense code --> </vb:if> --------------- Added [DATE]1299448314[/DATE] at [TIME]1299448314[/TIME] --------------- I found a solution that seems to work. <vb:if condition="!in_array($GLOBALS[forumid], array(41, 12, 143))"> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|