The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vBulletin Google Adsense Deep Integration Tutorial
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:
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> 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:
Quote:
(for the ad unit) Find: Quote:
Quote:
Save. Open your FORUMDISPLAY template: vBulletin AdminCP > Styles & Templates > Edit Templates > Forum Display Templates > FORUMDISPLAY (First thread) Find: Quote:
Quote:
(Last thread) Find: Quote:
Quote:
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:
Quote:
(Last result) Find: Quote:
Quote:
Save. Open your postbit(legacy) template: vBulletin AdminCP > Styles & Templates > Edit Templates > Postbit Templates > postbit(legacy) (First post and last shown post) Find: Quote:
Quote:
https://vborg.vbsupport.ru/showpost....30&postcount=7 Results: vBulletin Google Adsense Deep Integration Tutorial by NeutralizeR @ www.MsXLabs.org |
#162
|
|||
|
|||
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.
|
#163
|
|||
|
|||
Quote:
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 |
#164
|
|||
|
|||
It must be a differrent modification. I don't remember something like that.
|
#165
|
|||
|
|||
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:
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:
thanks Markos |
#166
|
||||
|
||||
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 |
#167
|
|||
|
|||
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.
|
#168
|
||||
|
||||
Hey Guys, Please Please Help.
Adding this: Quote:
I Once found another Version, but there Quotes overlap the ad. Is there any way to get this working with QUOTES?????? |
#169
|
||||
|
||||
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. |
#170
|
|||
|
|||
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...! |
#171
|
||||
|
||||
Can you give appropriate memberinfo templatesini to 3.8 series?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|