- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 80 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Google Adsense-How do you get the javascript code to work? [ ]
Author
Message
Xeon
Sergeant
Joined: Aug 28, 2003
Posts: 144
Location: USA
Posted:
Wed Apr 27, 2005 12:46 am
My site has just been accepted for use with Google Adsense and it appears that I cannot figure out where to input the google adsense code into phpnuke. Do I just place the code within my index.php within my root directory?
So how do you get the banners to work on your phpnuke sites? For example, this site has the google adsense running in the banner area, but I can't figure out how to get mine to run there.
Can anyone please indicate how you managed to get yours working with your nuke site??
Thank you in advance for your reply and help!
_________________Xeon
http://www.credit-repair-combat.com/
shrek_rock
Captain
Joined: Nov 24, 2003
Posts: 709
Posted:
Wed Apr 27, 2005 5:49 am
It depends on where you want it to display, if you want it in a block then the tutorial below will show you how to add google ads to a block.
http://www.westernstudios.net/web/tut-google-block.html
If you want it in the header like here at nukecops then open your header.php and echo your google ads.. Place it just before the function head()
Quote:
echo '<center><script type="text/javascript"><!--
google_ad_client = "pub-0000000000000000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "006B8C";
google_color_bg = "FFFFFF";
google_color_link = "006B8C";
google_color_url = "006B8C";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>';
_________________
Xeon
Sergeant
Joined: Aug 28, 2003
Posts: 144
Location: USA
Posted:
Wed Apr 27, 2005 4:28 pm
Thanks shrek!
Yeah I found the tutorials on the phpnuke site which also outlines how to do both of these.
Thanks for letting me know.
_________________Xeon
http://www.credit-repair-combat.com/
Kelen1
Nuke Cadet
Joined: Apr 28, 2005
Posts: 1
Posted:
Thu Apr 28, 2005 5:41 am
shrek_rock
Captain
Joined: Nov 24, 2003
Posts: 709
Posted:
Thu Apr 28, 2005 7:52 am
You're both welcome
_________________
rudiger
Nuke Cadet
Joined: May 30, 2005
Posts: 1
Posted:
Mon May 30, 2005 12:22 pm
Any idea who to use the javascript code into the database content. I would have different google adsense depending on the author of the content
Just using the code as it is ..doesn't show up at the screen.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum