The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Ad after every sixth post
Hello
I want to put an ad after every 6 post, to be shown only if the split page has 9 posts. This code: Code:
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 6 AND $GLOBALS[threadinfo][replycount] > 8"> If i split my pages on every 20 posts and the thread has 27 posts, the ad will be shown on second page. But on second split page are only 7 posts - i don't want to show it. Please, help with code. |
#2
|
||||
|
||||
Maybe this one works
Code:
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 6 AND $post[postcount] > 9"> |
#3
|
|||
|
|||
No... Same thing
|
#4
|
||||
|
||||
Basically the problem is that $post[postcount] indicates the post count of the thread (not of the page)
You could solve this problem just when you try to show something after first post of each page (condition would be $post['isfirstshow'] ) but i don't know a way to do what you want on each page without using a plugin :/ |
#5
|
|||
|
|||
mm, maybe advise about plugin?
I'm ex SMF and new in VB |
#6
|
||||
|
||||
Will try something as soon as i can
|
#7
|
|||
|
|||
OK, thank you very much.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|