The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
I would like to know this too.
|
#3
|
||||
|
||||
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"> an ad <if> |
#4
|
|||
|
|||
Is there a way to count posts as a multiple of a number? Such as multiples of 10, ie. 10, 20, 30, 40... So the conditional would only apply if the post count is a multiple of 10...?
|
#5
|
||||
|
||||
What you do is something like ...
HTML Code:
<if condition="$post['postcount'] % 10 == 0"> do something </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|