The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I want to put some code after the first post on every page.
I've found code that will put a statement after the first post; <if condition="$post[postcount] == 1"> However, this only does it once. When the user clicks Page 2 I want the ad to show again after 1st post on that page. Has to be dynamic though since users can choose how many posts per page they see. Anyone know? |
#2
|
|||
|
|||
![]()
well, you would need to get a variable with the number of posts a user has set to display per page, then it should be easy to calculate which posts are on the first page with some simple php I guess..
|
#3
|
|||
|
|||
![]() Code:
<if condition="$post[postcount] % $vboptions[maxposts] == 1"> |
#4
|
|||
|
|||
![]()
Well that's even easier, great idea Gray Matter!
|
#5
|
|||
|
|||
![]()
I can't really take the credit. I found it a while ago while searching vB.org.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|