The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Modification in Postbit for Adsense banner messes up PM layout
Hi all,
Im using this code to add adsense banner after first and last post: <if condition="$post[postcount] == 1 OR $post[postcount] % 11 == 0 "> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="728" align="center"> <tr> <td class="thead" align="left">Sponsored Links</td> </tr> <tr><br> <td class="alt1" align="center"> <adsense code> </td> </tr> </table> </div> $spacer_close </if> I added this code at the end off the Postbit template. But now my PrivateMail page is not in the good size anymore, because im using the big adsense banners. So my question is: what do i need to modify in this code, so it will not work in the PM page. I dont need banners in PM pages anyway. There is a simular problem in this topic: https://vborg.vbsupport.ru/showthrea...hlight=adsense but they use another code there. They add $GLOBALS['adsense_position'] > 0 to the code. But that is not working for me. Please help? |
#2
|
||||
|
||||
<if condition="($post[postcount] == 1 OR $post[postcount] % 11 == 0) AND THIS_SCRIPT != private">
For future refrence, swearing and replacing a letter with an astersik is still swearing, just avoid it all together please. |
#3
|
|||
|
|||
Sorry for the swearing, didnt know another word at that moment.
<if condition="($post[postcount] == 1 OR $post[postcount] % 11 == 0) AND THIS_SCRIPT != private"> The code is not working. When i try it it gives me this error: Parse error: syntax error, unexpected T_PRIVATE in /home/*****/domains/****.nl/public_html/includes/adminfunctions_template.php(3593) : eval()'d code on line 237 Any suggestions? Edit: Fixed, used a new code for 3.6 and it is working fine now. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|