The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I want to add ads to all forum sections except one.
Is there a way of adding a, "User is not browsing forum" drop down box? Or, is there another way round this that I an not seeing? I'm running v4.2.1 |
#2
|
|||
|
|||
![]()
If you're putting the ad in the thread display (showthread) you can put the html inside a template conditional
Code:
<vb:if condition="$forum['forumid'] != 100"> AD HTML HERE </vb:if> |
#3
|
|||
|
|||
![]()
Not sure I understand what you are saying here nerbert....
Using something like the Ad Manager I wanted to add a banner to all forums except one. |
#4
|
|||
|
|||
![]()
Do you want to add this to the forum display pages or showthread, where the threads are displayed?
I don't have ads on my site but I'm pretty sure you can use template conditionals in the ad html so you just put all the html inside a conditional. I used forum id = 100 as an example, use the actual id of the forum where you don't want the ad. |
#5
|
|||
|
|||
![]()
It is a strip of ads that goes just below the NavBar which means they show everywhere.
It is just one forum section that I don't want them displayed. |
#6
|
|||
|
|||
![]()
You would need to create a new div tag under the navbar just above the body_wrapper to house the ads, then code the ads into the div tag itself and css it in correctly. What kind of ads do you want? Animated Images? Slideshow of Images?
|
#7
|
|||
|
|||
![]()
Turns out very little information is available in the navbar so I had to use $GLOBALS
This should do the trick: Code:
<vb:if condition="!in_array($GLOBALS['forumid'], array(2,3,4,5))"> ------YOUR ADS GO HERE------- </vb:if> |
#8
|
|||
|
|||
![]() Quote:
Quote:
I have a found a way round this now by creating another style exactly the same in appearance etc for the section I don't want the ads in. In ad manager I have then ticked the conditional Display this ad if... User is browsing using style in the original style. So this now displays the ads in all sections except the one I don't want it to which has it's own style. Hope this makes sense? Thanks for the help though folks :up: |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|