PDA

View Full Version : How do I modify this code?


Parker Clack
03-02-2009, 04:26 PM
I know how to put in the code for posting something after the first post on a page by using

<if condition="!$GLOBALS['FIRSTPOSTID']">

What conditional would I use where code I am wanting to display occurs after the 5th post on every page?

Thanks,
Parker

Lynne
03-02-2009, 04:56 PM
If you look at the postbit template, you'll see that this variable is used to count the posts - $post[postcount]

Parker Clack
03-02-2009, 05:28 PM
Ok,

But what I am wanting to do is when someone is on page one they will see what I want displayed after the fifth post, then on page two after the fifth post again, and the 3rd page the fifth post, etc.

How would I do this?

Lynne
03-02-2009, 05:46 PM
Hmmm, that will be a bit more difficult because different users can have it set to show different number of posts per page. I've seen the php for that, but don't know it off the top of my head. Hopefully someone else can come post it.