The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
VB If Conditional not working in AD code?
Hi All,
I'm trying to use the following conditional to stop an advertisement from showing in a specific forum: <vb:if condition="$forumid != 18"> ad code here </vb:if> It doesn't break the forum or anything, but the ad still shows in that forum. Anything glaringly wrong with the code? EDIT: To be more clear this is using the built in VB 4 ad code manager and trying to place it below the navbar. I am also checking one of their boxes (to not show it to a certain usergroup). |
#2
|
||||
|
||||
Try
Code:
<vb:if condition="$forumid != '18'"> And shouldn't that be this? Code:
$foruminfo['forumid'] |
#3
|
||||
|
||||
Actually, we can't guess at the variable name since we don't know what template it is. You need to use a variable that is registered for use in that template. Or, try $GLOBALS['forumid']
|
#4
|
||||
|
||||
I stand corrected.
|
#5
|
|||
|
|||
Thanks, the $GLOBALS bit did exactly what I was trying to do.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|