Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > Management Articles

Reply
 
Thread Tools
vBulletin Google Adsense Deep Integration Tutorial
NeutralizeR
Join Date: Aug 2005
Posts: 355

 

Show Printable Version Email this Page Subscription
NeutralizeR NeutralizeR is offline 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:

Quote:
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

Create a HTML file with this code and save it as collapsible_ad.html:
HTML Code:
<!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:
Quote:
<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:
Quote:
<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:





(for the ad unit)

Find:
Quote:
<!-- / PAGENAV POPUP -->
</if>
Add below:
Quote:
<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:




Save.



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

(First thread)

Find:
Quote:
<if condition="$show['threads']">
Add below:
Quote:
<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:
Quote:
<!-- end show threads -->
Add below:
Quote:
<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.

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:
Quote:
$searchbits

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

<else />
Add below:
Quote:
<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:
Quote:
</tr>
$searchbits
Add below:
Quote:
<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:




Save.


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

(First post and last shown post)

Find:
Quote:
<!-- / message -->
Add below:
Quote:
<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....30&postcount=7

Results:





vBulletin Google Adsense Deep Integration Tutorial by NeutralizeR @ www.MsXLabs.org
Reply With Quote
  #162  
Old 10-14-2008, 08:53 AM
NeutralizeR NeutralizeR is offline
 
Join Date: Aug 2005
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #163  
Old 10-14-2008, 06:53 PM
glenbelt glenbelt is offline
 
Join Date: Apr 2008
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NeutralizeR View Post
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

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

--------------- Added [DATE]1224067418[/DATE] at [TIME]1224067418[/TIME] ---------------

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
Reply With Quote
  #164  
Old 10-17-2008, 10:55 AM
NeutralizeR NeutralizeR is offline
 
Join Date: Aug 2005
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It must be a differrent modification. I don't remember something like that.
Reply With Quote
  #165  
Old 01-02-2009, 09:09 PM
Markos Markos is offline
 
Join Date: Aug 2006
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?????


Quote:
Originally Posted by NeutralizeR View Post
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 [DATE]1230946663[/DATE] at [TIME]1230946663[/TIME] ---------------

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



heres the code i used

PHP Code:
<!-- 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-A7IBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQk3Mjh4OTBfYXPIAQHaAS1odHRwOi8vd3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51ay-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-A7IBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQk3Mjh4OTBfYXPIAQHaAS1odHRwOi8vd3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51ay-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_____wFgu9bJg9wKsgEld3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51a7oBCTcyOHg5MF9hc8gBAdoBLWh0dHA6Ly93d3cuc2NvdHRpc2hleG90aWNyZXB0aWxlc2ZvcnVtLmNvLnVrL4ACAakCRBsK2-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_____wFgu9bJg9wKsgEld3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51a7oBCTcyOHg5MF9hc8gBAdoBLWh0dHA6Ly93d3cuc2NvdHRpc2hleG90aWNyZXB0aWxlc2ZvcnVtLmNvLnVrL4ACAakCRBsK2-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_____wFgu9bJg9wKkAEFsgEld3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51a7oBDXNtYS03Mjh4OTBfYXPIAQHaAS1odHRwOi8vd3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51ay_gAQOpAkQbCtvrdrg-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_____wFgu9bJg9wKkAEFsgEld3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51a7oBDXNtYS03Mjh4OTBfYXPIAQHaAS1odHRwOi8vd3d3LnNjb3R0aXNoZXhvdGljcmVwdGlsZXNmb3J1bS5jby51ay_gAQOpAkQbCtvrdrg-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______8BYLvWyYPcCpABBbIBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQ1zbWEtNzI4eDkwX2FzyAEB2gEtaHR0cDovL3d3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWsv4AEDgAIBqQJEGwrb63a4PtACAagDAcgDB-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______8BYLvWyYPcCpABBbIBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQ1zbWEtNzI4eDkwX2FzyAEB2gEtaHR0cDovL3d3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWsv4AEDgAIBqQJEGwrb63a4PtACAagDAcgDB-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____8BYLvWyYPcCpABBLIBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQ1zbWEtNzI4eDkwX2FzyAEB2gEtaHR0cDovL3d3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWsv4AEDqQJSZBU8Klq3PqgDAcgDB-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____8BYLvWyYPcCpABBLIBJXd3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWu6AQ1zbWEtNzI4eDkwX2FzyAEB2gEtaHR0cDovL3d3dy5zY290dGlzaGV4b3RpY3JlcHRpbGVzZm9ydW0uY28udWsv4AEDqQJSZBU8Klq3PqgDAcgDB-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
Reply With Quote
  #166  
Old 01-04-2009, 07:23 PM
Hendrizius's Avatar
Hendrizius Hendrizius is offline
 
Join Date: May 2007
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
-Adsense training Video
Reply With Quote
  #167  
Old 01-23-2009, 07:50 PM
enci enci is offline
 
Join Date: Feb 2008
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #168  
Old 02-02-2009, 10:30 AM
Riccardo83's Avatar
Riccardo83 Riccardo83 is offline
 
Join Date: May 2007
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Guys, Please Please Help.

Adding this:

Quote:
<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??????
Reply With Quote
  #169  
Old 05-09-2009, 10:17 PM
Smitty's Avatar
Smitty Smitty is offline
 
Join Date: Sep 2002
Location: Southern Ohio
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #170  
Old 05-22-2009, 05:18 AM
KevinGupta KevinGupta is offline
 
Join Date: Dec 2006
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Guys,

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


Code:
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...!
Reply With Quote
  #171  
Old 12-17-2009, 06:30 PM
root's's Avatar
root's root's is offline
 
Join Date: Dec 2008
Location: T?rkiye - Antalya
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you give appropriate memberinfo templatesini to 3.8 series?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07019 seconds
  • Memory Usage 2,415KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_php
  • (18)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete