Log in

View Full Version : Modification in Postbit for Adsense banner messes up PM layout


delnouro
11-02-2006, 04:26 PM
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/showthread.php?t=98057&page=2&highlight=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?

Zachery
11-02-2006, 09:53 PM
<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.

delnouro
11-03-2006, 09:40 AM
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.