
Fishing Main
Home Community Members options Forums Search Web

Who is where

Groups
 Join a Group • Pro ShopLog in to join or manage group memberships

Old Articles
| Friday, September 14 |
| • |
Google Adsense and CPG Nuke Dragonfly CPGNUKE (0) | | Tuesday, September 04 |
| • |
Kenai River Fishing (0) | | Wednesday, August 29 |
| • |
Pacific Ocean and Buoy 10 Coho and Chinook Salmon Fishing (0) | | Tuesday, August 21 |
| • |
Alaska Salmon Fishing Charters (1) | | Tuesday, August 07 |
| • |
The great Fishingnw.com T-Shirt Logo Contest (0) | | Friday, August 03 |
| • |
Summer fishing heats up across state; 'fall season' starts Aug. 1 on the Columbi (1) | | Tuesday, July 24 |
| • |
Ocean salmon season starts with a bang as other fisheries heat up around state (1) | | Tuesday, July 24 |
| • |
Anglers fishing portions of Puget Sound reminded to properly release wild chinoo (1) | | Sunday, July 08 |
| • |
North Western Rivers (1) | | Monday, June 04 |
| • |
Catch trout, salmon, sturgeon on Free Fishing Weekend (1) | | Tuesday, March 13 |
| • |
Fishing improves with the change of season (0) | | Monday, February 26 |
| • |
Head to eastside lakes for trout, Puget Sound for blackmouth (0) | | Thursday, February 22 |
| • |
Wynoochee January 2007 Hot and Cold (0) | | Monday, January 22 |
| • |
Western rivers (0) | | Monday, January 22 |
| • |
Members Map updated (0) | | Monday, December 04 |
| • |
Weekender Update November 29 - December 12, 2006 (0) | | Tuesday, November 21 |
| • |
Weekender Update November 15 - 28, 2006 (1) | | Wednesday, November 01 |
| • |
stillguamish (0) | | Monday, October 23 |
| • |
Steelhead Anglers Report in (0) | | Thursday, September 21 |
| • |
Weekender Update September 20 - October 3, 2006 (0) | | Tuesday, September 19 |
| • |
2006 Yakima River / Hanford Reach Salmon Reports and Ringold Steelhead Reports (0) | | Monday, September 18 |
| • |
INVENTORY BLOWOUT SALE (0) | | Tuesday, September 12 |
| • |
Lake Washington sockeye catch largest in a decade (1) | | Thursday, September 07 |
| • |
Weekender Update September 6-19, 2006 (0) | | Tuesday, August 29 |
| • |
Weekender Update August 23 - September 5, 2006 (0) | | Sunday, August 20 |
| • |
How to Catch Salmon - Marine Areas (0) | | Sunday, August 20 |
| • |
Slam'n Salmon Ocean Derby in Brookings, Oregon (0) | | Thursday, August 10 |
| • |
Weekender Update August 9 - 22, 2006 (0) | | Thursday, July 27 |
| • |
Weekender Update July 26 - August 8, 2006 (0) | | Saturday, July 22 |
| • |
Brewster Salmon Derby (0) | Older Articles
|
Community Forums › Php › Google AdSense › Google AdSense Block Right
Google AdSense Block RightGoogle AdSense is a fast and easy way for website publishers of all sizes to display relevant Google ads on their website's content pages and earn money.
| View previous topic :: View next topic |
| Author |
Message |
glock Site Admin


Joined: Oct 02, 2003 Posts: 814 Location: Washington State
|
Posted: Mon Sep 12, 2005 2:12 pm Post subject: Google AdSense Block Right |
|
Below is the code and an explanation of how I created the top right banner adsense ad on this site. These banner ads are using Google Adsense.
Important - All of the [ ] in this code must be replaced with < > .
This was done so I could share this code with you.
Here is a look at what the original Google AdSense code looked like.
| Code:: |
[script type="text/javascript"][!--
google_ad_client = "ENTER YOUR OWN CLIENT ID HERE";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_page_url = document.location;
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "0033FF";
google_color_text = "000000";
//--][/script]
[script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"]
[/script] |
From this, I created a block called block-GoogleAdSense.php.
| Code:: |
[?php
#### Modified by EJK FISHINGNW.COM ###
#### MAKE CHANGES AT WILL ####
### ALWAYS BACKUP YOUR FILES ###
### NOT RESPONSIBLE FOR DAMAGES ###
## REPLACE all [ or ] in this code with < or > ##
if (eregi("block-GoogleAdSense.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
?]
[script type="text/javascript"][!--
google_ad_client = "ENTER YOUR OWN CLIENT ID HERE";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text_image";
google_page_url = document.location;
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "0033FF";
google_color_text = "000000";
//--]
[/script]
[?php
$content .= "[center][script language=\"JavaScript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"]";
$content .= "[/script][/center]";
?]
|
Last edited by glock on Tue Sep 13, 2005 7:21 am; edited 1 time in total |
|
| Back to top |
|
 |
super_dude Egg


Joined: Sep 13, 2005 Posts: 2
|
Posted: Tue Sep 13, 2005 4:25 am Post subject: |
|
good day glock
thanks for the good code hack. When it comes to hacking i am the newbie sorry for that.
well can i portover this to postcms - where have i do some changes - plz. advice i am very very thankful
regards super dude
|
|
| Back to top |
|
 |
glock Site Admin


Joined: Oct 02, 2003 Posts: 814 Location: Washington State
|
Posted: Tue Sep 13, 2005 6:34 am Post subject: |
|
Use or modify this code at will.
|
|
| Back to top |
|
 |
super_dude Egg


Joined: Sep 13, 2005 Posts: 2
|
Posted: Thu Sep 15, 2005 9:21 am Post subject: |
|
god day glock
| glock wrote: |
| Use or modify this code at will. |
will give it a try - if i get lost i turn back here.
BTW keep up your supergreat site - you guy rock - thanks for supporting phpcms. You scripts rock me like a hurricane
superdude your dude!
|
|
| Back to top |
|
 |
|
|
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 You cannot attach files in this forum You can download files in this forum
|
|