The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Modifying specific post number in thread
Hey all,
Trying to figure out how to insert code (an ad) in the 4th post signature. Similar to First post sig ad location, but 4th post of each page.... Um, don't know what else to say.. Anyway i'm stuck.. I get that it will have to be inserted in the postbit, but how do I specify 4th posts of each page? postcount? Is there a 'isforthpost' code? any other ideas I can try? Thanks in advance. |
#2
|
||||
|
||||
You would use the remainder operator. Look at post number divided by 4 and if remainder is 0 then do.....
http://php.net/manual/en/language.op...arithmetic.php |
#3
|
|||
|
|||
Done!
Just incase someone stumbles upon this asking a similar question... Code:
<if condition="($post[postcount] -4) %25== 0"> </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|