![]() |
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. |
Maybe this one works
Code:
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 6 AND $post[postcount] > 9"> |
:( No... Same thing
|
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 :/ |
mm, maybe advise about plugin?
I'm ex SMF and new in VB :) |
Will try something as soon as i can
|
OK, thank you very much.
|
All times are GMT. The time now is 12:01 AM. |
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:
|