View Full Version : Ads in specific forums only
hobsdv
03-11-2010, 06:02 AM
Im trying to add a script advertisement to a specific forum only
i want for example to show banners in x forum threads only
is it possible.
PinoyRepublic
03-13-2010, 08:57 AM
i believe we have the same problem :)
i tried some sample from other site but still no luck.
<vb:if condition="$forum['forumid'] != x">
<vb:if condition="$foruminfo['forumid'] != x">
etc
hope somebody could help us
borbole
03-13-2010, 06:08 PM
Have a look at the template conditional article.
https://vborg.vbsupport.ru/showthread.php?t=231525
PinoyRepublic
03-14-2010, 11:31 PM
i already read a similar article like that unfortunately it doesn't work if you put it in the ad position template. base on my tests it does work if you put it in one of the main templates like navbar, FORUMHOME, etc.
so right now my temporary solution is to put the ad codes with the conditionals directly in the templates where i want the ads to appear.
Jabong82
03-20-2010, 11:30 AM
I also have this question.
I am trying to do the same thing, but in the advertising part of the admincp in Vbulletin I can't get any of the options for "Display this ad if" to work. Is that what this is used for?
For example if I create an Ad using the Vbulletin Template in the AdminCP, if I choose "Display this ad if" say user is browsing xxx forum, does that mean this ad will only show up in xxx forum? I can't seem to get it to work.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.