Webmaster Forum

Ezilon Directory   High Bandwidth Dedicated Servers   V7N Directory
Go Back   Webmaster Forum > Marketing Forums > Webmaster Revenue > Contextual Networks
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Contextual Networks AdSense, YPN and other contextual ad network forum.

Reply
 
LinkBack Thread Tools Display Modes
Old 05-24-2004, 08:45 PM   #1 (permalink)
Inactive
 
Join Date: 05-24-04
Posts: 3
iTrader: 0 / 0%
Latest Blog:
None

chowzer is liked by many
New to Adsense, having problem, please help!

I've signed up for Google Adsense and read all the various sites and forums' posts on implementing it within phpnuke sites using both the blocks and modules approach.

I have successfully added Adsense into various modules using the modules approach, but can't seemt to do it with the blocks.

I've created a block php file exactly as outlined on the luchtzak.be site, but get the following message showing up in the block on my homepage:
"There isn't content right now for this block".

Can anyone help me troubleshoot this as to why this message appears? My site is at http://www.ehangar.com/

Thank you in advance for any solutions or suggestions offered.
chowzer is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 05-25-2004, 03:02 PM   #2 (permalink)
Inactive
 
MadHatter's Avatar
 
Join Date: 11-19-03
Posts: 496
iTrader: 0 / 0%
Latest Blog:
None

MadHatter is on the right pathMadHatter is on the right pathMadHatter is on the right path
Hi, I've got alot of experience with nuke, here is how I used to do it, (using a block)
first, go to here:
http://www.disipal.net/modules.php?n...x&func=HTMLPHP

paste your google code in the top box, and hit 'convert'.

This gives you something like this:

[code:1:c61c242ffd]<?php
#### Generated by Html to PHP converter By Disipal Site (www.disipal.net) ####


echo"<script type="text/javascript"><!--"
. "google_ad_client = "pub-4352148429802114";"
. "google_ad_width = 120;"
. "google_ad_height = 600;"
. "google_ad_format = "120x600_as";"
. "google_ad_channel ="";"
. "//--></script>"
. "<script type="text/javascript""
. " src="http://pagead2.googlesyndication.com/pagead/show_ads.js">"
. "</script>"
."";

?>[/code:1:c61c242ffd]

Change it so it ends up like this:

[code:1:c61c242ffd]
<?php

if (eregi("block-Adsense.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

content .= "<script type="text/javascript"><!--"
. "google_ad_client = "pub-************";"
. "google_ad_width = 120;"
. "google_ad_height = 600;"
. "google_ad_format = "120x600_as";"
. "google_ad_channel ="";"
. "//--></script>"
. "<script type="text/javascript""
. " src="http://pagead2.googlesyndication.com/pagead/show_ads.js">"
. "</script>"
."";

?>[/code:1:c61c242ffd]

REMEMBER, DO NOT JUST COPY MY ADSENSE CODE, IT MUST BE YOURS TO WORK,
Or, you can just change my adsense code to suit if you know what you are doing.

Then, save the file as block-Adsense.php and place it in your 'blocks' directory, upload & activate.... voila.

I have now hardcoded adsense into my theme, with 2 plain text files containing my desired advertising code, one for a 468 banner, and one for a 120 banner, depending on whether the right hand blocks are on ($index == 1, but this is more time consuming, and advanced.
MadHatter is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-26-2004, 08:52 PM   #3 (permalink)
Inactive
 
Join Date: 05-24-04
Posts: 3
iTrader: 0 / 0%
Latest Blog:
None

chowzer is liked by many
Hi

Thanks mucho for your reply and help. I visited your excellent site and did exactly as you described, getting the code which is almost exactly as what you displayed, except for my account number!

I put it into the Block-Adsense.php file and uploaded it. However, now it just shows a collapsed empty box on the www.ehangar.com homepage.

I wonder if there's anything else I can do, did wrong, and if you have further suggestions.

Thanks again for your time and help!
chowzer is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-27-2004, 02:22 AM   #4 (permalink)
Inactive
 
MadHatter's Avatar
 
Join Date: 11-19-03
Posts: 496
iTrader: 0 / 0%
Latest Blog:
None

MadHatter is on the right pathMadHatter is on the right pathMadHatter is on the right path
Found the problem, and changed the code, this works for me:

[code:1:b4eccf74d1]<?php

if (eregi("block-Adsense.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

$content = "<script type="text/javascript"><!--
google_ad_client = "pub-*****************"
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_channel =""
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>";

?>[/code:1:b4eccf74d1]
MadHatter is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-27-2004, 03:21 AM   #5 (permalink)
Inactive
 
Join Date: 05-24-04
Posts: 3
iTrader: 0 / 0%
Latest Blog:
None

chowzer is liked by many
It works!

Thanks mucho mucho

You da man!

Thanks again!
chowzer is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-27-2004, 07:58 AM   #6 (permalink)
Inactive
 
MadHatter's Avatar
 
Join Date: 11-19-03
Posts: 496
iTrader: 0 / 0%
Latest Blog:
None

MadHatter is on the right pathMadHatter is on the right pathMadHatter is on the right path
No problem, enjoy using adsense!
MadHatter is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Marketing Forums > Webmaster Revenue > Contextual Networks

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adsense relevance problem on main page only ?!! GiorgosK Blogging Forum 10 04-10-2007 09:18 AM
Adsense 'problem' DaveyBoy Contextual Networks 7 10-25-2006 04:47 AM
AdSense Problem xzero Contextual Networks 6 11-05-2004 03:01 AM
Problem with integrating adsense with phpbb busy_brain Contextual Networks 7 07-08-2004 08:35 PM
Google adsense problem seoguru Contextual Networks 37 07-06-2004 04:10 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 10:38 AM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.