PDA

View Full Version : Adsense javascript fix?


caliman
08-20-2008, 02:26 AM
When I use the following in postbit legacy:

<if condition="$post[postcount] == 5">
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">Reef Links</td> </tr> <tr> <td class="alt1" align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-00083";
/* 728x90, created 5/2/08 Middle Post */
google_ad_slot = "5490243987";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td> </tr>
</table> </div>
$spacer_close
</if>


It breaks multi-quote and attachments ajax on all posts greater than 5 on the page. Those before 5 work fine.

Does anyone know of a fix for this issue?

caliman
08-25-2008, 06:44 PM
26 views. No replies? Anybody know a fix?

UaECasher
08-25-2008, 07:17 PM
Why not just use Advertisements system v2.5 (https://vborg.vbsupport.ru/showthread.php?t=179083)

Opserty
08-25-2008, 08:41 PM
If you're going to modify code, don't be to surprised that you aren't getting replies.

<if condition="$post[postcount] == 5">
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">Reef Links</td> </tr> <tr> <td class="alt1" align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-00083";
/* 728x90, created 5/2/08 Middle Post */
google_ad_slot = "5490243987";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td> </tr>
</table> </div>
$spacer_close
</if>