You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 64 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 - How to Google Ads on your nuke site... [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
luchtzak
Support Mod
Support Mod


Joined: Mar 19, 2003
Posts: 308


PostPosted: Thu Jun 03, 2004 12:45 am Reply with quoteBack to top

Chinese_Power wrote:
Maybe as a popup


popupping google ads is not allowed.

_________________
Luchtzak Aviation - Snookerforum Belgium
Find all posts by luchtzakView user's profileSend private messageVisit poster's website
luchtzak
Support Mod
Support Mod


Joined: Mar 19, 2003
Posts: 308


PostPosted: Thu Jun 03, 2004 12:47 am Reply with quoteBack to top

GiZiM wrote:
Do i need to manually change the header.php file?


Another thing you can do is to make a new file in your root-folder called googleads.php with this in it:

Code:
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-xxxx";
google_alternate_ad_url = "http://www.luchtzak.be/banners.php";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "336699";
google_color_url = "000000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>


then in the module you like behind:

include("header.php");

add

include("googleads.php");

_________________
Luchtzak Aviation - Snookerforum Belgium
Find all posts by luchtzakView user's profileSend private messageVisit poster's website
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Thu Jun 03, 2004 2:51 am Reply with quoteBack to top

Quote:
Do i need to manually change the header.php file?

You don't need to. Add the code either to header.html or to theme.php
before the <tr> for the $public_msg
and you will get what you'll see if you visit the www.vdsp.net
Find all posts by ImagoView user's profileSend private messageVisit poster's website
GiZiM
Corporal
Corporal


Joined: May 21, 2004
Posts: 52


PostPosted: Thu Jun 03, 2004 7:30 am Reply with quoteBack to top

Imago wrote:
Quote:
Do i need to manually change the header.php file?

You don't need to. Add the code either to header.html or to theme.php
before the <tr> for the $public_msg
and you will get what you'll see if you visit the www.vdsp.net
ah ok so i add the code above ah ok thanks
Find all posts by GiZiMView user's profileSend private message
stinger123
Nuke Cadet
Nuke Cadet


Joined: Jun 12, 2004
Posts: 1


PostPosted: Sat Jun 12, 2004 11:09 am Reply with quoteBack to top

Hi
Being a new phpnuke user and only being able to edit simple phpnuke documents (still learning)
Ive just started a review website - and noticed alot of sites have Google AdSense on them. I signed up and recieved my confirmation email. I have created the block & its now showing on my site - but i have a few questions/probs:
1 when editing the settings of my adsense (colour/size etc) i chose a 120x600 banner and chose to have text ads only (i wanted text ads only basically because i have enough images on my website) - i also chose to have 4 text ads showing in the block - but for some reason after creating the block i have a 120x600 sized image - which is showing an ad which is nothing at all to do with the content of my site (think its showing an ad about ppl with disabilities) - will the image change after a period of time to ads which i saved in my setting (4 text ads?)
Why isnt it showing ads that go along with the content of my site? (will this also be changed after a period of time?) any help would be much apreciated.
Find all posts by stinger123View user's profileSend private message
telli
Support Mod
Support Mod


Joined: Aug 21, 2003
Posts: 335


PostPosted: Sat Jun 12, 2004 12:01 pm Reply with quoteBack to top

They need to spider your site a few times and learn the content before the adds will be a little more content related. You might also want to look into Bidclix and Top Posters they both offer nice incentives for add carriers.

_________________
[img]http://www.codezwiz.com/extern.php?get=sig[/img]
http://www.codezwiz.com
PHPNuke Themes
$3.99 500 MB Storage & 20 GIG Trans w/ NO limit MYSQL
Click Me
Find all posts by telliView user's profileSend private message
scz
Nuke Soldier
Nuke Soldier


Joined: Apr 07, 2004
Posts: 27


PostPosted: Sat Jul 17, 2004 5:42 am Reply with quoteBack to top

hi! how do i put google adsense to the right blocks when reading news?

_________________
free articles
free article submission
Find all posts by sczView user's profileSend private messageVisit poster's website
dilligaf
Nuke Soldier
Nuke Soldier


Joined: Mar 31, 2004
Posts: 11


PostPosted: Tue Jul 20, 2004 8:33 pm Reply with quoteBack to top

I'm adding just a little update to this code.

If you are like me and have different themes for your site, especially themes that vary in colour, and your Adsense banner looks OK in one theme but crap in the others, I have come up with a solution!!

By simply using the bgcolor of the theme it will now change the colour of your Adsense banner.

luchtzak wrote:
GiZiM wrote:
Do i need to manually change the header.php file?


Another thing you can do is to make a new file in your root-folder called googleads.php with this in it:

code removed

then in the module you like behind:

include("header.php");

add

include("googleads.php");


Just add two new lines to your code and change two other lines (plus all the php echo's)

Code:

<?php
global $bgcolor3, $bgcolor1;
$bgcolour3 = substr(strrchr($bgcolor3,"#"),1);
$bgcolour1 = substr(strrchr($bgcolor1,'#'),1);
echo "<center><script type=\"text/javascript\"><!--\n"
."google_ad_client = \"pub-your_adsense_number\";\n"
."google_ad_width = 468;\n"
."google_ad_height = 60;\n"
."google_ad_format = \"468x60_as\";\n"
."google_ad_type = \"text_image\";\n"
."google_color_border = \"$bgcolour3\";\n"
."google_color_bg = \"$bgcolour1\";\n"
."google_color_link = \"336699\";\n"
."google_color_url = \"000000\";\n"
."google_color_text = \"000000\";\n"
."//--></script>\n"
."<script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n"
."</script></center>";
?>


Obviously width, height, format, type and channel are left up to your own preferences as the code above has mine.

Now I hear you say "Why don't you just add $bgcolor1 instead of changing it?"

Well Adsense colours do not like the '#' in front of them so we have to strip them out.
Now one could go a step further and replace the link, url and text colours to if they want to but this was enough for my liking.
Now when anyone changes the theme, the Adsense banner will match.

And remember the '<?" and '?>' at the top and bottom. Since we are using php variables this code now has to be written in php.

Anyhow let me know if you like/dislike.
Find all posts by dilligafView user's profileSend private message
lost2
Sergeant
Sergeant


Joined: Nov 01, 2003
Posts: 136

Location: BANNED

PostPosted: Fri Jul 23, 2004 10:01 pm Reply with quoteBack to top

iono i never had a problem with it.. i either inserted the code directly in the database or i made a txt file with the code and then i placed a include("google_leader.txt"); line in the theme.php where i wanted it.. did it to the News module also..

what i wanted to know is if could be possible to throw in the google ads in rotation with the rest of the banners in the Banner Module


if anyone got any idea holla back on this one
Find all posts by lost2View user's profileSend private messageSend e-mail
dilligaf
Nuke Soldier
Nuke Soldier


Joined: Mar 31, 2004
Posts: 11


PostPosted: Fri Jul 23, 2004 11:01 pm Reply with quoteBack to top

As GiZiM stated, you must save the file as a php file not text so your file should be saved as google_leader.php and your include line should be include("google_leader.php");
Find all posts by dilligafView user's profileSend private message
lost2
Sergeant
Sergeant


Joined: Nov 01, 2003
Posts: 136

Location: BANNED

PostPosted: Fri Jul 23, 2004 11:32 pm Reply with quoteBack to top

why does it have to be php? it works fine as txt
thats not what i'm asking..

i would like to include google in rotation with the banner module ad clients

anyone know if this could be possible holla

_________________
B4nN3d
Find all posts by lost2View user's profileSend private messageSend e-mail
luchtzak
Support Mod
Support Mod


Joined: Mar 19, 2003
Posts: 308


PostPosted: Sun Jul 25, 2004 2:07 pm Reply with quoteBack to top

Lost2,

I use the google ads and when no ads can be delivered by google it automatically runs www.luchtzak.be/banners.php

you can select this in your google adsense profile

_________________
Luchtzak Aviation - Snookerforum Belgium
Find all posts by luchtzakView user's profileSend private messageVisit poster's website
Dapunisher
Nuke Soldier
Nuke Soldier


Joined: May 24, 2004
Posts: 11


PostPosted: Mon Aug 23, 2004 6:46 pm Reply with quoteBack to top

Thanks dilligaf for the code! It works AWESOME!!!! Very Happy Very Happy

_________________
FREE on-line certification study for CompTIA, Microsoft, Cisco & More! Practice Tests & Study Guides.
http://www.BestTests.com
Find all posts by DapunisherView user's profileSend private messageSend e-mailVisit poster's website
alinka
Sergeant
Sergeant


Joined: Jan 20, 2004
Posts: 80


PostPosted: Mon Nov 29, 2004 5:02 am Reply with quoteBack to top

I use phpbb forums. I have already created the googleads.php file and have been including it after include()headers as stated somewhere on these forums....

What I now want to learn how to do is how to include googleads into the actual text of each private message and each forum message. This would be similar to google's gmail - where you see targeted google adsense ads inside your emails based on the text of emails. Please help, anyone.

Thanks a bunch!!
Find all posts by alinkaView user's profileSend private message
ldude69000
Nuke Soldier
Nuke Soldier


Joined: May 31, 2005
Posts: 20


PostPosted: Sat Sep 17, 2005 5:58 am Reply with quoteBack to top

lol look at mine! www.airsoftstim.com ALL THE BLANC ads i've tried everythign! Sad

_________________
[img]http://img261.echo.cx/my.php?image=leave4bc.png[/img]
Find all posts by ldude69000View user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.637 Seconds - 225 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::