Under 4.1.3 I am using the stock advertisement management system. However I have certain forums/catagories that I do not want advertisements to show up. Is there a way to block certain catagories/forums from displaying advertisements?
Advertising - Manageing Ads
Collapse
X
-
use a condition:
Code:<vb:if condition="$GLOBALS[forumid] == XX OR $GLOBALS[forumid] == YY OR $GLOBALS[forumid] == ZZ" /> SHOW ADS </vb:if>
Michael Scheel
Facharzt für Kinder- und Jugendmedizin
Web: www.Kinderarzt-Cuxland.de
Facebook: Kinderarzt.Cuxland
Instagram: Kinderarzt.Cuxland -
Thanx, but where do I insert the code? I am guessing a template? Would you happen to know which one if so and location within? I am new to this sort of thing...-----------------------------------------------------------
Running custom version of vBulletin based on v4.2.5
PHP 7.4.14 :: MariaDB 10.5.8Comment
-
Just insert it like that in the Ad Manager where you put your ad codeComment
-
If I was to want to block forum 100 and all child forums under it, where would I insert the 100? Sorry very new to this stuff.-----------------------------------------------------------
Running custom version of vBulletin based on v4.2.5
PHP 7.4.14 :: MariaDB 10.5.8Comment
-
use a condition:
Code:<vb:if condition="$GLOBALS[forumid] != 100 AND $GLOBALS[forumid] != YY AND $GLOBALS[forumid] != ZZ" /> SHOW ADS </vb:if>
Add as many as you needMichael Scheel
Facharzt für Kinder- und Jugendmedizin
Web: www.Kinderarzt-Cuxland.de
Facebook: Kinderarzt.Cuxland
Instagram: Kinderarzt.CuxlandComment
-
When I add this code and save it I get "adding child to non-existent node!"
Not sure what I am doing wrong...
Thanx everyone for the help
Ok it seems the error is thrown when ever I use/enter
</vb:if> at the end of the code.-----------------------------------------------------------
Running custom version of vBulletin based on v4.2.5
PHP 7.4.14 :: MariaDB 10.5.8Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment