Forums
| batboy.net :: Forums :: Forum :: Ported Themes! |
|
<< Previous thread | Next thread >> |
| How and where to turn this variable? | ||
|
Moderators: admin
|
| Author | Post | ||
| drdrop |
| ||
![]() Registered Member #191 Joined: Fri May 08 2009, 03:56PMPosts: 3 | Hi ! I would like to enable this variable
{adsense_468x60}
<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 |
| ||
![]() Registered Member #191 Joined: Fri May 08 2009, 03:56PMPosts: 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 |
| ||
admin![]() ![]() Registered Member #1 Joined: Fri Mar 14 2008, 09:10PMPosts: 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 | | ||
Powered by e107 Forum System
Main Menu
Welcome
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
View all posts (51)







