PDA

View Full Version : vBulletin Google Adsense Deep Integration Tutorial


NeutralizeR
14 Feb 2006, 16:02
This tutorial is written to show you how to use your Google Adsense codes efficiently in your vBulletin (3.5+) templates. I have a very heavily modified vBulletin style but i used the original style for this tutorial to be simple and match the colors. You can change everything as you want to find the most fitting results for your vBulletin.

Alternate ads-PSAs to Collapsible ads:

Collapsing ad units are an optional advanced feature of alternate ads. A+ the collapsing ad unit code will 'collapse' your ad unit so that it takes up no page space if there are no relevant ads available. This allows you to minimize any blank space that would otherwise occur through the use of alternate colors.

To implement the collapsing ad units feature, you'll need to host a small HTML file on your domain. Your alternate ad URL will reference this file, which will be called if there are no ads available for that particular ad unit.
http://joomla.medspan.info/forum/index.php/topic,57.0.html
(http://joomla.medspan.info/forum/index.php/topic,57.0.html)
Create a HTML file with this code and save it as collapsible_ad.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<script src="http://pagead2.googlesyndication.com/pagead/google_adsense_script.js" type="text/javascript"></script>
</head>
<body style="background-color: transparent;">
</body>
</html>

Upload this file to your web server. (http://www.yourwebsite.com/collapsible_ad.html)

Go to your Google Adsense account and grap your google_ad_client and google_ad_channel codes. (google_ad_channel is optional)

Open Notepad and paste these codes as you will change them with youradsensecode and yourchannelcode on the following steps.

We will use these there ad layouts in this tutorial:

728 x 90 Leaderboard
468 x 60 Banner
234 x 60 Half Banner

...and one link unit:

468 x 15

Note: navbar template editing step is optional because it may be against the Google Adsense rules for you. If you edit navbar template, almost all of your vBulletin pages will have Adsense ads at the top of the pages. My navbar and header templates include some flash, gif and text content and i update them regularly. It's why i use Adsense ads in navbar. You may apply this step (the ad unit) manually to your FORUMHOME, FORUMDISPLAY, etc templates...

Open your navbar template: vBulletin AdminCP > Styles & Templates > Edit Templates > Navigation / Breadcrumb Templates > navbar

(for the link unit)

Find:

<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
Add below:
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al_s";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "22229C";
google_color_url = "000000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Results:
http://img234.imageshack.us/img234/9625/snap17ub.gif

http://img234.imageshack.us/img234/2651/snap21my.gif


(for the ad unit)

Find:
<!-- / PAGENAV POPUP -->
</if>

Add below:

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="center">
&nbsp;<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>&nbsp;
</td>
</tr>
</table><br />

Results:
http://img426.imageshack.us/img426/4695/snap36cz.gif

http://img153.imageshack.us/img153/7584/snap43oi5wb.gif

Save.



Open your FORUMDISPLAY template: vBulletin AdminCP > Styles & Templates > Edit Templates > Forum Display Templates > FORUMDISPLAY

(First thread)

Find:
<if condition="$show['threads']">

Add below:

<tr>
<td align="center" class="alt1">-</td>
<td align="center" class="alt2">-</td>
<td class="alt1">
<div>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "22229C";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>

<td class="alt2 smallfont" align="center">Sponsored Links</td>

<td class="alt1" align="center">-</td>
<td class="alt2" align="center">-</td>
<if condition="$show['inlinemod']"><td class="alt1" align="center">-</td></if>

</tr>


(Last thread)

Find:
<!-- end show threads -->

Add below:

<tr>
<td align="center" class="alt1">-</td>
<td align="center" class="alt2">-</td>
<td class="alt1">
<div>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "22229C";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>

<td class="alt2 smallfont" align="center">Sponsored Links</td>

<td class="alt1" align="center">-</td>
<td class="alt2" align="center">-</td>
<if condition="$show['inlinemod']"><td class="alt1" align="center">-</td></if>

</tr>

Results:
http://img383.imageshack.us/img383/6998/snap58lv.gif

http://img109.imageshack.us/img109/7800/snap68am.gif

Save.

http://www.vbulletin.org/forum/showthread.php?t=102466


Open your search_results template: vBulletin AdminCP > Styles & Templates > Edit Templates > Search Templates > search_results

(First result)

Find:
$searchbits

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<else />

Add below:
<tr>
<td align="center" class="alt1">-</td>
<td align="center" class="alt2">-</td>
<td class="alt1">
<div>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "22229C";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>

<td class="alt2 smallfont" align="center">Sponsored Links</td>

<td class="alt1" align="center">-</td>
<td class="alt2" align="center">-</td>
<td class="alt1" align="center">-</td>
<if condition="$show['inlinemod']"><td class="alt1" align="center">-</td></if>

</tr>


(Last result)

Find:
</tr>
$searchbits

Add below:
<tr>
<td align="center" class="alt1">-</td>
<td align="center" class="alt2">-</td>
<td class="alt1">
<div>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "22229C";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>

<td class="alt2 smallfont" align="center">Sponsored Links</td>

<td class="alt1" align="center">-</td>
<td class="alt2" align="center">-</td>
<td class="alt1" align="center">-</td>
<if condition="$show['inlinemod']"><td class="alt1" align="center">-</td></if>

</tr>

Results:
http://img302.imageshack.us/img302/9012/snap98ab.th.gif (http://img302.imageshack.us/my.php?image=snap98ab.gif)

http://img302.imageshack.us/img302/1894/snap104dt.gif

Save.


Open your postbit(legacy) template: vBulletin AdminCP > Styles & Templates > Edit Templates > Postbit Templates > postbit(legacy)

(First post and last shown post)

Find:
<!-- / message -->

Add below:
<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
<center>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</if>

Save.
http://www.vbulletin.org/forum/showpost.php?p=773130&postcount=7

Results:
https://www.vbulletin.org/forum/

http://img441.imageshack.us/img441/8657/snap87bw.th.gif (http://img441.imageshack.us/my.php?image=snap87bw.gif)


vBulletin Google Adsense Deep Integration Tutorial by NeutralizeR (http://www.msxlabs.org/forum/members/1-neutralizer.html) @ www.MsXLabs.org (http://www.MsXLabs.org)

Snake
14 Feb 2006, 16:13
Wow thanks man, this is a great tutorial! :D

The Chief
14 Feb 2006, 16:29
wow, thats an awesome tutorial, thanks so much!!

Developer
16 Feb 2006, 20:46
Very nice thnx i wish there is install button :)

Smiry Kin's
17 Feb 2006, 15:35
i no google is used by most forums, as there to little, but could you make a guide for targetpoint please?

TheComputerGuy
17 Feb 2006, 18:27
I wasn't 100% that you could make a post part of Googles ad. I thought someone got in trouble for that being it looks like original content.

This is one heck of a tutorial though!

NeutralizeR
17 Feb 2006, 18:53
i no google is used by most forums, as there to little, but could you make a guide for targetpoint please?

You mean section targeting?


What is section targeting and how do I implement it?

Section targeting allows you to suggest sections of your text and HTML content that you'd like us to emphasize or downplay when matching ads to your site's content. By providing us with your suggestions, you can assist us in improving your ad targeting. We recommend that only those familiar with HTML attempt to implement section targeting.

To implement section targeting, you'll need to add a set of special HTML comment tags to your code. These tags will mark the beginning and end of whichever section(s) you'd like to emphasize or de-emphasize for ad targeting.

The HTML tags to emphasize a page section take the following format:

<!-- google_ad_section_start -->

<!-- google_ad_section_end -->

You can also designate sections you'd like to have ignored by adding a (weight=ignore) to the starting tag:

<!-- google_ad_section_start(weight=ignore) -->

With these tags added to your HTML code, your final code may look like the following:

<html><head><title>Section targeting</title></head>
<body>
<!-- google_ad_section_start -->

This is the text of your web page. Most of your content resides here.

<!-- google_ad_section_end -->
</body>
</html>
You can use section targeting to make suggestions about as many sections of a page as you like. However, please be aware that we can't guarantee results, and that it may take up to 2 weeks before our crawlers take into account any changes you've made to your site.

In order to properly implement this feature, you'll need to include a significant amount of content within the section targeting tags. Including insufficient content may result in less relevant ads or PSAs. In addition, please keep in mind that this feature should only be used to emphasize significant sections of your site's relevant content. It is against our program policies to manipulate the ad targeting to result in ads that are not relevant to the content of your pages.

Example:

Open your FORUMHOME template: vBulletin AdminCP > Styles & Templates > Edit Templates > Forum Home Templates > FORUMHOME

Find:
<!-- main -->
$forumbits
<!-- /main -->

Replace with:
<!-- google_ad_section_start -->
<!-- main -->
$forumbits
<!-- /main -->
<!-- google_ad_section_end -->

Find:
<!-- what's going on box -->

Add above:
<!-- google_ad_section_start(weight=ignore) -->

Find:
<!-- end what's going on box -->

Add below:
<!-- google_ad_section_end -->

(You can also try section targeting for your FORUMDISPLAY and SHOWTHREAD templates)

I wasn't 100% that you could make a post part of Googles ad. I thought someone got in trouble for that being it looks like original content.

This is one heck of a tutorial though!

Matching the colors and deep integrating the ads into your pages are google suggestions. The ads are stated as "Sponsored Links" or "Advertisements" so it won't be a problem.


Customize ads to complement your site.

You spend lots of time perfecting your website's look and feel, and we want AdSense to fit in. So we let you customize the appearance of your ads to fully complement your site by choosing from over 200 colors and 24 pre-set color palettes (you can create and save your own custom palettes using a simple point-and-click color selection tool.

10sion
18 Feb 2006, 01:56
Simply amazing. Thank you so much. :)

I personally use Yahoo Publisher, but I'm sure I can still implement everything the same.

NeutralizeR
18 Feb 2006, 21:39
Some More...

Open your FORUMHOME template: vBulletin AdminCP > Styles & Templates > Edit Templates > Forum Home Templates > FORUMHOME

Find:
<!-- what's going on box -->

Add above:
<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="center">
&nbsp;<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>&nbsp;
</td>
</tr>
</table>

Save.

Open your MEMBERINFO template: vBulletin AdminCP > Styles & Templates > Edit Templates > Member Info Templates > MEMBERINFO

Find: <if condition="$show['signature']">

Add above: <table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="center">
&nbsp;<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>&nbsp;
</td>
</tr>
</table>

Save.

If you have vBadvanced installed:

Open your adv_portal template: vBulletin AdminCP > Styles & Templates > Edit Templates > vBadvanced CMPS Templates > adv_portal

Find:$footer

Add above:<center><script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>

Save...

Citizen
18 Feb 2006, 21:50
Who wants to make this into a plug-in? :D

NeutralizeR
18 Feb 2006, 21:54
Who wants to make this into a plug-in? :D

Good question.

I don't have enough time to do it... maybe somebody around can make it for you.

Regards

applehat
28 Feb 2006, 19:57
pointsless to make a plugin to my knoladge...since a plugin doesn't do template mods...

I guess...it could be some sort of plugin...but template mods would have to be made still.

BeaLzeBuB
05 Mar 2006, 04:07
I'm so sorry, but my English is too bad, i must speak own language....

NeutralizeR,

Bi iki sorum olacak sana, cevap verirsen çok memnun kalırım.
ilk başta yaptığın html dosyası ne için? O dosyanın amacı nedir? Bir de google aynı sayfada 2 reklama izin vermiyor bildiğim kadarıyla, yani header'a bir reklam koyunca aynı anda showthread'de de reklam varsa ikisinden biri gozukmuyor. Bunu nasıl aşarız? Yoksa o dosyanın amacı o mu?

Şimdiden teşekkür ederim...

Ayrıca siteni çok beğeniyorum, şu kısır zamanda en iyi rap parçaları sizden temin edebiliyorum. Bunun içinde teşekkürler..

NeutralizeR
05 Mar 2006, 05:07
I'm so sorry, but my English is too bad, i must speak own language....

NeutralizeR,

Bi iki sorum olacak sana, cevap verirsen çok memnun kalırım.
ilk başta yaptığın html dosyası ne için? O dosyanın amacı nedir? Bir de google aynı sayfada 2 reklama izin vermiyor bildiğim kadarıyla, yani header'a bir reklam koyunca aynı anda showthread'de de reklam varsa ikisinden biri gozukmuyor. Bunu nasıl aşarız? Yoksa o dosyanın amacı o mu?

Şimdiden teşekkür ederim...

Ayrıca siteni çok beğeniyorum, şu kısır zamanda en iyi rap parçaları sizden temin edebiliyorum. Bunun içinde teşekkürler..

html dosyası sayfa içeriğiyle ilgili reklam bulunamadığında reklam alanını yok etmek için kullanılıyor. Yani gereksiz yere alan kaplanmamış oluyor. Google bir sayfada maksimum üç adet reklam birimine izin veriyor. navbar, ilk mesaj, son mesaj... kural dışı bir durum söz konusu değil.

Saygılar

P.S. the questions were about collapsible ads and the ad units

BeaLzeBuB
05 Mar 2006, 06:23
thank you NeutralizeR

dartworth
05 Mar 2006, 18:31
thanks...:)

busybeeburns
06 Mar 2006, 17:24
Hi

I seem to be having trouble with the FORUMDISPLAY integration - the code seems to be working as there is a correct layout at the top of the forum, but the google adsense banner does not show.

NeutralizeR
06 Mar 2006, 17:31
Hi

I seem to be having trouble with the FORUMDISPLAY integration - the code seems to be working as there is a correct layout at the top of the forum, but the google adsense banner does not show.

Try removing the google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html"; line to test...

markbolyard
06 Mar 2006, 17:31
Remember however if you have multiple areas for which you are showing adsense on one page, but google doesn't have enough ads to fill all the spots based on your content, then that area will be blank. Give Google a little time to optimize it's ads for your content, then the ads will most likely show unless your forum content is so obscure that there are not many advertisers in that area.

busybeeburns
06 Mar 2006, 17:58
Ah thanks Mark, I realised it was because I already had a landscape banner at the top. Removing it allowed the FORUMDISPLAY banner to work. :)

Blaine0002
10 Mar 2006, 15:57
i can make as much of it into a plugin as possible if you guys want :)

djr
13 Mar 2006, 03:39
Very useful info here, thanks for the tutorial!

m_k
15 Mar 2006, 19:20
great information - thanks for sharing this NeutralizeR...

I have tried out most of the ideas, and have settled on using the forumdisplay ads and the two for search results

forumdisplay is working great, but for some reason search results just comes back with collapsible ads all the time - I cut and pasted the code exactly, so can't figure out what isn't working

NeutralizeR
15 Mar 2006, 22:23
great information - thanks for sharing this NeutralizeR...

I have tried out most of the ideas, and have settled on using the forumdisplay ads and the two for search results

forumdisplay is working great, but for some reason search results just comes back with collapsible ads all the time - I cut and pasted the code exactly, so can't figure out what isn't working
:) try different searches... it'll be enough to see the ads once...
Remember however if you have multiple areas for which you are showing adsense on one page, but google doesn't have enough ads to fill all the spots based on your content, then that area will be blank. Give Google a little time to optimize it's ads for your content, then the ads will most likely show unless your forum content is so obscure that there are not many advertisers in that area.

raagaswaram
16 Mar 2006, 02:27
everything works fine except the postbitlegacy part i inserted the code but itz not displaying?

Reef
16 Mar 2006, 03:10
Excellent post NeutralizeR

I have a small problem though.... For some reason no matter what I try, only one add will display on any page.. If I add a second one anywhere it will not appear..

Any idea what that might be?

EDIT: nevermind I just now saw your explaination above... Sorry I missed it before

I will wait to see if they will populate later on

Thanks for the great work with this

hotrod1
19 Mar 2006, 03:27
Excellent article, thanks alot!

NeutralizeR
19 Mar 2006, 05:49
If you allow search engines to spider the single versions of your posts (This post (http://www.vbulletin.org/forum/showpost.php?p=928884&postcount=28), for example... showpost.php), you may want to use adsense ads on this template, too. I think you don't want to miss any possible renevue...

Open your SHOWTHREAD_SHOWPOST template: vBulletin AdminCP > Styles & Templates > Edit Templates > Show Thread Templates > SHOWTHREAD_SHOWPOST

Find:

$postbits

Add above:
<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="center">
&nbsp;<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>&nbsp;
</td>
</tr>
</table>

(Or just the <script> section if you don't want the table.)

You can also add this code after $postbits if you want a second ad unit.

zkilzz
20 Mar 2006, 20:37
i can make as much of it into a plugin as possible if you guys want :)

Hey!
I really want a plugin! Is it fare away?

Marius

thecool
28 Apr 2006, 16:34
Is there a way to place the ads randomly within the ForumDisplay as opposed to the first and last post?

similar to this:
http://www.aywe.com/news-announcements/

NeutralizeR
11 May 2006, 06:47
Google Adsense Products All in One @ navbar with rotating highlight images on the left side of the ads: http://www.msxlabs.org/forum/

Try switching between pages or refresh... I can post about it if you like.

Langly
12 May 2006, 22:41
How can I make my search button only be my google search and remove the vbulletin search? Right now I have the header dropdown for search showing vbulletin search and below that is my google search.

deep_blue
15 May 2006, 18:24
Hi

I am unable to do required modification as am getting parse error on account of php.

Following msg is coming "


Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/coolaven/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 41

what to do

deep_blue
18 May 2006, 18:07
Is Anybody Out There

NeutralizeR
18 May 2006, 18:49
Is Anybody Out There
Which template and what code modification are you trying to do?

deep_blue
19 May 2006, 19:35
I tried to edit FORUMDISPLAY template and post coes to get google ad on forum display pages but got this error

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/coolaven/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 41

Is my VB got corrupt

NeutralizeR
19 May 2006, 19:46
I tried to edit FORUMDISPLAY template and post coes to get google ad on forum display pages but got this error

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/coolaven/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 41

Is my VB got corrupt
Does it happen everytime when you try to login admincp?
Turn off the product-plugin system...
Try disabling plugins one by one and re-enable them to figure out which one causes this error...

I've rechecked the codes in my messages and they seem to be ok.

Langly
20 May 2006, 03:42
How can I make my search button only be my google search and remove the vbulletin search? Right now I have the header dropdown for search showing vbulletin search and below that is my google search.

Any way to do this?

NeutralizeR
27 May 2006, 15:19
Any way to do this?
Search vbulletin.org, there must be a mod for what you want.

ferreo
27 May 2006, 23:10
Excellent post, thank you very much for sharing. I'll post results later.

Dan
27 May 2006, 23:20
Interesting guide on placement of Adsense ads, very useful. Might even use a few of the locations you suggested :) Thanks

obmob
02 Jun 2006, 17:51
XD i was trying to click "install" button, very useful, not only for vB pages.

thanks

version2
02 Jun 2006, 19:29
Damn, that forum is way too annoying. Sorry, not trying to be an ass....just too busy...too much stuff moving around.

NeutralizeR
03 Jun 2006, 02:31
Damn, that forum is way too annoying. Sorry, not trying to be an ass....just too busy...too much stuff moving around.
Thank you :)

NeutralizeR
09 Jun 2006, 14:10
RECOMMENDED

Results:
http://img135.imageshack.us/img135/2866/snap17va.th.gif (http://img135.imageshack.us/my.php?image=snap17va.gif)

http://img119.imageshack.us/img119/2517/snap21ew.th.gif (http://img119.imageshack.us/my.php?image=snap21ew.gif)

BLazeD1
21 Jun 2006, 05:04
Can someone post results with this please?

Thank you!

webgroup
30 Jun 2006, 18:19
I tried to edit FORUMDISPLAY template and post coes to get google ad on forum display pages but got this error

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/coolaven/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 41

Is my VB got corrupt


Same here, it happens when trying to edit the templates.
Vbulletin warns you of the error and let you choose to go back or continue anyways.
I tried in 2 forums with 3.5.4

With both FORUMDISPLAY and POSTBIT

NeutralizeR
30 Jun 2006, 20:54
Same here, it happens when trying to edit the templates.
Vbulletin warns you of the error and let you choose to go back or continue anyways.
I tried in 2 forums with 3.5.4

With both FORUMDISPLAY and POSTBIT
Copy the codes to your text editor first and check for any special characters possibly added by vBulletin... and re-check your google adsense codes.

BTW, I've upgraded my forum to vb 3.6 Beta 3 and it seems this guide doesn't need to be updated.

Regards

webgroup
30 Jun 2006, 21:17
Copy the codes to your text editor first and check for any special characters possibly added by vBulletin... and re-check your google adsense codes.

BTW, I've upgraded my forum to vb 3.6 Beta 3 and it seems this guide doesn't need to be updated.

Regards


I'm getting the error by just pasting the initial part of the code.

Just by pasting this in the FORUMDISPLAY:
<tr>
<td align="center" class="alt1">-</td>
<td align="center" class="alt2">-</td>
<td class="alt1">
<div>

NeutralizeR
30 Jun 2006, 21:21
*edit*

It seems ok... Can you try editing your templates via another browser?

Martin64
07 Jul 2006, 05:14
Excellent little tutorial, cheers. :)

Also, here's a little tip in case you only want to display it for guests, not members. Simply put the codes (as instructed in the first posts) between these tags:

<if condition="!$bbuserinfo[userid]">

*code*

</if>

Macktr
13 Jul 2006, 11:52
thank you NeutralizeR

dsmoke
29 Jul 2006, 14:04
this looks amazing can anyone say that their adsense revenue went up x% after doing this?

sportsoutlaw
29 Jul 2006, 20:34
yes, I can say it did.

I didn't use this exactly though.

I still use a leaderboard below the navbar in showthread and above quick reply.
I am doing this in place of the DAI tutorial section that places adsense directly inside a members post. I didn't feel comfortable with that portion of the tutorial. (just my personal preference, not knocking it in any way)

DeepXP
15 Aug 2006, 01:01
sorry to bump topic like this but the guide mentioned for first and last post ads does not work well with vbulletin 3.6

it shows ads in first 3 posts in the thread....

NeutralizeR
15 Aug 2006, 01:30
sorry to bump topic like this but the guide mentioned for first and last post ads does not work well with vbulletin 3.6

it shows ads in first 3 posts in the thread....
Not tested yet but these conditionals should still work:

<if condition="(($post[postcount]==1) or ($post[islastshown]))">
*ad*
</if>

<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
*ad*
</if>

DeepXP
15 Aug 2006, 01:38
That was QUICK!!!

The first condition worked....

<if condition="(($post[postcount]==1) or ($post[islastshown]))">
*ad*
</if>

Thanks
Deep

DeepXP
16 Aug 2006, 13:39
OKay I am back, try the 2nd condition if you have AJAX Quick reply enabled...


<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
*ad*
</if>


if you try first then it shows blank page once you reply usuing quick reply option...

ish
23 Aug 2006, 15:56
WOW! absolutely amazing - i got this to work! a deep feelgood moment taking place :) thankyou.

and thank for this too martin64:
Also, here's a little tip in case you only want to display it for guests, not members. Simply put the codes (as instructed in the first posts) between these tags:

<if condition="!$bbuserinfo[userid]">

*code*

</if>

bbcentral
25 Aug 2006, 14:51
Great tutorial!
I will use some of the info, but no matter how much money NeutralizeR is making off his forum, nothing will convince me to make my members suffer like that. Sorry man, the site is plain shocking. I care about my members far too much to make them go through an epileptic-fit-inducing experience like your site. My browser struggled to scroll down!
Anyway, at least you've given us lots of examples to check out, very much appreciated! :D

NeutralizeR
25 Aug 2006, 16:23
Great tutorial!
I will use some of the info, but no matter how much money NeutralizeR is making off his forum, nothing will convince me to make my members suffer like that. Sorry man, the site is plain shocking. I care about my members far too much to make them go through an epileptic-fit-inducing experience like your site. My browser struggled to scroll down!
Anyway, at least you've given us lots of examples to check out, very much appreciated! :D
You are welcome :)

Yes, i don't know who visits and registers my web site but they are really insistent on that :P Google likes me...

doushx
26 Aug 2006, 19:56
greatly thanks

J-TEK
02 Sep 2006, 02:10
Nice work, seems great.

Klaymen TK
03 Sep 2006, 00:27
Really [for 1000] great tutorial. Really [for others 1000] thanks!

NeutralizeR
11 Sep 2006, 11:35
And your members doesn't even notice your ads anymore?

Then change the ad colors while keeping the default colors for the visitors.

google_color_border = <if condition="$show['guest']">"CDE7FF";<else />["CDE7FF","FFFF00","011160","FF0000"];</if>
google_color_bg = <if condition="$show['guest']">"CDE7FF";<else />["CDE7FF","011160","FFFFE1","FFFFFF"];</if>
google_color_link = <if condition="$show['guest']">"FF0000";<else />["FF0000","FFFF00","FF0000","FF0000"];</if>
google_color_url = <if condition="$show['guest']">"000000";<else />["000000","FFFFFF","000000","000000"];</if>
google_color_text = <if condition="$show['guest']">"0000A0";<else />["0000A0","FFFFFF","0000A0","0000A0"];</if>

<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Example:

<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = <if condition="$show['guest']">"CDE7FF";<else />["CDE7FF","FFFF00","011160","FF0000"];</if>
google_color_bg = <if condition="$show['guest']">"CDE7FF";<else />["CDE7FF","011160","FFFFE1","FFFFFF"];</if>
google_color_link = <if condition="$show['guest']">"FF0000";<else />["FF0000","FFFF00","FF0000","FF0000"];</if>
google_color_url = <if condition="$show['guest']">"000000";<else />["000000","FFFFFF","000000","000000"];</if>
google_color_text = <if condition="$show['guest']">"0000A0";<else />["0000A0","FFFFFF","0000A0","0000A0"];</if>
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Visitors will always see the ads in their default colors.

Members will see them in four rotating color combinations.

Test Account @ My forum:
Username: Tester
Password: asd123

http://www.msxlabs.org/forum/

VBUsers
12 Sep 2006, 00:13
how can i put my google adsense after every first post of a page? when i add it it shows under every post instead of just the first one on that page.

dougeetx
12 Sep 2006, 00:21
how can i put my google adsense after every first post of a page? when i add it it shows under every post instead of just the first one on that page.


There's another thread that tells how to do that. Look on my site at http://www.RealityTVFriends.com/forum and you'll see how it works.

VBUsers
12 Sep 2006, 00:27
There's another thread that tells how to do that. Look on my site at http://www.RealityTVFriends.com/forum and you'll see how it works.

do you happen to know where the thread is? nice site by the way. hope it goes good for you.

NeutralizeR
12 Sep 2006, 06:14
how can i put my google adsense after every first post of a page? when i add it it shows under every post instead of just the first one on that page.
Open your postbit(legacy) template: vBulletin AdminCP > Styles & Templates > Edit Templates > Postbit Templates > postbit(legacy)

(First post and last shown post)

Find:
<!-- / message -->
Add below:
<if condition="(($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
<center>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</if>

Save.
http://www.vbulletin.org/forum/showp...30&postcount=7

VBUsers
12 Sep 2006, 20:54
Open your postbit(legacy) template: vBulletin AdminCP > Styles & Templates > Edit Templates > Postbit Templates > postbit(legacy)

(First post and last shown post)

Find:

Add below:


Save.
http://www.vbulletin.org/forum/showp...30&postcount=7

great post and it works some what but i really wanted to look like a post and on every page in the thread. is there a way to do that?

IngoPan
13 Sep 2006, 12:50
great post and it works some what but i really wanted to look like a post and on every page in the thread. is there a way to do that?


maybe try this: http://www.vbulletin.org/forum/showthread.php?t=108648&highlight=banner

R.Solutions
16 Sep 2006, 08:25
anyway any of this can be converted into 3.6.0?

NeutralizeR
16 Sep 2006, 10:17
anyway any of this can be converted into 3.6.0?
You can use this guide on vb 3.6, too.

R.Solutions
16 Sep 2006, 20:44
I tried it, it expands my forums badly. Any way around this.

NeutralizeR
16 Sep 2006, 20:50
I tried it, it expands my forums badly. Any way around this.
Which template did you edit? Which part of the guide did you apply?

Please paste the code here...

Skyline_GT
23 Sep 2006, 10:52
very nice tutorial. Thanks.

spipo
23 Sep 2006, 13:32
how can I put adsense before the First post of every thread . 3.5.4
I mean ads before the first post ( and not after) ..
thanks

NeutralizeR
30 Sep 2006, 17:42
how can I put adsense before the First post of every thread . 3.5.4
I mean ads before the first post ( and not after) ..
thanks
Open your SHOWTHREAD template,
Find:
<!-- / toolbar -->
Add below:

<center>
<< adsense codes comes here >>
</center>
Save.

Your PM request:
http://img509.imageshack.us/img509/3324/ggggmg8.jpg
:)

spipo
30 Sep 2006, 17:53
thanks man i will try it

Smoothie
30 Sep 2006, 23:20
Ok, next easy question. Where in showthread template to add adsense directly after last post, attached to it, similar to the first post. I assume you would need a conditional to show this?

NeutralizeR
01 Oct 2006, 00:43
Ok, next easy question. Where in showthread template to add adsense directly after last post, attached to it, similar to the first post. I assume you would need a conditional to show this?
Open your SHOWTHREAD template,
Find:
<!-- / start content table -->
Add below:
<center>
<< adsense codes comes here >>
</center>
Save.

Smoothie
01 Oct 2006, 06:32
Open your SHOWTHREAD template,
Find:

Add below:

Save.
That didn't seem to work. There's a slight gap between the end of the postbit and the ad.

How do I combine these condtionals?

<if condition="!in_array($forum[forumid], array(14,19))">
<if condition="$post[islastshown]">

NeutralizeR
01 Oct 2006, 06:56
That didn't seem to work. There's a slight gap between the end of the postbit and the ad.

How do I combine these condtionals?

<if condition="!in_array($forum[forumid], array(14,19))">
<if condition="$post[islastshown]">
Check the first post, it's in the postbit template.

You need this conditional:

<if condition="!$post['islastshown']">

</if>

This should work.

Smoothie
01 Oct 2006, 06:59
Open your SHOWTHREAD template,
Find:

Add below:

Save.

Found where to add it. Here's the bottom and top.

Smoothie
01 Oct 2006, 07:01
Check the first post, it's in the postbit template.

You need this conditional:


This should work.
Yes, but I need to combine them both into one, but not sure how to do that.

NeutralizeR
01 Oct 2006, 07:03
I think it should work that way, too.


<if condition="!in_array($forum[forumid], array(14,19))">
<if condition="$post[islastshown]">
<<---ads--->>
</if>
</if>


Try this:

<if condition="(!$post['islastshown']) and !in_array($forum[forumid], array(14,19))">
<<---ads--->>
</if>

lowlight
01 Oct 2006, 19:30
Is there an update for 3.6? The tables in my forum are shifted to the right now in thread view.

NeutralizeR
01 Oct 2006, 20:41
Is there an update for 3.6? The tables in my forum are shifted to the right now in thread view.
Which template edit did you use and which code?

All edits should be ok with vBulletin 3.6 series.

Smoothie
02 Oct 2006, 03:15
I think it should work that way, too.



Try this:
Thanks!

rezapci
12 Oct 2006, 09:07
do we have any for yahoo publisher?

NeutralizeR
12 Oct 2006, 16:49
do we have any for yahoo publisher?
I don't use Yahoo Publisher but you can apply the same template edits if the ad sizes are matching.

farukcan
15 Oct 2006, 08:18
thank you... :)

teknoledge
24 Oct 2006, 07:08
How to implement adsense in the same style as in forumshow template but for forumhome?

NeutralizeR
24 Oct 2006, 13:53
How to implement adsense in the same style as in forumshow template but for forumhome?
http://www.vbulletin.org/forum/showpost.php?p=903931&postcount=9

popiul99
25 Oct 2006, 06:33
ok so i integrated this in my forum www.ps3center.net/forums .. but I tweaked it a little .. I added the logo`s around it etc. Do you guys think this is against Google`s TOS ? What would you guys do? Keep it or take it off .. I dont wanna get banned from Adsense ...

soletrader
26 Oct 2006, 06:12
How would I make it viewable by certain usergroups only? Thanks

yesfans
26 Oct 2006, 17:51
This not real clear, to me anyways. I want to put my ads in between the posts in a thread. So instead of the ads being at the top of the site pages as it is now. Take them from there have them show in the threads. When some one opens a thread and they cruz thru the posts, there would be my ads in them, between the posts.

On my site, the posts are in sep boxes with a space between them. Anyway to code the Google ads to fit in between them, another box, that flows with the posts?

teknoledge
03 Nov 2006, 08:47
http://www.vbulletin.org/forum/showpost.php?p=903931&postcount=9

Obviously I wasnt clear enough :P...

I want to integrate adsense 236x60 half banner into the forum list on forumhome page....

EXAMPLE:


General Forum
Forum1
Forum2
Adsense banner (to be displayed as forum category ;) )
Forum3
...

imported_infitech
13 Nov 2006, 11:53
this is great

lazydesis
15 Nov 2006, 23:54
google banned my website cuz I used this ..wudnt recommend this for google ..but other ad networks are fine i guess ...great hack meanwhile :)

neverknow1
16 Nov 2006, 12:52
google banned my website cuz I used this ..wudnt recommend this for google ..but other ad networks are fine i guess ...great hack meanwhile :)

Are you sure you are banned because of this reason? Most of the people use it without any problem including NeutralizeR. I think it is some other reason, please find out.

I also install the code.... my forum look very nice right now.. you can take a look at http://forum.easywordpress.com for example.

Thanks to NeutralizeR, you did a great job.

Tips for you guys who are not quite sure about this modifications. You need to use dreamweaver or any HTML editor which can show you the interface. From there you can edit the code and add in the boarder easily.

By the way, do any one of you using adsense sharing mod by chance??

croportal
22 Nov 2006, 14:10
when i add google adsense i have problem in opera, it only view header notging else

http://img176.imageshack.us/my.php?image=iviewcapturedate2211200md9.jpg

zınar
27 Nov 2006, 08:09
thank you NeutralizeR
-Eline sağlık bu derecede başarılı arkadaşları burda görmek çok güzel, çalışmalarının daim olması dileği ile.-

simi
29 Nov 2006, 12:14
thank you NeutralizeR
-eline sağlık dostum-

projectego
30 Nov 2006, 15:19
Awesome guide, NeutralizeR! I've implemented some your tutorial ideas into my forums. :)

BigJimTheLug
21 Dec 2006, 23:14
Hello everyone,


I would like to offer some advice to those who perform these modifications.

if you value your google adsense account, please verify that all these positions are within Google's TOS. Just because an Adsense modification is approved for someone, doesn't mean it is approved for you. Case in point, I notified Google about these positions for my forum, and I am not allowed to display Google Adsense link units above the navbar. Please be careful guys and do not lose your Adsense accounts.

Here is an Adsense link unit blended above the navbar:
http://i116.photobucket.com/albums/o2/puremark_2006/1-adsenseabovenavbar.jpg

efe
28 Dec 2006, 03:13
google_ad_channel nedir ve nereden öğrenilir?

NeutralizeR
31 Dec 2006, 14:26
google_ad_channel nedir ve nereden öğrenilir?
Her bir reklam biriminin performansını ayrı ayrı izlemek için kullanılır kanallar.

Adsense hesabınızla giriş yaptıktan sonra kodu oluşturmadan önce kanal seçimi yapıyorsunuz, tabii isteğe bağlı. google_ad_channel satırını tamamen silebilirsiniz.

vietfancy
02 Jan 2007, 20:57
great tutorial

zkilzz
07 Jan 2007, 14:16
Hello guys!
I want to make a change here in forumdisplay and search result.
Right now they both look like this

https://www.vbulletin.org/forum/

I want to drop the other TD and have only one so the ad can lay over not just the thread title but also last post, replies views and forum.

Like this.

https://www.vbulletin.org/forum/


Anyone have any ideas?

Ironduke
12 Jan 2007, 10:31
Hi, question about "after first post deployment"... I've put the code in the postbit_legacy afer <!-- / message -->, but this makes the ad deploy within the posts, I was forced to put it and the end of the postbit_legacy to make it work, but now my multi-quote and quick reply buttons are broken past the second post.



Example:
http://www.worldaffairsboard.com/showthread.php?p=327128#post327128

EDIT

After <!-- / message --> in the postbit legacy:

<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->
<if condition="(($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-4952345823118343";
google_alternate_color = "FFFFFF";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "FF0000";
google_color_text = "22229C";
google_color_url = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</if>

Nothing is displaying, but the buttons are working correctly. I need the ads to display between the first and second post on every page. Thanks for any help anybody can give me.

bolly.beats
09 Feb 2007, 03:48
thanx thanx thanx wow:p

Nwemo'#
01 Mar 2007, 09:05
Thanks a lot for this GREAT Integration Tutorial!

How can i put Ads in the forum list on forumhome page, like on this example.

http://imagesjack.us/picture.php?p=e7ed01cecb.jpg

Sorry for my bad English.

kenfuzed
02 Mar 2007, 18:40
Thanks a lot for this GREAT Integration Tutorial!

How can i put Ads in the forum list on forumhome page, like on this example.

http://imagesjack.us/picture.php?p=e7ed01cecb.jpg

Sorry for my bad English.
Making the ad look too much like an actual post can get you into trouble under Google's TOS. Basically you want your visitors to click on ads voluntarily rather than tricking them into clicking something they think is content. I always keep that in mind when placing my ads. When in doubt I don't do it in fear of getting banned. Between my site and forum I do fairly well with adsense so it's not worth losing it.

I added the ad code into my Forumdisplay as described in this tutorial and it looks great. I tweaked it slightly since I use a stickies plugin, that way the ads appear between the sticky and the first post.

Nwemo'#
05 Mar 2007, 08:16
Ok, but How can i put Ads in the forum list on forumhome page, with message about "Sponsored Links" like on NeutralizeR example?

styleforum
07 Mar 2007, 21:33
Hello guys!
I want to make a change here in forumdisplay and search result.
Right now they both look like this

http://www.bilforumet.net/images/skisser/screengoogle01.gif

I want to drop the other TD and have only one so the ad can lay over not just the thread title but also last post, replies views and forum.

Like this.

http://www.bilforumet.net/images/skisser/screengoogle02.gif


Anyone have any ideas?
You need to use a colspan (column span) in your <tr> ... sorry I can't be more specific but if you look it up you'll figure it out.

SaN-DeeP
15 Mar 2007, 22:03
how to put google adsense large rectangles on top right of first post..

Smitty
24 Mar 2007, 12:59
Where would one put
<!-- google_ad_section_start -->

<!-- google_ad_section_end --> in the showthread template?

Now that I think of it, what's the best place in the forumdisplay to put the code in?

croportal
24 Apr 2007, 10:18
adsense after 1post and last post but not in all forum i can change in which forum to display

kollam003
23 May 2007, 08:03
very wonderful tutorial very well and detailed explanations given thanks a lot for this

VViper
12 Jun 2007, 12:07
GREAT tutorial, man that worked a charmed, do you have a tutorial for getting the google adsense search in the pull down search bar?

Thanks again what an awesome tut

raiderlax
20 Jun 2007, 05:22
Great tut, thanks for sharing :)

Dmit87
07 Jul 2007, 23:13
amazing tutorial, rep added.

adivor
10 Sep 2007, 00:44
How is possible insert this adsense banner???

i see this page in this forum:
http://www.p2pforum.it/forum/showthread.php?t=222604

many thanks for this beatiful guide !!!


https://www.vbulletin.org/forum/external/2007/10/1.jpg

Riccardo83
14 Sep 2007, 09:43
Still there was no real answer where to put

<!-- google_ad_section_start -->

into showthread templates... ?

NeutralizeR
14 Sep 2007, 13:33
Still there was no real answer where to put

<!-- google_ad_section_start -->

into showthread templates... ?
Start.
<div id="posts">$postbits<div id="lastpost"></div></div>
End.

@ adivor, it's Adsense Premium.

ziahaq21
23 Sep 2007, 12:41
hi
i tried your codings, but the search results and post bit legacy its not working, it shows page cannot find in place of add...rest of the page is ok... it normally happens when adsense account gets terminated, but in rest pages ads are coming...i checked everything is as prescribed by you any idea...

adivor
31 Oct 2007, 16:39
How is possible insert this adsense banner???

i see this page in this forum:
http://www.p2pforum.it/forum/showthread.php?t=222604

many thanks for this beatiful guide !!!


https://www.vbulletin.org/forum/external/2007/10/1.jpg

no help for this question? :confused:

markbolyard
31 Oct 2007, 17:03
adivor, use this code:


<if condition="!$GLOBALS['FIRSTPOSTID']">
<br>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
Sponsored Links
</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
<center>
------PLACE AD CODE HERE------
</center>
</td>
</tr>
</table>
</if>


and place it at the end of your postbit template. Remember to change "------PLACE AD CODE HERE------" with your ad code / banner image.

adivor
31 Oct 2007, 17:16
tanks but my question is about font dimension in google banner , can you help me ?

modefly
04 Nov 2007, 23:32
http://www.google.com/images/adsense/en_us/support/forum_en.jpg
I would like to add adsense like in the picture, without the one next to the logo.
I've founded in your tutorial how to add after the first post and below the last post, but I didn't added before the first post and on left and right.
I've used left/right column hack and make myself 2 columns, but I haven't found any script for left and right adsense.

baerwurz
04 Nov 2007, 23:55
tanks but my question is about font dimension in google banner , can you help me ?
You have to become an adsense Premium Member than you get other Banner Sizes and Customized Ads. ;-)
If i am right, you need to have 2 Million Page Impressions daily.

modefly
04 Nov 2007, 23:59
I've done with those on right and left, it remains the one above the first post ...

baklash
11 Dec 2007, 14:15
thnqaks will look at when i get homee

testaj
14 Dec 2007, 18:26
This tutorial rocks! Thanks for saving me a bunch of time!

I've got one question I'm wondering if anyone can help me out.

http://first-solo.net/forums/forumdisplay.php?f=2

This is my site. I've narrowed the page down to fit the template I liked. I'm having a problem of my adsense kicking the table outside of my dimensions. I've modified the code here a bit to use "colspan" and make one "<td>" for the row that contains my adsense code. However, when I use the 468px ad, it pushes my table wider than normal. I can use 2 234px ads, and the problem doesn't occur.

The other funny thing is, with the 468px ad, I can copy the source code directly to a new html page, and the adjusting doesn't happen.

Has anyone had any experiences like this in the past? I'm new to vB, but have been experimenting with adsense for a little while, nothing big, just experimenting.

Flep
15 Dec 2007, 17:51
Amazing tutorial !

thank you :)

Bok
17 Feb 2008, 23:06
Is it possible to restrict the ads, to not show if a particular user is logged in ?

i.e. based on $bbuserid perhaps

markbolyard
18 Feb 2008, 04:33
Sure just place conditional statements before your ad code.

<if condition="is_member_of($bbuserinfo, X, Y, Z)">

YOUR AD CODE

</if>

What I have found from past experience with this addition is, set them to show for unregistered members only. Members tend to be ad-aware and not click them, and most of my clicks come from non members. This way your existing members don't get overrun with ads, and chances are your ad revenue will stay the same, but of course you know you members best, these are just my opinions.

valdet
16 May 2008, 04:04
<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">This code for first and last post on postbit(_legacy) is incomplete as it shows ads on first post of only the first page. If there are multiple page threads, there will be no ads in first post of XX page of a thread.




In order to fix that, you will need to use this code:

<if condition="(($post[postcount] % $vboptions[maxposts] == 1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">

nirvana43
21 May 2008, 08:16
thanks a million man.

nirvana43
01 Jun 2008, 04:14
i've implemented this!! but there are 3 errors...
please check this link : http://validator.w3.org/check?uri=http%3A%2F%2Fwww.projectsplanet.com%2Ffree-mini-projects%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

how do i fix those 3 errors??? :(

nirvana43
16 Jun 2008, 06:20
I have 1 question,
when we place ads in navbar i.e. :
http://img234.imageshack.us/img234/9625/snap17ub.gif

this unit is displayed only when user is logged in.... please can you tell me, what if i want to display this unit for guests too??
where do i place the code and is there any code modifications??? please help..
i'm not a pro coder... :(

munnakv
22 Jun 2008, 19:04
Fantastic tutorial. bookmarked it. Will read it soon.

Thanks.

Declan127
23 Jun 2008, 19:30
One of the best Tutorials ive seen in a while.

Cheers =]

jalmz
30 Jun 2008, 16:48
wow.. thanks!

glenbelt
02 Jul 2008, 16:14
Added this code to my forum and it seems good but I have one problem.

My link unit is at the top of the forum but below this there is an empty strip. I'm not sure if this was there before I made the changes to the forum, and was wondering if that is where I am meant to be displaying the Ad Unit?

Have attached a screenshot below.
http://img47.imageshack.us/img47/3577/forumbc7.jpg


Thanks for any help.

NeutralizeR
02 Jul 2008, 18:56
It's the first ad unit (728 x 90). Check your navbar edits again. You should know that Google has changed the ad codes incase you are using the ones in this tutorial. If you have just put the ads in your pages, wait a couple of days for the adsense bot to crawl your pages.

glenbelt
03 Jul 2008, 10:12
Thanks NeutralizeR.

I realised that Google had changed their ad codes, but I was a bit confused. Firstly I used the new adsense codes, and then I realised that I had missed out the line of code mentioning the collapsible ad unit html page, so then I went and changed all my adverts over to the style of the ones in the article.

Should I just use the newer adsense codes?

Also would I simply link to the collapsible ad unit.html file from within adsense, where they ask me about showing alternative adverts instead of PSA ones?


Thanks for any help

NeutralizeR
03 Jul 2008, 11:12
Thanks NeutralizeR.

I realised that Google had changed their ad codes, but I was a bit confused. Firstly I used the new adsense codes, and then I realised that I had missed out the line of code mentioning the collapsible ad unit html page, so then I went and changed all my adverts over to the style of the ones in the article.

Should I just use the newer adsense codes?

Also would I simply link to the collapsible ad unit.html file from within adsense, where they ask me about showing alternative adverts instead of PSA ones?


Thanks for any help
Yes, use the new adsense codes and enter the link of the collapsible html within adsense.

glenbelt
03 Jul 2008, 11:42
Oh okay, thanks again NeutralizeR.

Can I just ask, what does the collapsible ad unit do? What does it show?


Thanks again

NeutralizeR
03 Jul 2008, 12:01
Oh okay, thanks again NeutralizeR.

Can I just ask, what does the collapsible ad unit do? What does it show?


Thanks again
It's optional.

The collapsing ad unit code will 'collapse' your ad unit so that it takes up no page space if there are no relevant ads available. This allows you to minimize any blank space that would otherwise occur through the use of alternate colors.

PoetJA-1975
12 Jul 2008, 19:00
Nice locations = Thanx for sharing.

Jacquii.

pranaysanghavi
03 Sep 2008, 10:48
very nice step by step article..

also i'd appreciate if u explain some basic terminologies surrounding google adsense, and a basic screenshot pointing out different names and locations all at once..

however, its commendable article. :) thanks

--------------- Added 1220509859 at 1220509859 ---------------

Hi,

i had added all types of ad units explained in the article yesterday, and they were showing fine. Today when i see i dont see a single ad.

Also i tried to add a tower ad at one more place on my forum home page here at www.officechai.com/forum .. but i dont see at all.

The ad [AdSense unit: Sponsor Lance120x240, towerHome] is active in google adsense ..
I also went through all the trouble shooting steps, but to no avail.

where could I've gone wrong :confused:

here is the adcode:

<td class="alt5" align="left"> <span class="smallfont">
<a href="http://www.nasscom.in/" target="_blank">Nasscom</a> <br />
<a href="http://www.intellibuzz.net/" target="_blank">Intellibuzz Communications</a> <br />
<script type="text/javascript"><!--
google_ad_client = "pub-nnnnnnnnnn";
/* Sponsor Lance120x240, towerHome */
google_ad_slot = "nnnnnn";
google_ad_width = 120;
google_ad_height = 240;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<a href="http://www.forumregistry.com/registry" id="R4ED683">Forum Directory</a>


</span>

pranaysanghavi
14 Sep 2008, 18:20
Some More....

Open your MEMBERINFO template: vBulletin AdminCP > Styles & Templates > Edit Templates > Member Info Templates > MEMBERINFO

Find:

Add above:

Save.

Find: <if condition="$show['signature']">

.


there's not one instance of "$show['signature']">

--------------- Added 1221412863 at 1221412863 ---------------

I've got this one figured out.. thanks

glenbelt
08 Oct 2008, 11:18
Please can someone help... my template is not the default one, and I'm having a problem with the 468x15 adsense unit.

https://www.vbulletin.org/forum/

As you can see in the screenshot above, the unit is below the navibar but I want it to be moved down into the next box, which is currently empty.

Any idea what part of code the box is in?


Thanks for any help

Mustang Sally
09 Oct 2008, 17:28
Is this still OK to use? It's a couple of years old, has anything changed?

NeutralizeR
09 Oct 2008, 17:47
I think it's still good enough to start with.

glenbelt
13 Oct 2008, 13:43
Please can someone help... my template is not the default one, and I'm having a problem with the 468x15 adsense unit.

http://img410.imageshack.us/img410/2087/helphz8.jpg

As you can see in the screenshot above, the unit is below the navibar but I want it to be moved down into the next box, which is currently empty.

Any idea what part of code the box is in?


Thanks for any help



Anybody able to help? :(

NeutralizeR
13 Oct 2008, 14:42
If you followed this guide it must be the container table of the 728x90 ad unit.
Move the 468x15 link unit's code to there.

glenbelt
14 Oct 2008, 10:16
Thanks NeutralizeR.

I've moved some code, and now the link unit has gone (which is good), but there is now just an empty space (about 728x90 in size) but no advert is displayed.

When I go to my URL/collapsible-ad-unit.html it loads the page but doesn't display an advert. Could this be why it also doesn't display an advert on the forum?


Thanks for any help again

NeutralizeR
14 Oct 2008, 10:53
Hmm... i checked your page source code and noticed you have the wrong ad code for the 728X90 ad unit. You have double "" for one of the values.

glenbelt
14 Oct 2008, 20:53
Hmm... i checked your page source code and noticed you have the wrong ad code for the 728X90 ad unit. You have double "" for one of the values.

Thanks very much for pointing that out, really didn't notice it :( :o

Thanks for all the help, seems to be working fine now

--------------- Added 1224067418 at 1224067418 ---------------

Sorry to post again but got another question. When I click on someone's post, it shows a section below their post which is labelled "Sponsored Posts". Any idea which part of the template this is in?


Thanks

NeutralizeR
17 Oct 2008, 12:55
It must be a differrent modification. I don't remember something like that.

Markos
02 Jan 2009, 23:09
hi I'm trying to do the thread one but would like to use images and links instead of the google ads is there anyway i could do this ?????


Open your FORUMDISPLAY template: vBulletin AdminCP > Styles & Templates > Edit Templates > Forum Display Templates > FORUMDISPLAY

(First thread)

Find:

<if condition="$show['threads']">

Add below:

<tr>
<td align="center" class="alt1">-</td>
<td align="center" class="alt2">-</td>
<td class="alt1">
<div>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "22229C";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>

<td class="alt2 smallfont" align="center">Sponsored Links</td>

<td class="alt1" align="center">-</td>
<td class="alt2" align="center">-</td>
<if condition="$show['inlinemod']"><td class="alt1" align="center">-</td></if>

</tr>


(Last thread)

Find:

<!-- end show threads -->

Add below:

<tr>
<td align="center" class="alt1">-</td>
<td align="center" class="alt2">-</td>
<td class="alt1">
<div>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "22229C";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>

<td class="alt2 smallfont" align="center">Sponsored Links</td>

<td class="alt1" align="center">-</td>
<td class="alt2" align="center">-</td>
<if condition="$show['inlinemod']"><td class="alt1" align="center">-</td></if>

</tr>

Results:




Save.


--------------- Added 1230946663 at 1230946663 ---------------

ok i got it so far but getting a extra box at the end any one know what it can be

http://img.photobucket.com/albums/v306/markos1977/scottish.jpg?t=1230946799

heres the code i used

<!-- BEGIN Ad Block CODE -->
<div align="center" style="margin: -5px 0px 10px 0px;">
<table width="100%" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="#F4F4F4">
<tr>

<!-- Ad Block ONE -->

<td width="16%" bgcolor="#F4F4F4" align="center" valign="top"><a rel="nofollow" href='http://googleads.g.doubleclick.net/pagead/iclk?sa=l&ai=BcHi546deSYGPCpLGjgKY3cyzB-_ItHvVn66cDcCNtwHAqQcQARgBIIG9zwkoAzgAUJ-Rzon4_____wFgu9bJg9wKoAHtzsj-A7IBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQk3Mjh4OTBfYXPIAQHaAS1o dHRwOi8vd3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51ay-pAkQbCtvrdrg-qAMByAMH6APfBPUDAAEABJgEAA&num=1&adurl=http://www.reptile-food-direct.co.uk/acatalog/Foods_and_Supplements.html&client=ca-pub-7237502076132128&nm=16' target='_blank'><img src='http://www.scottishexoticreptilesforum.co.uk/images/ads/LiveFoodsLogo.jpg' border='0' alt='' style="border-color:#F4F4F4" /></a><br>
<font face="verdana, arial, helvetica, sans-serif" size="1"> <a rel="nofollow" href="http://googleads.g.doubleclick.net/pagead/iclk?sa=l&ai=BcHi546deSYGPCpLGjgKY3cyzB-_ItHvVn66cDcCNtwHAqQcQARgBIIG9zwkoAzgAUJ-Rzon4_____wFgu9bJg9wKoAHtzsj-A7IBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQk3Mjh4OTBfYXPIAQHaAS1o dHRwOi8vd3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51ay-pAkQbCtvrdrg-qAMByAMH6APfBPUDAAEABJgEAA&num=1&adurl=http://www.reptile-food-direct.co.uk/acatalog/Foods_and_Supplements.html&client=ca-pub-7237502076132128&nm=16" target="_blank">Reptile Food direct</a> </font> </td>

<!-- Ad Block TWO -->

<td width="16%" bgcolor="#F4F4F4" align="center" valign="top"><a rel="nofollow" href='http://googleads.g.doubleclick.net/pagead/iclk?sa=l&ai=B2CVb46deSYGPCpLGjgKY3cyzB-ni9DqP-OTLBMCNtwGQsAoQAxgDIIG9zwkoAzgAUIG0yLT7_____wFgu9bJg9wKsgEld3d3LnNjb3R0aXNoZXhvd GljcmVwdGlsZXNmb3J1bS5jby51a7oBCTcyOHg5MF9hc8gBAdoBLWh0dHA6Ly93d3cuc2NvdHRpc2hle G90aWNyZXB0aWxlc2ZvcnVtLmNvLnVrL4ACAakCRBsK2-t2uD6oAwHIAwfoA98E9QMAAQAEmAQA&num=3&adurl=http://www.livefoodsdirect.co.uk&client=ca-pub-7237502076132128&nm=6' target='_blank'><img src='http://www.scottishexoticreptilesforum.co.uk/images/ads/reptile_food_direct_logo.jpg' border='0' alt='' style="border-color:#F4F4F4"></a><br>
<font face="verdana, arial, helvetica, sans-serif" size="1"> <a rel="nofollow" href="http://googleads.g.doubleclick.net/pagead/iclk?sa=l&ai=B2CVb46deSYGPCpLGjgKY3cyzB-ni9DqP-OTLBMCNtwGQsAoQAxgDIIG9zwkoAzgAUIG0yLT7_____wFgu9bJg9wKsgEld3d3LnNjb3R0aXNoZXhvd GljcmVwdGlsZXNmb3J1bS5jby51a7oBCTcyOHg5MF9hc8gBAdoBLWh0dHA6Ly93d3cuc2NvdHRpc2hle G90aWNyZXB0aWxlc2ZvcnVtLmNvLnVrL4ACAakCRBsK2-t2uD6oAwHIAwfoA98E9QMAAQAEmAQA&num=3&adurl=http://www.livefoodsdirect.co.uk&client=ca-pub-7237502076132128&nm=6" target="_blank">Live Foods Direct</a> </font> </td>

<!-- Ad Block THREE -->

<td width="16%" bgcolor="#F4F4F4" align="center" valign="top"><a rel="nofollow" href='http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BIHMfi7BeScCgFITAiQL_7ejvB4O3407bzoHDB8CNtwHQhgMQFBgEIIG9zwkoBDgAUNmGrML8____ _wFgu9bJg9wKkAEFsgEld3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51a7oBDXNtYS03 Mjh4OTBfYXPIAQHaAS1odHRwOi8vd3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51ay_g AQOpAkQbCtvrdrg-yAKby4wJqAMByAMH6APfBPUDAAEABJgEAA&num=4&ggladgrp=7700716015936752994&gglcreat=12698893765199320887&adurl=http://www.shopzilla.co.uk/mkt.xpml%3Fmkt_id%3D405651406&client=ca-pub-7237502076132128&nm=6' target='_blank'><img src='http://www.scottishexoticreptilesforum.co.uk/images/ads/shopzilla.jpg' border='0' alt='' style="border-color:#F4F4F4" /></a><br>
<font face="verdana, arial, helvetica, sans-serif" size="1"> <a rel="nofollow"href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BIHMfi7BeScCgFITAiQL_7ejvB4O3407bzoHDB8CNtwHQhgMQFBgEIIG9zwkoBDgAUNmGrML8____ _wFgu9bJg9wKkAEFsgEld3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51a7oBDXNtYS03 Mjh4OTBfYXPIAQHaAS1odHRwOi8vd3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51ay_g AQOpAkQbCtvrdrg-yAKby4wJqAMByAMH6APfBPUDAAEABJgEAA&num=4&ggladgrp=7700716015936752994&gglcreat=12698893765199320887&adurl=http://www.shopzilla.co.uk/mkt.xpml%3Fmkt_id%3D405651406&client=ca-pub-7237502076132128&nm=6" target="_blank">ShopZilla</a> </font> </td>

<!-- Ad Block FOUR -->

<td width="17%" bgcolor="#F4F4F4" align="center" valign="top"><a rel="nofollow" href='http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BFZ-CpqpeSd3pPIvUiQLAv_XvB9ecgpUBx8GttQrAjbcBsNsGEBEYAiCBvc8JKAQ4AFCf18en______8BYLv WyYPcCpABBbIBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQ1zbWEtNzI4eDk wX2FzyAEB2gEtaHR0cDovL3d3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWsv4AEDgAI BqQJEGwrb63a4PtACAagDAcgDB-gD3wT1AwABAASYBAA&num=2&adurl=http://www.netpetshop.co.uk/c-327-vivariums.aspx&client=ca-pub-7237502076132128&nm=6' target='_blank'><img src='http://www.scottishexoticreptilesforum.co.uk/images/ads/NetPetShop.jpg' border='0' alt='' style="border-color:#F4F4F4" /></a><br>
<font face="verdana, arial, helvetica, sans-serif" size="1"> <a rel="nofollow" href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BFZ-CpqpeSd3pPIvUiQLAv_XvB9ecgpUBx8GttQrAjbcBsNsGEBEYAiCBvc8JKAQ4AFCf18en______8BYLv WyYPcCpABBbIBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQ1zbWEtNzI4eDk wX2FzyAEB2gEtaHR0cDovL3d3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWsv4AEDgAI BqQJEGwrb63a4PtACAagDAcgDB-gD3wT1AwABAASYBAA&num=2&adurl=http://www.netpetshop.co.uk/c-327-vivariums.aspx&client=ca-pub-7237502076132128&nm=6" target="_blank">Net Pet Shop</a> </font> </td>

<!-- Ad Block FIVE -->

<td width="17%" bgcolor="#F4F4F4" align="center" valign="top"><a rel="nofollow" href='http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BzOTeiKpeSebTJ8PZ-Abf083tAYS7_Y0BpvHD1wnAjbcBgPEEEAwYASCBvc8JKAQ4AFDqpJu1-v____8BYLvWyYPcCpABBLIBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQ1zb WEtNzI4eDkwX2FzyAEB2gEtaHR0cDovL3d3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28ud Wsv4AEDqQJSZBU8Klq3PqgDAcgDB-gD3wT1AwABAASYBAA&num=1&adurl=http://www.pythonkings.nl&client=ca-pub-7237502076132128&nm=21' target='_blank'><img src='http://www.scottishexoticreptilesforum.co.uk/images/ads/pythonkings.jpg' border='0' alt='' style="border-color:#F4F4F4" /></a><br>
<font face="verdana, arial, helvetica, sans-serif" size="1"> <a rel="nofollow" href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BzOTeiKpeSebTJ8PZ-Abf083tAYS7_Y0BpvHD1wnAjbcBgPEEEAwYASCBvc8JKAQ4AFDqpJu1-v____8BYLvWyYPcCpABBLIBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQ1zb WEtNzI4eDkwX2FzyAEB2gEtaHR0cDovL3d3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28ud Wsv4AEDqQJSZBU8Klq3PqgDAcgDB-gD3wT1AwABAASYBAA&num=1&adurl=http://www.pythonkings.nl&client=ca-pub-7237502076132128&nm=21" target="_blank">Python Breeding Game</a></font></td>

</tr>
</table>
</div>
<!-- END Ad Block CODE -->



thanks Markos

Hendrizius
04 Jan 2009, 21:23
I have been working for quite some time together with Vbulletin and Adsense. Those placements are good, but there are better ones.

Check out two of my articles:
-The best Vbulletin Adsense locations (http://www.duoblogger.com/vbulletin-adsense-placements/)
-Adsense training Video (http://www.duoblogger.com/psychological-adsense-optimization/)

enci
23 Jan 2009, 21:50
I used this tutorial a few months ago to add Google Ads to my forum, and everything turned out great. Now, however, the Google Ads (the long rectangle in navbar) do not show up on my forum's home page, but they do show up when you click on a specific subforum. Any idea why? All I see is a blank rectangle on my forum's home page. I've updated my Google Adsense code as well. TIA.

Riccardo83
02 Feb 2009, 12:30
Hey Guys, Please Please Help.

Adding this:

<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
<center>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</if>

Will mess up the design with the Quotes of a Post. It pushes them to the right.

I Once found another Version, but there Quotes overlap the ad.

Is there any way to get this working with QUOTES??????

Smitty
10 May 2009, 00:17
Just bumping. This was/is a good old thread.

Anyone have any new ideas to add for those of us who don't want the now 'built in' vBulletin AdSense thingie??

I'm particularly interested in any left sidebar Archive ideas.

KevinGupta
22 May 2009, 07:18
Hi Guys,

I'm trying to work with this code... itself....


Open your postbit(legacy) template: vBulletin AdminCP > Styles & Templates > Edit Templates > Postbit Templates > postbit(legacy)

(First post and last shown post)

Find:
<!-- / message -->
Add below:
<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
<center>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</if>


However I got few questions to ask very quickly...
in

1) "youradsensecode" part do I put it in my google adsense pub-id? Or is it the full code that goes with it?

and
2) what do I put in here? :-- "yourchannelcode"

3) and how do I put in a usergroup permissions in here? Do I just add this code:

<if condition="is_member_of($bbuserinfo, X, Y, Z)">

AFTER

<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">

4) I'm using vB 3.8.x .. Is this going to stuff anything up?

Please let me know... Thanks...!

root's
17 Dec 2009, 20:30
Can you give appropriate memberinfo templatesini to 3.8 series?

Jeweetog
24 Dec 2009, 18:52
Does this work for version 4.0.0 too?

ps2wiz
26 Jan 2010, 10:50
Does this work for version 4.0.0 too?

Same question.

floggerss
23 Feb 2010, 15:10
How do i Add an adsense SEARCH BOx in the header?

tommac3
26 May 2010, 00:57
what is the best tool for 4.0? I am looking for something to place customize and optimized ads ... I dont think the standard 4.0 is enough ... is there a new article/mod based on 4.0?

jnrdavo
04 Jun 2010, 03:35
hoping somebody can help..

I added in adsense for the first time to my site, worked for a few days, not getting an scripting error..

So I've tried to add this to help, but like others above, would like confirmation what is required for:

google_ad_client = "pub-nnnnnnnnnnnnnn"; ??

and

google_ad_channel ="345xxxxxx"; ??

Also, I was using this in ad_board_below_whats_going_on, but now not working...


<script type="text/javascript"><!--
google_ad_client = "pub-xxxxx";
/* VW 250x250, created 5/30/10 */
google_ad_slot = "nnnnn";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

ptceuro
31 Mar 2012, 19:06
wow, thats an awesome tutorial, thanks so much!!

g00gl3r
04 Apr 2012, 18:46
Anything like this for VB4?

Bulent Tekcan
07 Oct 2012, 10:15
We are waiting 4.0.x news...

doctorseoul
06 Feb 2013, 15:26
Has anyone tried installing this hack in 4.2? Were there any problems? Appreciate any feedback...

ramesh_umk3
24 May 2013, 18:59
Successfully Applied on vBulletin 4.2.x but the code in the 1st post need some changes to make it work properly

Demo:
CLICK HERE (http://www.mobilescommunity.com/android-os-applications/)

mykkal
08 May 2015, 06:51
Successfully Applied on vBulletin 4.2.x but the code in the 1st post need some changes to make it work properly

Demo:
CLICK HERE (http://www.mobilescommunity.com/android-os-applications/)

Could you share these changes? This is a magnificent article. I wish it were updated. I'm using 4.2.3 beta 4 with php 5.5