• Home
  • About Us
Snowman


batboy.net
ported e107 themes

Forums

batboy.net :: Forums :: Forum :: Ported Themes!
 
<< Previous thread | Next thread >>
How and where to turn this variable?
Moderators: admin
Author Post
drdrop
Thu May 14 2009, 02:05PM
Registered Member #191
Joined: Fri May 08 2009, 03:56PM
Posts: 3
Hi !

I would like to enable this variable
{adsense_468x60}
to enable AdSense ads on my site, can say how to do this?

   <div style='position:absolute;top:40px;left:250px'>{adsense_468x60} </div> 


Thanks


[ Edited Thu May 14 2009, 02:55PM ]

http://www.celularnarede.com
Back to top
drdrop
Thu May 14 2009, 02:54PM
Registered Member #191
Joined: Fri May 08 2009, 03:56PM
Posts: 3
Display your Google Adsense banner using a shortcode

You can also display your Google Adsense by using a {GOOGLEAD} shortcode inserted into the $HEADER or $FOOTER templates in your theme.php file. This method is useful if you want the ad below your normal banner area, but before the rest of the page, or inserted within your footer area :
Using a text-editor, create a new file named googlead.sc and type in the following...
return ' ';
Paste your Adsense code in between the two single quotes that you typed in, above. Your file should now look something like this...
return '<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxx";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "dad9cf";
google_color_bg = "dad9cf";
google_color_link = "800030";
google_color_text = "000000";
google_color_url = "005020";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';
You can edit the various google_xxx lines to change color values, for example, but do not change the line formatting, or google's script won't work (this is true for all the other methods above, as well).
Save the new googlead.sc file to your e107_files/shortcode/ directory.
You can now use the {GOOGLEAD} shortcode within your templates, as you would any other shortcode.


Ja descobri!
Obrigado, desde já
Thanks
:)
www.celularnarede.com

http://www.celularnarede.com
Back to top
admin
Sat May 16 2009, 09:55AM
admin

Registered Member #1
Joined: Fri Mar 14 2008, 09:10PM
Posts: 21
Hi,

You have already answered your own question, so create a shortcode with the google code and name it adsense_468x60.sc.
Place it in e107_files/shortcode/ and it should work.

/j
Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

Main Menu

Home
Forum
Downloads
Members
Contact Us

Welcome

Username:

Password:


Remember me

[ Signup ]
[ Forgot password? ]
[ Resend Activation Email ]

Chatbox

You must be logged in to post comments on this site - please either log in or if you are not registered click here to signup


sanusikuta
20 Aug : 10:45
hello

demo
07 Aug : 02:33
nada

demo
18 Jul : 20:01
test

demo
07 Jul : 15:26
cool

demo
06 Jul : 10:08
THIS IS THE SEX.


View all posts (51)

This site is powered by e107, which is released under the terms of the GNU GPL License.
Visit id3.se | spotiweb.com | advrider.se