The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
After first post and last post
I used to have some code on my 3version., it doesn't work on 4.
It would put an ad on the first post, then the last post. If there was 2 or 20 on the page it adjusted to it automatically. If someone could give me the code I'd greatly appreciate it. Thanks |
#2
|
||||
|
||||
If you are talking about both first and last posts on the page, then use:
$post['isfirstshown'] $post['islastshown'] If you are talking about the first and last posts in the thread, then use: $post['postcount'] == 1 $post['postid'] == $post['lastpostid'] |
#3
|
|||
|
|||
I want the one for the page. This is the only code I need ? Is there something before and after I need to add in?
|
#4
|
||||
|
||||
I gave you the conditions that will be true for posts meeting the criteria. These are the conditions that you can use in PHP code hooked at "postbit_display_complete" or within your postbit (or postbit_legacy) template in a template conditional.
|
#5
|
|||
|
|||
Never mind I got it thanks man!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|