Making the second post in vbulletin topic an advert. Problem!

Status
Not open for further replies.

dude

New Member
Hello,

On one of my websites, Immigrant.ie - Living and working in Ireland - Immigration - Powered by vBulletin I've made the second post in my topics a google advert.

You can see an example here: Immigrantion to Ireland - Page 2 - Immigrant.ie - Living and working in Ireland - Immigration

The problem is that the last (the bottom) quick reply icon now no longer works. I'm assuming this is because the inserted advert is messing up the counter or something like that.

I added the advert by editing the postbit template.

Does anyone know of a (free) working solution for this?

The bottom of my postbit looks like this -

PHP:
<!-- / post $post[postid] popup menu -->
 
 
<if condition="$show['spacer']">
 </div>
 $spacer_close
</if>
<!-- / post #$post[postid] -->
<if condition="!$GLOBALS['FIRSTPOSTID']"> 
$spacer_open 
<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="alt1" align="center"> 
<br />
<script type="text/javascript"><!--
google_ad_client = "pub-5837688024799585";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-03-20: Immi
google_ad_channel = "2321808298";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "0000FF";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br /><br />
</if> 
    </td> 
</tr> 
</table> 
</div> 
$spacer_close 
</if>

Thanks :)
 

mneylon

Administrator
Staff member
There are several threads on vbulletin.org on integrating adsense into vbulletin in varying positions - including making it really prominent for guest users.
I'd recommend having a poke around over there
 

paul

Ninja
you can always reset the template and start again... I know I have to do that from time to time.
 

dude

New Member
Solved this, in case anyone's interested -

PHP:
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
 <div align="center">
  <div class="page" style="width:100%; text-align:left">
   <div style="padding:0px 25px 0px 25px">
    <div id="edit1204" style="padding:0px 0px 6px 0px">
<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="alt1" align="center">
        <br />
<script type="text/javascript"><!--
google_ad_client = "pub-5837688024799585";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-03-20: Immi
google_ad_channel = "2321808298";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "0000FF";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br /><br />
        </td>
    </tr>
    </table>
    </div>
</div></div></div></div>
</if>

- placed at the very bottom of postbit.
 
Status
Not open for further replies.
Top