![]() |
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). |
Try
Code:
<vb:if condition="$forumid != '18'"> And shouldn't that be this? Code:
$foruminfo['forumid'] |
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']
|
I stand corrected.
|
Quote:
|
All times are GMT. The time now is 05:31 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|