[PHP-NUKE] Adding Advertisements

trev

Member
Prime Account
Messages
670
Reaction score
0
Points
16
Ok I some people are having trouble so iv looked into it and i managed to get a working add into phpnuke!

My phpnuke test

1) Ok first of make a file called adds.html and place inside you're code.

Code:
<p align="center">
<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/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://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
    document.write ("&amp;what=zone:1&amp;target=_blank");
    document.write ("&amp;exclude=" + document.phpAds_used);
    if (document.referrer)
       document.write ("&amp;referer=" + escape(document.referrer));
    document.write ("'><" + "/script>");
 //-->
 </script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a1dbc885' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a1dbc885' border='0' alt=''></a></noscript>
</p>

Save and upload to the includes folder inthe root directory of phpnuke.

2)Next Open open the header.php file in the root directory for phpnuke. Search for
Code:
include("includes/meta.php"); 
include("includes/javascript.php");

Bellow add
Code:
include("includes/adds.html");

Save and upload.

This is the only way as yet i have found to incloud the adds into phpnuke!
 

Rhianna

New Member
Messages
988
Reaction score
0
Points
0
Adding Ads to PHPNuke

Thanks, trev, for your very useful tutorial to include ads in phpnuke :)

I am sure this will help some of the other members :)
 

kontacto

New Member
Messages
34
Reaction score
0
Points
0
Horizontal banner is horrible for PHP-NUKE. It destroys all theme. The administrators must urgently create to banner vertical 120*240 pixels to put it in a block or to approve the Web sites quickly so that we pruned to put a vertical Google Ads in a block that is very easy.
 

trev

Member
Prime Account
Messages
670
Reaction score
0
Points
16
actualy id dissagre my current way of intigrating i believe looks better than haveing a vertial banner add length to you're site! Also if the banner doesnt fit with youre colour settings its gonna screw up where ever you place them!



rhianna said:
Thanks, trev, for your very useful tutorial to include ads in phpnuke :)

I am sure this will help some of the other members :)

Thanxs i saw an area i could help with and help it was bugging me anyway so im just pleased it works and people are happy theres a sollution for phpnuke!
 

Articz

New Member
Messages
864
Reaction score
0
Points
0
this will b handy as i am going to learn how to use php nuke soon and ill need to ad the adverts ty mate
 

Cycloneflame

New Member
Messages
128
Reaction score
0
Points
0
I think that there should be a selection of ad banners, like Vertical side bars, and Blocks and things.
 

Xempttt

New Member
Messages
830
Reaction score
0
Points
0
its horizontal because u put it in the header.php file and it shows up on the very top of the page. even above the theme. see my site as an exmple.
 

WiZk!d

New Member
Messages
38
Reaction score
0
Points
0
ok managed to get it work..

but the link doesnt really centers..

can someone help me with that?
 
Last edited:
Top