The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Ads after first post in selected threads only
Hi All,
Newbie here so be nice Is it possible to put ads/banners after the first post in selected threads only? IE If i had 5 threads but only wanted ads/banners after the first post in 2 of them how would i do that? If its not possible through tweaking the default ad templates, would it be possible to use something like this: http://www.vbulletin.com/forum/showt...ght=first+post Any help/advice appreciated as it has been a long time since i did and coding or scripting so im very very rusty! |
#2
|
||||
|
||||
Dont think it'd be possible unless you made a plugin specifically for this need
|
#3
|
|||
|
|||
Quote:
Or how much it would cost to get one made? |
#4
|
||||
|
||||
You can use conditionals in the ad location template for after the first post.
|
#5
|
|||
|
|||
Quote:
thanks |
#6
|
||||
|
||||
Code:
<if condition="$thread['threadid'] == X">Ad Here</if> |
#7
|
|||
|
|||
The complexity of this depends on what criteria you want to use to decide whether the ad should be displayed or not. For example, if you only wanted to display the ad on threads that are older than X days you could use a conditional.
If you could tell us what criteria you want to use we might be able to help out with the correct conditional statement to use in your ad template. |
#8
|
|||
|
|||
awesome D,
works a treat. Thanks heaps. Prawn --------------- Added [DATE]1226312990[/DATE] at [TIME]1226312990[/TIME] --------------- MrEyes, Dismounteds suggestion worked fine. I'll just load up the IF functions for each thread i want an ad on. I basically just want to place a few selectively, no specific criteria. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|