PDA

View Full Version : vBulletin Google Adsense Deep Integration Tutorial


NeutralizeR
02-13-2006, 10:00 PM
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.

https://vborg.vbsupport.ru/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.
https://vborg.vbsupport.ru/showpost.php?p=773130&postcount=7

Results:
https://vborg.vbsupport.ru/

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
02-14-2006, 02:13 PM
Wow thanks man, this is a great tutorial! :D

The Chief
02-14-2006, 02:29 PM
wow, thats an awesome tutorial, thanks so much!!

Developer
02-16-2006, 06:46 PM
Very nice thnx i wish there is install button :)

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

TheComputerGuy
02-17-2006, 04:27 PM
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
02-17-2006, 04:53 PM
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
02-17-2006, 11:56 PM
Simply amazing. Thank you so much. :)

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

NeutralizeR
02-18-2006, 07:39 PM
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
02-18-2006, 07:50 PM
Who wants to make this into a plug-in? :D

NeutralizeR
02-18-2006, 07:54 PM
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
02-28-2006, 05:57 PM
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
03-05-2006, 02:07 AM
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
03-05-2006, 03:07 AM
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
03-05-2006, 04:23 AM
thank you NeutralizeR

dartworth
03-05-2006, 04:31 PM
thanks...:)

busybeeburns
03-06-2006, 03:24 PM
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
03-06-2006, 03:31 PM
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
03-06-2006, 03:31 PM
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
03-06-2006, 03:58 PM
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
03-10-2006, 01:57 PM
i can make as much of it into a plugin as possible if you guys want :)

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

m_k
03-15-2006, 05:20 PM
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
03-15-2006, 08:23 PM
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
03-16-2006, 12:27 AM
everything works fine except the postbitlegacy part i inserted the code but itz not displaying?

Reef
03-16-2006, 01:10 AM
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
03-19-2006, 01:27 AM
Excellent article, thanks alot!

NeutralizeR
03-19-2006, 03:49 AM
If you allow search engines to spider the single versions of your posts (This post (https://vborg.vbsupport.ru/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
03-20-2006, 06:37 PM
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
04-28-2006, 02:34 PM
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
05-11-2006, 04:47 AM
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
05-12-2006, 08:41 PM
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
05-15-2006, 04:24 PM
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
05-18-2006, 04:07 PM
Is Anybody Out There

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

deep_blue
05-19-2006, 05:35 PM
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
05-19-2006, 05:46 PM
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
05-20-2006, 01:42 AM
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
05-27-2006, 01:19 PM
Any way to do this?
Search vbulletin.org, there must be a mod for what you want.

ferreo
05-27-2006, 09:10 PM
Excellent post, thank you very much for sharing. I'll post results later.

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

obmob
06-02-2006, 03:51 PM
XD i was trying to click "install" button, very useful, not only for vB pages.

thanks

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

NeutralizeR
06-03-2006, 12:31 AM
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
06-09-2006, 12:10 PM
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
06-21-2006, 03:04 AM
Can someone post results with this please?

Thank you!

webgroup
06-30-2006, 04:19 PM
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
06-30-2006, 06:54 PM
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
06-30-2006, 07:17 PM
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
06-30-2006, 07:21 PM
*edit*

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

Martin64
07-07-2006, 03:14 AM
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
07-13-2006, 09:52 AM
thank you NeutralizeR

dsmoke
07-29-2006, 12:04 PM
this looks amazing can anyone say that their adsense revenue went up x% after doing this?

sportsoutlaw
07-29-2006, 06:34 PM
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
08-14-2006, 11:01 PM
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
08-14-2006, 11:30 PM
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
08-14-2006, 11:38 PM
That was QUICK!!!

The first condition worked....

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

Thanks
Deep

DeepXP
08-16-2006, 11:39 AM
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
08-23-2006, 01:56 PM
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
08-25-2006, 12:51 PM
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
08-25-2006, 02:23 PM
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
08-26-2006, 05:56 PM
greatly thanks

J-TEK
09-02-2006, 12:10 AM
Nice work, seems great.

Klaymen TK
09-02-2006, 10:27 PM
Really [for 1000] great tutorial. Really [for others 1000] thanks!

NeutralizeR
09-11-2006, 09:35 AM
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
09-11-2006, 10:13 PM
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
09-11-2006, 10:21 PM
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
09-11-2006, 10:27 PM
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
09-12-2006, 04:14 AM
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.
https://vborg.vbsupport.ru/showp...30&postcount=7

VBUsers
09-12-2006, 06:54 PM
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.
https://vborg.vbsupport.ru/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
09-13-2006, 10:50 AM
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: https://vborg.vbsupport.ru/showthread.php?t=108648&highlight=banner

R.Solutions
09-16-2006, 06:25 AM
anyway any of this can be converted into 3.6.0?

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

R.Solutions
09-16-2006, 06:44 PM
I tried it, it expands my forums badly. Any way around this.

NeutralizeR
09-16-2006, 06:50 PM
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
09-23-2006, 08:52 AM
very nice tutorial. Thanks.

spipo
09-23-2006, 11:32 AM
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
09-30-2006, 03:42 PM
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
09-30-2006, 03:53 PM
thanks man i will try it

Smoothie
09-30-2006, 09:20 PM
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
09-30-2006, 10:43 PM
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
10-01-2006, 04:32 AM
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
10-01-2006, 04:56 AM
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
10-01-2006, 04:59 AM
Open your SHOWTHREAD template,
Find:

Add below:

Save.

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

Smoothie
10-01-2006, 05:01 AM
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
10-01-2006, 05:03 AM
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
10-01-2006, 05:30 PM
Is there an update for 3.6? The tables in my forum are shifted to the right now in thread view.

NeutralizeR
10-01-2006, 06:41 PM
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
10-02-2006, 01:15 AM
I think it should work that way, too.



Try this:
Thanks!

rezapci
10-12-2006, 07:07 AM
do we have any for yahoo publisher?

NeutralizeR
10-12-2006, 02:49 PM
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
10-15-2006, 06:18 AM
thank you... :)

teknoledge
10-24-2006, 05:08 AM
How to implement adsense in the same style as in forumshow template but for forumhome?

NeutralizeR
10-24-2006, 11:53 AM
How to implement adsense in the same style as in forumshow template but for forumhome?
https://vborg.vbsupport.ru/showpost.php?p=903931&postcount=9

popiul99
10-25-2006, 04:33 AM
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
10-26-2006, 04:12 AM
How would I make it viewable by certain usergroups only? Thanks

yesfans
10-26-2006, 03:51 PM
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
11-03-2006, 06:47 AM
https://vborg.vbsupport.ru/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
11-13-2006, 09:53 AM
this is great

lazydesis
11-15-2006, 09:54 PM
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
11-16-2006, 10:52 AM
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
11-22-2006, 12:10 PM
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
11-27-2006, 06:09 AM
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
11-29-2006, 10:14 AM
thank you NeutralizeR
-eline sağlık dostum-

projectego
11-30-2006, 01:19 PM
Awesome guide, NeutralizeR! I've implemented some your tutorial ideas into my forums. :)

BigJimTheLug
12-21-2006, 09:14 PM
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
12-28-2006, 01:13 AM
google_ad_channel nedir ve nereden öğrenilir?

NeutralizeR
12-31-2006, 12:26 PM
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
01-02-2007, 06:57 PM
great tutorial

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

https://vborg.vbsupport.ru/

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://vborg.vbsupport.ru/


Anyone have any ideas?

Ironduke
01-12-2007, 08:31 AM
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
02-09-2007, 01:48 AM
thanx thanx thanx wow:p

Nwemo'#
03-01-2007, 07:05 AM
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
03-02-2007, 04:40 PM
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'#
03-05-2007, 06:16 AM
Ok, but How can i put Ads in the forum list on forumhome page, with message about "Sponsored Links" like on NeutralizeR example?

styleforum
03-07-2007, 07:33 PM
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
03-15-2007, 08:03 PM
how to put google adsense large rectangles on top right of first post..

Smitty
03-24-2007, 10:59 AM
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
04-24-2007, 08:18 AM
adsense after 1post and last post but not in all forum i can change in which forum to display

kollam003
05-23-2007, 06:03 AM
very wonderful tutorial very well and detailed explanations given thanks a lot for this

VViper
06-12-2007, 10:07 AM
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
06-20-2007, 03:22 AM
Great tut, thanks for sharing :)

Dmit87
07-07-2007, 09:13 PM
amazing tutorial, rep added.

adivor
09-09-2007, 10:44 PM
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://vborg.vbsupport.ru/external/2007/10/1.jpg

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

<!-- google_ad_section_start -->

into showthread templates... ?

NeutralizeR
09-14-2007, 11:33 AM
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
09-23-2007, 10:41 AM
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
10-31-2007, 02:39 PM
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://vborg.vbsupport.ru/external/2007/10/1.jpg

no help for this question? :confused:

markbolyard
10-31-2007, 03:03 PM
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
10-31-2007, 03:16 PM
tanks but my question is about font dimension in google banner , can you help me ?

modefly
11-04-2007, 09:32 PM
<a href="https://www.google.com/images/adsense/en_us/support/forum_en.jpg" target="_blank">http://www.google.com/images/adsense...t/forum_en.jpg</a>
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
11-04-2007, 09:55 PM
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
11-04-2007, 09:59 PM
I've done with those on right and left, it remains the one above the first post ...

baklash
12-11-2007, 12:15 PM
thnqaks will look at when i get homee

testaj
12-14-2007, 04:26 PM
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
12-15-2007, 03:51 PM
Amazing tutorial !

thank you :)

Bok
02-17-2008, 09:06 PM
Is it possible to restrict the ads, to not show if a particular user is logged in ?

i.e. based on $bbuserid perhaps

markbolyard
02-18-2008, 02:33 AM
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
05-16-2008, 02:04 AM
<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
05-21-2008, 06:16 AM
thanks a million man.

nirvana43
06-01-2008, 02:14 AM
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%2Ffr ee-mini-projects%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

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

nirvana43
06-16-2008, 04:20 AM
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
06-22-2008, 05:04 PM
Fantastic tutorial. bookmarked it. Will read it soon.

Thanks.

Declan127
06-23-2008, 05:30 PM
One of the best Tutorials ive seen in a while.

Cheers =]

jalmz
06-30-2008, 02:48 PM
wow.. thanks!

glenbelt
07-02-2008, 02:14 PM
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
07-02-2008, 04:56 PM
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
07-03-2008, 08:12 AM
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
07-03-2008, 09:12 AM
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
07-03-2008, 09:42 AM
Oh okay, thanks again NeutralizeR.

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

Thanks again

NeutralizeR
07-03-2008, 10:01 AM
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
07-12-2008, 05:00 PM
Nice locations = Thanx for sharing.

Jacquii.

pranaysanghavi
09-03-2008, 08:48 AM
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
09-14-2008, 04:20 PM
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
10-08-2008, 09:18 AM
Please can someone help... my template is not the default one, and I'm having a problem with the 468x15 adsense unit.

https://vborg.vbsupport.ru/

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
10-09-2008, 03:28 PM
Is this still OK to use? It's a couple of years old, has anything changed?

NeutralizeR
10-09-2008, 03:47 PM
I think it's still good enough to start with.

glenbelt
10-13-2008, 11:43 AM
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
10-13-2008, 12:42 PM
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
10-14-2008, 08:16 AM
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
10-14-2008, 08:53 AM
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
10-14-2008, 06:53 PM
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
10-17-2008, 10:55 AM
It must be a differrent modification. I don't remember something like that.

Markos
01-02-2009, 09:09 PM
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-A7IBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY2 8udWu6AQk3Mjh4OTBfYXPIAQHaAS1odHRwOi8vd3d3LnNjb3R0 aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51ay-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-A7IBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY2 8udWu6AQk3Mjh4OTBfYXPIAQHaAS1odHRwOi8vd3d3LnNjb3R0 aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51ay-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_____wFgu9b Jg9wKsgEld3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1b S5jby51a7oBCTcyOHg5MF9hc8gBAdoBLWh0dHA6Ly93d3cuc2N vdHRpc2hleG90aWNyZXB0aWxlc2ZvcnVtLmNvLnVrL4ACAakCR BsK2-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_____wFgu9b Jg9wKsgEld3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1b S5jby51a7oBCTcyOHg5MF9hc8gBAdoBLWh0dHA6Ly93d3cuc2N vdHRpc2hleG90aWNyZXB0aWxlc2ZvcnVtLmNvLnVrL4ACAakCR BsK2-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_7ejvB4O3407bzoHDB8CNtwHQhg MQFBgEIIG9zwkoBDgAUNmGrML8_____wFgu9bJg9wKkAEFsgEl d3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51a7 oBDXNtYS03Mjh4OTBfYXPIAQHaAS1odHRwOi8vd3d3LnNjb3R0 aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51ay_gAQOpAkQbCt vrdrg-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_7ejvB4O3407bzoHDB8CNtwHQhg MQFBgEIIG9zwkoBDgAUNmGrML8_____wFgu9bJg9wKkAEFsgEl d3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51a7 oBDXNtYS03Mjh4OTBfYXPIAQHaAS1odHRwOi8vd3d3LnNjb3R0 aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51ay_gAQOpAkQbCt vrdrg-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_XvB9ecgpUBx8GttQrAjbcBsNsGEBEYA iCBvc8JKAQ4AFCf18en______8BYLvWyYPcCpABBbIBJXd3dy5 zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQ1zb WEtNzI4eDkwX2FzyAEB2gEtaHR0cDovL3d3dy5zY290dGlzaGV 4b3RpY3JlcHRpbGVzZm9ydW0uY28udWsv4AEDgAIBqQJEGwrb6 3a4PtACAagDAcgDB-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_XvB9ecgpUBx8GttQrAjbcBsNsGEBEYA iCBvc8JKAQ4AFCf18en______8BYLvWyYPcCpABBbIBJXd3dy5 zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQ1zb WEtNzI4eDkwX2FzyAEB2gEtaHR0cDovL3d3dy5zY290dGlzaGV 4b3RpY3JlcHRpbGVzZm9ydW0uY28udWsv4AEDgAIBqQJEGwrb6 3a4PtACAagDAcgDB-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_Y0BpvHD1wnAjbcBgPEEEAwYASCBvc8JKAQ4AFD qpJu1-v____8BYLvWyYPcCpABBLIBJXd3dy5zY290dGlzaGV4b3RpY3J lcHRpbGVzZm9ydW0uY28udWu6AQ1zbWEtNzI4eDkwX2FzyAEB2 gEtaHR0cDovL3d3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9 ydW0uY28udWsv4AEDqQJSZBU8Klq3PqgDAcgDB-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_Y0BpvHD1wnAjbcBgPEEEAwYASCBvc8JKAQ4AFD qpJu1-v____8BYLvWyYPcCpABBLIBJXd3dy5zY290dGlzaGV4b3RpY3J lcHRpbGVzZm9ydW0uY28udWu6AQ1zbWEtNzI4eDkwX2FzyAEB2 gEtaHR0cDovL3d3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9 ydW0uY28udWsv4AEDqQJSZBU8Klq3PqgDAcgDB-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
01-04-2009, 07:23 PM
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
01-23-2009, 07:50 PM
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-02-2009, 10:30 AM
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
05-09-2009, 10:17 PM
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
05-22-2009, 05:18 AM
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
12-17-2009, 06:30 PM
Can you give appropriate memberinfo templatesini to 3.8 series?

Jeweetog
12-24-2009, 04:52 PM
Does this work for version 4.0.0 too?

ps2wiz
01-26-2010, 08:50 AM
Does this work for version 4.0.0 too?

Same question.

floggerss
02-23-2010, 01:10 PM
How do i Add an adsense SEARCH BOx in the header?

tommac3
05-25-2010, 10:57 PM
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
06-04-2010, 01:35 AM
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
03-31-2012, 05:06 PM
wow, thats an awesome tutorial, thanks so much!!

g00gl3r
04-04-2012, 04:46 PM
Anything like this for VB4?

Bulent Tekcan
10-07-2012, 08:15 AM
We are waiting 4.0.x news...

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

ramesh_umk3
05-24-2013, 04:59 PM
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
05-08-2015, 03:51 AM
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