The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
BLS - Google Adsense Color for Multiple Styles Details »» | ||||||||||||||||||||||||||||
BLS - Google Adsense Color for Multiple Styles
Developer Last Online: Jul 2013
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> PHP Code:
The code generated is LIKE an original GOOGLE ADSENSE, but the TOS DENY ANY CHANGE on it using the google adsense control panel. Quote:
Show Your Support
|
Comments |
#2
|
||||
|
||||
great product
that is what i really need |
#3
|
||||
|
||||
Nice hack. One question, did you check with Adsense to make sure this doesnt break their TOS? They can get a little funny when people add to their code.
|
#4
|
||||
|
||||
screens or demo?
|
#5
|
||||
|
||||
I just use Style Replacement Variables for each color. Works very well, and is already built into vB.
|
#6
|
|||
|
|||
I'd like to hear if this breaks TOS...
|
#7
|
||||
|
||||
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.
Here's what I use: Code:
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXXX"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text"; google_ad_channel ="0719787053"; google_color_border = "{adsense_color_border}"; google_color_bg = "{adsense_color_bg}"; google_color_link = "{adsense_color_link}"; google_color_url = "{adsense_color_url}"; google_color_text = "{adsense_color_text}"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> |
#8
|
||||
|
||||
it's the same, using replacement or a plugin.
I decided to use plugin because this is my first one and it's only an exercise for me. Just an easy script to test how vbulletin plugins works. Replacements are a cleaner way to do the same thing, I suggest to use ConqSoft, but... ...I don't want to create replacements for every style I have, so using my plugin you can recycle the color you used in other part of your layout (for every style) TOS? Only if you modify the output code, but if you print your final output all is as Google designed! |
#9
|
||||
|
||||
Quote:
|
#10
|
||||
|
||||
If you have a main style, and all your other styles as children under that, you only have to set the replacement variables in the "main" style, then only change the ones you need to change for each child style.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|