| Author |
Message |
Tank863
Lieutenant


Joined: Feb 21, 2003
Posts: 195
Location: Philadelphia
|
Posted:
Mon Feb 09, 2004 7:21 pm |
  |
1) You need to sign up for a google account... https://www.google.com/adsense/
2) Once they approve your account you will receive code from them.
3) Where to put the code.?? Nuke cops has their code inside of their NavTap.php file. I have my code inside my_header.php file from the includes folder.
4) How to code it...
It looks something like this:
| Code: |
?>
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXX";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<?php
|
Where XXXXX is your google id...
Notice the php tags are backwards.. that is to close the original opening php tag so you can use the javascript... and then you open the php tag once again to match up with the original closing tag...
That is all she wrote...
Thanks to Zhen & Scottr for their help...
Tank863 |
|
|
     |
 |
disgruntledtech
Site Admin


Joined: Apr 14, 2003
Posts: 994
Location: Tulsa, OK
|
Posted:
Mon Feb 09, 2004 9:42 pm |
  |
eewww this post is all STICKY!  |
|
|
     |
 |
XEULAS
Captain


Joined: Oct 20, 2003
Posts: 335
|
Posted:
Thu Feb 12, 2004 9:10 am |
  |
For those who just want a block with their google code, here is a link that doesnt require registration-
http://sitelance.com/files/SL_block-GADS.zip
Google AdSense blocks
Description: This zip file consists of four Google Adsense Blocks, one for each size google adsense ad (120x600, 300x250, 468x60, 728x90). Just put in your adsense ID code and you've got already made, theme adapting G ads.
Version: 20031117 Filesize: 4 bytes
Added on: 15-Oct-2003 Downloads: 92 |
|
|
    |
 |
paisannyc
Sergeant


Joined: Jan 10, 2004
Posts: 81
|
Posted:
Tue Feb 24, 2004 2:05 pm |
  |
anyway i can add this to the footer of each page? |
|
|
   |
 |
foxyfemfem
Support Staff


Joined: Jan 23, 2003
Posts: 668
Location: USA
|
Posted:
Tue Feb 24, 2004 2:14 pm |
  |
Hello,
Yes you can add it to your footer. Although, phpnuke will reject javascript codes if you add it via admin section. The best way to add it is via phpmyadmin.
Open your phpmyadmin. Goto nuke_config and edit your footer from there.
I have my google ad in my header and I added my javascript banner exchange codes to my footer via phpmyadmin. |
_________________ If you shoot for the moon and miss, you'll still be amongst the stars. |
|
   |
 |
bronteland
Elite Nuker


Joined: Feb 29, 2004
Posts: 278
|
Posted:
Sat Mar 20, 2004 2:33 am |
  |
is there a way to have the google ads open in a new window rather than take users away from my site? |
|
|
   |
 |
Chinese_Power
Private


Joined: Feb 16, 2004
Posts: 38
|
Posted:
Tue Apr 06, 2004 11:00 pm |
  |
Maybe as a popup |
_________________
 |
|
   |
 |
bronteland
Elite Nuker


Joined: Feb 29, 2004
Posts: 278
|
Posted:
Wed Apr 07, 2004 1:57 am |
  |
ooh no.. i detest pop-ups myself, and there are so many ways of stopping them apearing that many peeps wouldn't even see it.
I think it's something to do with the .js file they use, and there's probably some clause in terms and conditions saying thats how it has to be.
nm.. it earns the cents so it works, that will do i suppose.
Sarah. |
|
|
   |
 |
luchtzak
Support Mod


Joined: Mar 19, 2003
Posts: 308
|
Posted:
Wed Apr 07, 2004 2:27 am |
  |
|
    |
 |
bronteland
Elite Nuker


Joined: Feb 29, 2004
Posts: 278
|
Posted:
Wed Apr 07, 2004 7:55 am |
  |
i actually visited your site when i first placed my google banner about two months ago, very useful so thankyou for your info.
but that doesn't solve how to stop it taking visitors away form the website.
i think i'll send a little note to the google adsense team and find out if it is going to be possible, perhaps in later relases of their .js or something.
Sarah |
|
|
   |
 |
luchtzak
Support Mod


Joined: Mar 19, 2003
Posts: 308
|
Posted:
Wed Apr 07, 2004 7:59 am |
  |
Sarah,
so you mean the target="_blank" function?
I think google (and advertisers) don't want that people click on a banner and then a new page opens.
And you can always use the return-button. I have never lost any traffic because of an advertisement (I guess)
greetz,
Bart |
_________________ Luchtzak Aviation - Snookerforum Belgium |
|
    |
 |
bronteland
Elite Nuker


Joined: Feb 29, 2004
Posts: 278
|
Posted:
Wed Apr 07, 2004 8:15 am |
  |
thats exactly what i mean
anyway, i have just sent them a little note asking for any ways to change the script, or if they plan on changing things in the future.
I shall post their reply here when i recieve it.
Sarah. |
|
|
   |
 |
bronteland
Elite Nuker


Joined: Feb 29, 2004
Posts: 278
|
Posted:
Thu Apr 08, 2004 11:54 am |
  |
from the google team.
| Quote: |
Hello Sarah,
Thank you for your email. We understand the importance of maintaining the
quality of your site and your site's user experience. At this time,
however, we do not have an option to open the AdWords ads in a new browser
window. Please do not modify the AdSense ad code or alter the result of
clicking on an ad on your website.
Please feel free to email us at adsense-support@google.com if you have
additional questions or concerns. For technical support, please email
adsense-tech@google.com.
Sincerely,
The Google Team
|
well at least they answered, but not good news.
nm.
Sarah. |
|
|
   |
 |
GiZiM
Corporal


Joined: May 21, 2004
Posts: 52
|
Posted:
Wed Jun 02, 2004 6:27 pm |
  |
How do you add it to your header file?
Also under phpadmin?
When trying to ad it to my footer under phpadmin. i guess im under nuke_conf click on BROWSE and i try and click EDIT but it brings up a blank page. |
|
|
   |
 |
GiZiM
Corporal


Joined: May 21, 2004
Posts: 52
|
Posted:
Wed Jun 02, 2004 6:54 pm |
  |
Do i need to manually change the header.php file? |
|
|
   |
 |
|
|