Log in

View Full Version : Ads after first post in selected threads only


prawn_86
11-10-2008, 04:28 AM
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/showthread.php?t=157022&highlight=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!

SEOvB
11-10-2008, 04:32 AM
Dont think it'd be possible unless you made a plugin specifically for this need

prawn_86
11-10-2008, 04:33 AM
Dont think it'd be possible unless you made a plugin specifically for this need

Any ideas on where to start in order to make it?

Or how much it would cost to get one made?

Dismounted
11-10-2008, 05:11 AM
You can use conditionals in the ad location template for after the first post.

prawn_86
11-10-2008, 06:27 AM
You can use conditionals in the ad location template for after the first post.

Would you be able to explain further or give me a link for further reading?

thanks

Dismounted
11-10-2008, 07:05 AM
<if condition="$thread['threadid'] == X">Ad Here</if>

MrEyes
11-10-2008, 08:24 AM
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.

prawn_86
11-10-2008, 08:28 AM
awesome D,

works a treat. Thanks heaps.

Prawn

--------------- Added 1226312990 at 1226312990 ---------------

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.