![]() |
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 |
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'] |
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?
|
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.
|
Never mind I got it thanks man!
|
I liked your post Mark but, you just can't see that I liked it because I am liking to many of your post and therefore cannot like your post for now.
|
All times are GMT. The time now is 01:06 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:
|