Quote:
Originally Posted by Okiewan
Okay...
This conditional inserts code after each first post in a thread.
What I'd like to do is modify it, to add another piece of code a few posts down in the same thread. Ie; "insert after first post, then insert after 6th post"
Or... after EVERY "x"th reply in a thread.
The current conditional:
PHP Code:
<if condition="$post[postid] == $GLOBALS['FIRSTPOSTID']">
Any help? Thanks in advance!
|
I know in java I'd use the mod function like the following :
PHP Code:
<if condition="($post[postid]%6) == 0">
That would display it for any post ID that was evenly divisible by 6. I would assume PHP has a mod function as well but I'm not sure if the operator is the same (%).