![]() |
Putting ad spot beween say 20th and 21st posts in thread?
I searched around and didn't find a current way to do this to the templates (partly because 'ad' is only two letters), so forgive me if I missed it, but what I am looking for is a way to insert an ad banner spot between say the 20th and 21st posts in a thread, for all threads. Something like if thread has 25+ posts showing on this page, put an ad spot between number 20 and 21, or whatever.
Can anyone point me in the right direction? I looked at some of the ad management plugins/mods and the current ones don't seem to have ads between specified posts as an option. |
I would like to know this too.
|
I think the variable you would look at is $post['postcount']. So at the top of your postbit (or postbit_legacy) template, you would put something like:
HTML Code:
<if condition="$post['postcount'] == 21"> |
Quote:
|
What you do is something like ...
HTML Code:
<if condition="$post['postcount'] % 10 == 0"> |
All times are GMT. The time now is 07:09 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|