Implementing Ads to PhPNuke

Status
Not open for further replies.

Aeon

New Member
Messages
28
Reaction score
0
Points
0
Can someone please explain in detail how to do this, because I do not want to get my account suspended, and i find this hosting very convienient.
 

fergandross

New Member
Messages
120
Reaction score
0
Points
0
i don't know anything about this section...ask audionation he seems to be good at this sort of thing
 

audionation

New Member
Messages
132
Reaction score
0
Points
0
Audio Nation to the rescue, LOL

Put the ads code in Header.php

?>
ads code
<?

Thanks,
Steven Ross
 

fergandross

New Member
Messages
120
Reaction score
0
Points
0
ye told u he's good...well he's not good at everything but he's good at quite a few things
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Using what Audionation provided didn't work for me.

What I found was the solution was to do what says on this website: http://www.karakas-online.de/EN-Book/javascript-php.html. You have to change the javascript, then stick it anywhere you want. I am currently making a program in C/C++ (whenever I find time... it's super easy, but I'm really busy) that will automate this process because doing this on long javascript code can take a while.

Edit: I just made the program. Here are the codes:

BTW, if anyone knows why, please help, because this wasted so much of my time and I could have done this in half the time... Whatever I paste into notepad or wordpad or any type of text program that is multiline becomes single lined when I paste it in. I've tried changing the encodings... Any help would be nice.



Text Link(Static)

PHP:
echo "<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script>\n";
echo "<script language='JavaScript' type='text/javascript'>\n";
echo "<!--\n";
echo "if (!document.phpAds_used) document.phpAds_used = ',';\n";
echo "phpAds_random = new String (Math.random());\n";
echo "phpAds_random = phpAds_random.substring(2,11);\n";
echo "document.write (\"<\" + \"script language='JavaScript' type='text/javascript' src='\");\n";
echo "document.write (\"http://x10hosting.com/advert/adjs.php?n=\" + phpAds_random);\n";
echo "document.write (\"&amp;what=zone:3&amp;target=_blank\");\n";
echo "document.write (\"&amp;exclude=\" + document.phpAds_used);\n";
echo "if (document.referrer)\n";
echo "document.write (\"&amp;referer=\" + escape(document.referrer));\n";
echo "document.write (\"'><\" + \"/script>\");\n";
echo "//-->\n";
echo "</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a915c788' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:3&amp;n=a915c788' border='0' alt=''></a></noscript>\n";


Medium Banner(Advanced)

PHP:
echo "<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script>\n";
echo "<script language='JavaScript' type='text/javascript'>\n";
echo "<!--\n";
echo "if (!document.phpAds_used) document.phpAds_used = ',';\n";
echo "phpAds_random = new String (Math.random());\n";
echo "phpAds_random = phpAds_random.substring(2,11);\n";
echo "document.write (\"<\" + \"script language='JavaScript' type='text/javascript' src='\");\n";
echo "document.write (\"http://x10hosting.com/advert/adjs.php?n=\" + phpAds_random);\n";
echo "document.write (\"&amp;what=zone:2&amp;target=_blank\");\n";
echo "document.write (\"&amp;exclude=\" + document.phpAds_used);\n";
echo "if (document.referrer)\n";
echo "document.write (\"&amp;referer=\" + escape(document.referrer));\n";
echo "document.write (\"'><\" + \"/script>\");\n";
echo "//-->\n";
echo "</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a4f0eec1' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:2&amp;n=a4f0eec1' border='0' alt=''></a></noscript>\n";


Large Banner (Corporate)

PHP:
echo "<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script>\n";
echo "<script language='JavaScript' type='text/javascript'>\n";
echo "<!--\n";
echo "if (!document.phpAds_used) document.phpAds_used = ',';\n";
echo "phpAds_random = new String (Math.random());\n";
echo "phpAds_random = phpAds_random.substring(2,11);\n";
echo "document.write (\"<\" + \"script language='JavaScript' type='text/javascript' src='\");\n";
echo "document.write (\"http://x10hosting.com/advert/adjs.php?n=\" + phpAds_random);\n";
echo "document.write (\"&amp;what=zone:1&amp;target=_blank\");\n";
echo "document.write (\"&amp;exclude=\" + document.phpAds_used);\n";
echo "if (document.referrer)\n";
echo "document.write (\"&amp;referer=\" + escape(document.referrer));\n";
echo "document.write (\"'><\" + \"/script>\");\n";
echo "//-->\n";
echo "</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a7fb3e9d' border='0' alt=''></a></noscript>\n";

Alacritous
 

Aeon

New Member
Messages
28
Reaction score
0
Points
0
fine, but im using PhPNUke. Under what Block do i enter this code in?
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Aeon said:
fine, but im using PhPNUke. Under what Block do i enter this code in?

I already told you... You can't put it in the blocks or it will tell you there the codes you entered were invalid (unless that phpbb), but anyway you have to put it in the .tpl or .php files, which are located either in the skin file or the actual phpnuke header file. I don't know because I havn't really used PHPNuke.

Alacritous
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Well then I can't help you there.

I posted a thread about a phpbb file I couldn't find, but I found it right after. I thought it would be hard to find... But it's not that hard, you just have to try... If you did and you really cannot find it then I'm sorry.

Alacritous
 

trev

Member
Prime Account
Messages
670
Reaction score
0
Points
16
Im looking into it i think iv got it i just wana know how to activate HTML tags because every time it try and add the scrip anywhere i get HTML tag are not allowed!
 

Richard

Active Member
Messages
2,028
Reaction score
0
Points
36
Try adding the code to the header.html file of the theme you use
 

trev

Member
Prime Account
Messages
670
Reaction score
0
Points
16
Here

Ok i think this should solve you're problems!

Thanxs seeker_952 for the header idear same principle only with php!
 
Status
Not open for further replies.
Top