vBulletin Mods

The Official vBulletin Modifications Site

enci 23 Jan 2009 20:50

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

Riccardo83 02 Feb 2009 11:30

Hey Guys, Please Please Help.

Adding this:


<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
<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 type="text/javascript"
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 09 May 2009 23:17

Just bumping. This was/is a good old thread.

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

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

KevinGupta 22 May 2009 06:18

Hi Guys,

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

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

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)">


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

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

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

root's 17 Dec 2009 19:30

Can you give appropriate memberinfo templatesini to 3.8 series?

Jeweetog 24 Dec 2009 17:52

Does this work for version 4.0.0 too?

ps2wiz 26 Jan 2010 09:50


Originally Posted by Jeweetog (Post 1937401)
Does this work for version 4.0.0 too?

Same question.

floggerss 23 Feb 2010 14:10

How do i Add an adsense SEARCH BOx in the header?

tommac3 25 May 2010 23:57

what is the best tool for 4.0? I am looking for something to place customize and optimized ads ... I dont think the standard 4.0 is enough ... is there a new article/mod based on 4.0?

jnrdavo 04 Jun 2010 02:35

hoping somebody can help..

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

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

google_ad_client = "pub-nnnnnnnnnnnnnn"; ??


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 type="text/javascript"

ptceuro 31 Mar 2012 18:06

wow, thats an awesome tutorial, thanks so much!!

g00gl3r 04 Apr 2012 17:46

Anything like this for VB4?

Bulent Tekcan 07 Oct 2012 09:15

We are waiting 4.0.x news...

doctorseoul 06 Feb 2013 14:26

Has anyone tried installing this hack in 4.2? Were there any problems? Appreciate any feedback...

ramesh_umk3 24 May 2013 17:59

Successfully Applied on vBulletin 4.2.x but the code in the 1st post need some changes to make it work properly


All times are GMT. The time now is 06:34.

Powered by vBulletin® Version 3.8.14
Copyright © 2023, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.