The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
PHP Sponsors Displaying in PM's
I have added the following code to my "postbit" template to show some google ads after the first and fifth post displayed on each page of a thread. I modified the "if condition" line. It works like a champ! The only problem I am now having is that it is showing these ads below Private Messages. Any clue how to stop them from showing up under a private message?
PHP Code:
|
#2
|
|||
|
|||
Replace your line
Code:
<if condition="((($post[postcount]-1)%10 == 0)|(($post[postcount]*5)%25 == 0))"> Code:
<if condition="(THIS_SCRIPT!='private') && (((($post[postcount]-1)%10 == 0)|(($post[postcount]*5)%25 == 0)))"> |
#3
|
||||
|
||||
Perfect! Thanks a million!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|