Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 02 Aug 2011, 03:52
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Real name: DRE
Question Google Adsense Background Color

How do I change this default vbulletin google adsense background (low settings). I inspected it in Firebug and saw no stylevar, .css class or html code for it in Templates, so is it changeable in the actual javascript code of vbulletin? Today I started using low settings in combination with Google Adsense Channels for 'Manage Ads'.

__________________
www.8thos.com
www.qapla.com
Reply With Quote
  #2  
Old 02 Aug 2011, 04:01
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Real name: Brooks
As far as I know, there is no way to change that background color. (I could be wrong)
Reply With Quote
  #3  
Old 02 Aug 2011, 04:06
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Real name: DRE
Originally Posted by HMBeaty View Post
As far as I know, there is no way to change that background color. (I could be wrong)
Where there's a will there's a way! I'll break my whole site if I have to.
__________________
www.8thos.com
www.qapla.com
Reply With Quote
  #4  
Old 02 Aug 2011, 04:08
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Real name: Brooks
Update: I found this: http://www.guruofsearch.com/adsense-...ent-background

Yes, it's possible, but we don't recommend it as it may prove to be a violation of your Google Adsense user agreement (or TOS = Terms of Service)
Reply With Quote
  #5  
Old 02 Aug 2011, 04:13
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Real name: DRE
Originally Posted by HMBeaty View Post
I just want to change it to my site's background color.


Use solid colors instead

You might be set on the whole transparent background thing, and might actually have a situation where it looks quite good. But the bottom line is you don't want to risk having your Adsense account suspended. Instead, we'd like to point out the advantages of using solid colors for your ad backgrounds.

* Solid colors pop more, and make the Adsense text more visible.
* If you want to blend your ads, you can choose an Adsense background color that matches the background color of your website.
* In some instances, you may actually want to vary the background color of your Adsense ad, as it will make it stand out from the rest of your site content.

--------------- Added 02 Aug 2011 at 04:49 ---------------

It's the top one in navbar template.

{vb:raw ad_location.ad_navbar_below} <---- This is where you set adsense low to high
{vb:raw ad_location.global_below_navbar} <---- That's for manage ads.

Where do I go to access this?


--------------- Added 02 Aug 2011 at 21:07 ---------------

I have not figured this out yet but until then, I'm doing it manually.
__________________
www.8thos.com
www.qapla.com

Last edited by 8thos; 02 Aug 2011 at 06:17.
Reply With Quote
  #6  
Old 04 Aug 2011, 05:54
Crotan's Avatar
Crotan Crotan is offline
 
Join Date: Feb 2010
Do they show up in your adsense account after adding them through the vbulletin integrated mod?

If they do you can change the color palette there.
(I'm pretty sure they don't)

Otherwise there is an old thread that was responded to by Steve for vb 3.8: https://www.vbulletin.com/forum/show...Google-Adsense

Here are the variables you can add to your code to change specific colors:

google_color_border = "336666";
google_color_bg = "FFE6CC";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "CC0000";

Substitute your color hex codes of course.
Go into admincp -> Styles & Templates -> Search in Templates. Search for "ad" You'll see ad_navbar_below and global_below_navbar both listed along with various other ad location templates.

--------------- Added 04 Aug 2011 at 06:15 ---------------

ad_navbar_below is the template you will want to change to customize the

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

Surprisingly the already established values in that template were

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

So looks like you have some stylevar hunting to do. On the other hand you could always directly change that code to my last post and it will do it all the same. However the stylevars are probably safer to update, the world won't end if you get your hex color code wrong. So i'd go with the stylevars over a direct edit of the code for this route

--------------- Added 04 Aug 2011 at 06:26 ---------------
However

Personally I wouldn't use the vbulletin mod because of the lack of integration with your actual adsense account.

You get so much more control if you generate the code from within your adsense account. you can use custom channels and all.

What I would recommend however is altering their placement templates with your own google ad code, for the placements you want. you can pick and choose your locations rather than using the all or nothing method their integration forces with the two options
__________________

Last edited by Crotan; 04 Aug 2011 at 06:40.
Reply With Quote
  #7  
Old 04 Aug 2011, 19:17
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Real name: DRE
Originally Posted by Crotan View Post
Do they show up in your adsense account after adding them through the vbulletin integrated mod?

If they do you can change the color palette there.
(I'm pretty sure they don't)

Otherwise there is an old thread that was responded to by Steve for vb 3.8: https://www.vbulletin.com/forum/show...Google-Adsense



Go into admincp -> Styles & Templates -> Search in Templates. Search for "ad" You'll see ad_navbar_below and global_below_navbar both listed along with various other ad location templates.

--------------- Added 04 Aug 2011 at 06:15 ---------------

ad_navbar_below is the template you will want to change to customize the

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

Surprisingly the already established values in that template were

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

So looks like you have some stylevar hunting to do. On the other hand you could always directly change that code to my last post and it will do it all the same. However the stylevars are probably safer to update, the world won't end if you get your hex color code wrong. So i'd go with the stylevars over a direct edit of the code for this route

--------------- Added 04 Aug 2011 at 06:26 ---------------
However

Personally I wouldn't use the vbulletin mod because of the lack of integration with your actual adsense account.

You get so much more control if you generate the code from within your adsense account. you can use custom channels and all.

What I would recommend however is altering their placement templates with your own google ad code, for the placements you want. you can pick and choose your locations rather than using the all or nothing method their integration forces with the two options
That's true but isn't the adsense code javascript built in and when adding custom adsense code you are making the site load a little longer? I found those templates but decided instead of the default 5 they give for text links I prefer 6 and because I use custom channels, I need to figure out how to ad my own custom codes to specific threads. I tried doing it by creating a replacement bb code and putting it inside the postbit with a google bot account but it made the thread load weird.
__________________
www.8thos.com
www.qapla.com
Reply With Quote
  #8  
Old 04 Aug 2011, 21:06
Crotan's Avatar
Crotan Crotan is offline
 
Join Date: Feb 2010
Originally Posted by Octavius. View Post
That's true but isn't the adsense code javascript built in and when adding custom adsense code you are making the site load a little longer? I found those templates but decided instead of the default 5 they give for text links I prefer 6 and because I use custom channels, I need to figure out how to ad my own custom codes to specific threads. I tried doing it by creating a replacement bb code and putting it inside the postbit with a google bot account but it made the thread load weird.
Compare the template the vbulletin included adsense mod creates to the code google will create for you. They both load javascript from google. Only difference is the vbulletin code grabs color information from stylevars where as adsense code from google will grab it from the configuration you setup in your adsense account.

I can't really help you do anything with specific threads, that might be something for another request.

The ad template to put google adsense in the first post of every thread is "ad_thread_first_post_content"
__________________
Reply With Quote
  #9  
Old 04 Aug 2011, 21:34
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Real name: DRE
K thanks man. I thought that the code they used was compressed javascript inside the vbulletin's core javascript files which makes the site faster. I was wondering is there a way to call that inside the template instead of using the whole javascript code since in-line javascript is a no-no?
__________________
www.8thos.com
www.qapla.com
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Thread Enhancements Earnmoneyworld.com Adsense Optimization | Get More Clicks With Google AdSense DxSEO vBulletin 4.x Template Modifications 30 29 Jan 2012 11:27
BLS - Google Adsense Color for Multiple Styles Bolas vBulletin 3.5 Add-ons 19 23 Jul 2006 10:38



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


New To Site? Need Help?

All times are GMT. The time now is 01:51.

Layout Options | Width: Wide Color: