Dear John.
I now know a much easier way to add the ad code to PHPNUKE sites.
1) in includes/custom_files/
Create a file called custom_header.php
In there place this code
PHP Code:
<?php
if (eregi("block-AdSense.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
?>
<script language='JavaScript' type='text/javascript' src='http://ads2.psychz.net/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://ads2.psychz.net/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:8");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://ads2.psychz.net/adclick.php?n=a477094b' target='_blank'><img src='http://ads2.psychz.net/adview.php?what=zone:8&n=a477094b' border='0' alt=''></a></noscript>
<?php
$content .= "<center><script language=\"JavaScript\"
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">";
$content .= "</script></center>";
?>
Save and upload to includes/custom_files/
2) Footer ad
go to http://yournukesite.com/admin.php?op=Configure
go down to footer message and add PHP Code:
Free Webhosting By <a href="http://www.profusehost.net" target="_blank">Profusehost.net</a>
And that is it, this will place the ads at the top of every page on the PHPNUKE site as the header.php checks for a custom header and places it at the very top of the page and the footer message at the bottom of every page. To view a samlpe go to http://www.tvale.co.uk