![]() |
Conditional isn't working...
Hello all,
I'm trying to keep a Google Adsense code from appearing as a thread in my Adult Discussion forum. I'm using the following conditional within the Forum Display Template, right before the Adsense code. It's doesn't seem to be working as it still shows up as a post. I'm using 3.5.x Can anyone suggest what I'm doing wrong? Thanks! Code:
<if condition="$forum[forumid] != 29"> |
Try these (vBulletin can be messy with variable names):
Code:
<if condition="$forum['forumid'] != 29"> Code:
<if condition="$foruminfo['forumid'] != 29"> Code:
<if condition="$forumid != 29"> |
Thanks as always, will do!
--------------- Added [DATE]1206191927[/DATE] at [TIME]1206191927[/TIME] --------------- Ahhhh...Thank you, the second one worked! I really appreciate it! :D |
How do you add multiple forums? Like x, x1, x4, etc.
|
Code:
<if condition="in_array($foruminfo['forumid'], array( x, x1, x2))"> |
All times are GMT. The time now is 03:27 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:
|