Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
BLS - Google Adsense Color for Multiple Styles Details »»
BLS - Google Adsense Color for Multiple Styles
Version: 1.00, by Bolas Bolas is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-04-2006 Last Update: Never Installs: 3
Uses Plugins
 
No support by the author.

Hi Ya!

What appens if you got lot of styles and you need to put a Google Adsense banner with specified color/background-color for each else?
You have to put the code in every style, with the opportune change of color in the code.

This product will save you from that!

live examples with different styles:
http://www.wellage.net/showthread.php?t=18948
http://www.wellage.net/showthread.ph...948&styleid=57
http://www.wellage.net/showthread.ph...948&styleid=54
http://www.wellage.net/showthread.ph...948&styleid=59
http://www.wellage.net/showthread.ph...948&styleid=17

1) Install the product
2) Use this code to put the banner (THIS IS ONLY AN EXAMPLE!!! YOU HAVE TO EDIT YOUR GOOGLE ADSENSE CODE WITH THE RIGHT DATA!!! USE ONLY THE GREEN LINES!!!)

Code:
<script type="text/javascript"><!--
google_ad_client = "pub-2120333334261222-EDIT-THIS";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="0691023760";

google_color_border = "$google_color_border";
google_color_bg = "$google_color_bg";
google_color_link = "$google_color_link";
google_color_url = "$google_color_url";
google_color_text = "$google_color_text";

 //--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
If you want to change color solutions, edit mine GoogleAdsenseColorProduct.xml and try using the following color variables. Then import it again overwriting the old version.

PHP Code:
   $stylevar["body_fgcolor"]
  
$stylevar["page_bgcolor"]
  
$stylevar["page_fgcolor"]
  
$stylevar["tborder_bgcolor"]
  
$stylevar["tborder_fgcolor"]
  
$stylevar["tcat_bgcolor"]
  
$stylevar["tcat_fgcolor"]
  
$stylevar["thead_bgcolor"]
  
$stylevar["thead_fgcolor"]
  
$stylevar["tfoot_bgcolor"]
  
$stylevar["tfoot_fgcolor"]
  
$stylevar["alt1_bgcolor"]
  
$stylevar["alt1_fgcolor"]
  
$stylevar["alt2_bgcolor"]
  
$stylevar["alt2_fgcolor"]
  
$stylevar["td.inlinemod_bgcolor"]
  
$stylevar["td.inlinemod_fgcolor"]
  
$stylevar["wysiwyg_bgcolor"]
  
$stylevar["wysiwyg_fgcolor"]
  
$stylevar["time_fgcolor"]
  
$stylevar["highlight_fgcolor"]
  
$stylevar["fjsel_bgcolor"]
  
$stylevar["fjsel_fgcolor"]
  
$stylevar["fjdpth0_bgcolor"]
  
$stylevar["fjdpth0_fgcolor"]
  
$stylevar["panel_bgcolor"]
  
$stylevar["panel_fgcolor"]
  
$stylevar["panelsurround_bgcolor"]
  
$stylevar["panelsurround_fgcolor"]
  
$stylevar["legend_fgcolor"]
  
$stylevar["vbmenu_control_bgcolor"]
  
$stylevar["vbmenu_control_fgcolor"]
  
$stylevar["vbmenu_popup_bgcolor"]
  
$stylevar["vbmenu_popup_fgcolor"]
  
$stylevar["vbmenu_option_bgcolor"]
  
$stylevar["vbmenu_option_fgcolor"]
  
$stylevar["vbmenu_hilite_bgcolor"]
  
$stylevar["vbmenu_hilite_fgcolor"]
  
$stylevar["outerdivwidth"]
  
$stylevar["divwidth"
IMPORTANT! READ THIS! USING THIS PLUGIN WILL BREAK ADSENSE TOS, so use it at your own risk. I will not assume any responsability about your use of this plugin.
The code generated is LIKE an original GOOGLE ADSENSE, but the TOS DENY ANY CHANGE on it using the google adsense control panel.
Quote:
Originally Posted by rrr
The adsense TOS says that you cannot modify the code they generate for you in any way.

You're right though, it will probably look and function the same and it would probably go unnoticed (unless something broke). But it is against the adsense TOS.

This was clarified a few times on another forum by a Google employee.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-05-2006, 11:49 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great! i needed that as well ready to test it out
Reply With Quote
  #13  
Old 04-06-2006, 04:01 AM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=109448" target="_blank">Google Ads Enhanced</a>

Check Out That....Its Just A Template MOD... Works With Any Style...

(Not Trying To Take Away Your Credit)
Reply With Quote
  #14  
Old 04-06-2006, 09:28 AM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ConqSoft
How is it breaking the TOS? You are allowed to change the colors. When the page is processed, the code looks exactly like any other adsense code.

It probably doesnt - but you know how Google is -
Reply With Quote
  #15  
Old 04-06-2006, 05:39 PM
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Location: Arizona
Posts: 697
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How and what would I edit to get the colors to match my site??
Reply With Quote
  #16  
Old 04-06-2006, 06:20 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

click on the link of my last post...
Reply With Quote
  #17  
Old 04-07-2006, 06:24 PM
Bolas's Avatar
Bolas Bolas is offline
 
Join Date: Jan 2003
Location: Venice
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mholtum
How and what would I edit to get the colors to match my site??
Edit the xml you have downloaded from this thread.

In the first post you can find a long list of variables. In xml you can replace old variables with the items of the lists. The list contains all available color of your style.

Example:
$stylevar["body_fgcolor"] is the body foreground color
$stylevar["page_bgcolor"] is the page background color
$stylevar["page_fgcolor"] is the page background color
etc..


Quote:
Originally Posted by ShadowOne
foo..
Of course, your is a truly fantastic product. Truly.
Reply With Quote
  #18  
Old 04-07-2006, 07:50 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Truly a great hack!

Thank you!
Reply With Quote
  #19  
Old 04-07-2006, 08:50 PM
rrr rrr is offline
 
Join Date: Oct 2004
Location: California
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
How is it breaking the TOS? You are allowed to change the colors. When the page is processed, the code looks exactly like any other adsense code.
The adsense TOS says that you cannot modify the code they generate for you in any way.

You're right though, it will probably look and function the same and it would probably go unnoticed (unless something broke). But it is against the adsense TOS.

This was clarified a few times on another forum by a Google employee.
Reply With Quote
  #20  
Old 04-08-2006, 08:34 AM
Bolas's Avatar
Bolas Bolas is offline
 
Join Date: Jan 2003
Location: Venice
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I will specify that in the thread in huge chars. Thanx rrr
Reply With Quote
  #21  
Old 07-23-2006, 08:38 AM
hilfe-forum hilfe-forum is offline
 
Join Date: Sep 2005
Location: http://www.alpha-board.eu
Posts: 198
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don´t work at 3.5.3 ???

I use the original .xml

but html output is always:

google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "";
google_color_bg = "";
google_color_link = "";
google_color_url = "";
google_color_text = "";

Can you help me please?
Reply With Quote
Reply


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 11:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04763 seconds
  • Memory Usage 2,323KB
  • Queries Executed 25 (?)
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_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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