PDA

View Full Version : Ad after first post



Chris
07-29-2006, 09:53 AM
I added the common adsense forum integration of an ad after the first post. The reason is that in my upcommon optimization article I mention this as a recommendation and so its easier to illustrate if I do it here.

Emancipator
07-29-2006, 05:59 PM
its not that annoying either. Its not great, but i thought it would really annoy the hell out of me. Hows it convert?

Chris
08-07-2006, 02:57 PM
I don't track it separately from the other adcodes and I don't think I have enough uniques on this forum for accurate statistics.

agua
11-29-2006, 07:05 PM
Chris - did you use a vb hack for this?

I'm testing "vB Ad Management" - but can only get my ads to show to registered users... if they aren't registered - no ads :(

Chris
11-29-2006, 07:15 PM
Yes I did, it was a specific "adsense" hack for vb 3.0 that I only had to do minor edits to for it to work in vb 3.5.
Put this at the very end of your postbit_legacy template, obviously changing your google id.


<if condition="$post[postcount] == 1">

$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">
<script type="text/javascript"><!--
google_ad_client = "pub-3280446741348688";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="4554257847";
google_color_border = "DFDFDF";
google_color_bg = "DFDFDF";
google_color_link = "DD0A2D";
google_color_text = "000000";
google_color_url = "DD0A2D";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>

</div>
$spacer_close

</if>

agua
11-29-2006, 07:22 PM
Do you have a link... or do you know what it was called :)

agua
11-29-2006, 07:27 PM
Sorry Chris - didn't see your code :)

agua
11-29-2006, 07:41 PM
Cool - works great :)

I had to post it at the end of my Postbit template as well - but it works great :)

Thanks

Chris
11-30-2006, 08:36 AM
here is the vb 3.6 version



<if condition="$post[postcount] == 1">


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style = "margin: 0px; padding: 0px;">
<tr>
<td class="thead" $scrolltothis style="font-weight:normal">Word from our Sponsor:</td>
</tr>
<tr>
<td class="alt1" style="padding:0px">
<div class="smallfont" align="center">

<script type="text/javascript"><!--
google_ad_client = "pub-3280446741348688";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="4554257847";
google_color_border = "DFDFDF";
google_color_bg = "DFDFDF";
google_color_link = "DD0A2D";
google_color_text = "000000";
google_color_url = "DD0A2D";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
</tr>
</table>


</if>

Erin
01-23-2007, 08:52 PM
Be sure to check out this thread on vB.com (http://www.vbulletin.com/forum/showthread.php?t=194634). It's got some good info and links to code snippets.

polspoel
01-24-2007, 02:48 AM
It's already been like that since september last year :p

Anyway, I doubt you get much clicks on these forums since even if we (webmasters) do recognize them, we usually don't click.

James
01-24-2007, 02:50 PM
I agree with Emancipator: it's not really intrusive or anything.