Ad Code Problems Solution

Status
Not open for further replies.

Richard

Active Member
Messages
2,028
Reaction score
0
Points
36
AD PACKS

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
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
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

Yeah I'll do that when I get time today. No one else do it, lol, I want to do it.

Anyway, your-ressurection, no you cannot do that. You have to use the ad code. The ad code has a rotation system in it, so if we want to change the ads, we can easily do it without you having to modify the code.
 

Jim

New Member
Messages
170
Reaction score
0
Points
0
Your spacing is off inside the javascript.

:homestar: omg homestar emoticon. <3
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Jim said:
Your spacing is off inside the javascript.

:homestar: omg homestar emoticon. <3

Yup...

Instead of it being all on one line like you have:
Code:
<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:2&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>
  <img src="images/your-ressurectionlogo.JPG" width="650" height="75"><img src='http://x10hosting.com/advert/adview.php?what=zone:2&amp;n=a4f0eec1' border='0' alt=''>

It has to be correct formatted:
Code:
<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:2&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><img src="images/your-ressurectionlogo.JPG" width="650" height="75"><img src='http://x10hosting.com/advert/adview.php?what=zone:2&amp;n=a4f0eec1' border='0' alt=''>
 

Leonheart

New Member
Messages
30
Reaction score
0
Points
0
I may sound like a dumb question, but: do you have to put the code in each page of your site?
 

nicholas

New Member
Messages
772
Reaction score
0
Points
0
Leonheart said:
I may sound like a dumb question, but: do you have to put the code in each page of your site?

read this link, it can be helpful to you :ermm:

http://www.x10hosting.com/showthread.php?t=498

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.
 

maddude

overall phsyco
Messages
256
Reaction score
0
Points
0
well can somone answer me is it wasting his bandwidth us including his content on our page?
 

Jxwisniewski

New Member
Messages
56
Reaction score
0
Points
0
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
 

nicholas

New Member
Messages
772
Reaction score
0
Points
0
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

first of all if you want someone or staffs to help you, you need to provide information :eek:riginal: information like.......your url, your plan etc
 

nicholas

New Member
Messages
772
Reaction score
0
Points
0
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 :)

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:
 

Jxwisniewski

New Member
Messages
56
Reaction score
0
Points
0
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:

k how do i do that ? tell me and ill do it :)
 

Conquester777

New Member
Messages
180
Reaction score
0
Points
0
hey Jim... it's bad to turn the prase engine on and off like that.

put a <? and ?> at the top and bottom of your page, use echo or ~something~ and get rid of the rest you don't need eh.

You don't need to use the get statement either, the variable is automatically created as id=...
just as an example, i would have made the code like this:

Code:
<?

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 (\"&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=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;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 (\"&amp;what=zone:2&amp;target=_blank\"); document.write (\"&amp;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 (\"&amp;what=zone:3&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=a915c788' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:3&amp;n=a915c788' border='0' alt=''></a></noscript>";

?>
 

fonofun

New Member
Messages
68
Reaction score
0
Points
0
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:
Code:
<?php include("http://www.r0fl.info/adcode.php?id=static"); ?>
For the advanced package, use this code:
Code:
<?php include("http://www.r0fl.info/adcode.php?id=advanced"); ?>
And for Corporate:
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 ("&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=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;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 ("&amp;what=zone:2&amp;target=_blank"); document.write ("&amp;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 ("&amp;what=zone:3&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=a915c788' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:3&amp;n=a915c788' border='0' alt=''></a></noscript>

<?php
break;
}
?>


hi,
i am using php nuke type ........portal system..
plz help me how i get it done......
As i dont know any programming.....
chk www.fonofunweb.tk
& tell me a way to put X10 ad on it.......plz
not getting where to put the codes & all
fonofun
fonofun@gmail.com
emnail me plz.
 

funkenstein

New Member
Messages
44
Reaction score
0
Points
0
i need help please, where i put this codes on my php page. My knowlege of php is small please if sombody make a tutorial step by step i would be pleased.
Sorry for my bad english.
 
Status
Not open for further replies.
Top