Seeker_952 said:What about little creating "AD PACKS"
They would include...
A text file with the add code
A php file with formated php ad code
An README file with some basic instructions
... all in a nicely packaged zip file
Jim said:Your spacing is off inside the javascript.
:homestar: omg homestar emoticon. <3
<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 ("&what=zone:2&target=_blank"); document.write ("&exclude=" + document.phpAds_used); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); document.write ("'><" + "/script>"); //--> </script><noscript>
<img src="images/your-ressurectionlogo.JPG" width="650" height="75"><img src='http://x10hosting.com/advert/adview.php?what=zone:2&n=a4f0eec1' border='0' alt=''>
<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 ("&what=zone:2&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><img src="images/your-ressurectionlogo.JPG" width="650" height="75"><img src='http://x10hosting.com/advert/adview.php?what=zone:2&n=a4f0eec1' border='0' alt=''>
Leonheart said:I may sound like a dumb question, but: do you have to put the code in each page of your site?
Do the advertisements have to go on every page?
Yes, you are required to place the advertisements on every single page of your page. This includes forums, CMSs, etc. If you need assistance placing the advertisements on your site, please post in the support forum. An administrator or support moderator can place the advertisements for you.
Jxwisniewski said:Ok i love this hosting company is great, nice people and everything works. one question i have is i see the code what do i do with it lol. Where do i put it? I am trying to put banners on the site but im having trouble plz dont suspend me here. If someone helps me i will put it up pronto. Plz help thanks
Np at all my url is http://usr.x10hosting.com/index/ my plan i the corporate plan i cant give any more info out here at leastnicholas said:first of all if you want someone or staffs to help you, you need to provide information riginal: information like.......your url, your plan etc
Jxwisniewski said:Np at all my url is http://usr.x10hosting.com/index/ my plan i the corporate plan i cant give any more info out here at least
nicholas said:lol...i can see that you already placed your ads :shaun: but it must be somewhere where we dont need to scroll down to see it. so if you want you can place the ads on top coz your x10corporate ads is quite long :grin:
<?
if ($id='corporate') echo "<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 (\"&what=zone:1&target=_blank\");
document.write (\"&exclude=\" + document.phpAds_used);
if (document.referrer)
document.write (\"&referer=\" + escape(document.referrer));
document.write (\"'><\" + \"/script>\");
//-->
</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&n=a7fb3e9d' border='0' alt=''></a></noscript>";
else if ($id='advanced') echo "<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 (\"&what=zone:2&target=_blank\"); document.write (\"&exclude=\" + document.phpAds_used);
if (document.referrer)
document.write (\"&referer=\" + escape(document.referrer));
document.write (\"'><\" + \"/script>\");
</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&n=a4f0eec1' border='0' alt=''></a></noscript>";
else if ($id='static') echo "<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 (\"&what=zone:3&target=_blank\");
document.write (\"&exclude=\" + document.phpAds_used);
if (document.referrer)
document.write (\"&referer=\" + escape(document.referrer));
document.write (\"'><\" + \"/script>\");
//-->
</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&n=a915c788' border='0' alt=''></a></noscript>";
?>
Jim said:I came up with an easy solution for all the problems with the adcodes. An easier way to set it up. And if any changes are made to the code, they can be done to one file and change it for everyone.
For the static package, use this code:
For the advanced package, use this code:Code:<?php include("http://www.r0fl.info/adcode.php?id=static"); ?>
And for Corporate:Code:<?php include("http://www.r0fl.info/adcode.php?id=advanced"); ?>
Code:<?php include("http://www.r0fl.info/adcode.php?id=corporate"); ?>
Heres the source for adcode.php
Code:<?php switch($_GET['id']) { case "corporate": ?> <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 ("&what=zone:1&target=_blank"); document.write ("&exclude=" + document.phpAds_used); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); document.write ("'><" + "/script>"); //--> </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&n=a7fb3e9d' border='0' alt=''></a></noscript> <?php break; case "advanced": ?> <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 ("&what=zone:2&target=_blank"); document.write ("&exclude=" + document.phpAds_used); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); document.write ("'><" + "/script>"); </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&n=a4f0eec1' border='0' alt=''></a></noscript> <?php break; case "static": ?> <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 ("&what=zone:3&target=_blank"); document.write ("&exclude=" + document.phpAds_used); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); document.write ("'><" + "/script>"); //--> </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&n=a915c788' border='0' alt=''></a></noscript> <?php break; } ?>