News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Adding ad code to RC2

Started by Bigguy, January 05, 2006, 12:22:07 PM

Previous topic - Next topic

jerm

oh, so your just asking if the script will pick up the fact you have their ads on your page
and in which case it will

Bigguy

ok, I will also get this tested at our site to make sure this script of ours can pick up on it, Thank you sir for all your help. it has been most enlightening. Glad I could help test it for you.

Bigguy

Would this code work the same way as the other ???

Quote<?php include('http://staff.x10hosting.com/adCode.php?ad=corporate'); ?>

jerm

ya, you should be able to grab the source code of that file,
and just stick it under or on top of the ads that are already there. or work with some html codes and make it beside.. however you want

Bigguy

If I took the bit of script you wrote for the other ad and changed the line in it to reflect this line it should work in your mod right. (Hope that was clear,lol)

jerm

ya, not really sure what your asking

you can just play around with the code and see what you get. wont cause harm towards you. you can always hit the back button if it screws up the webpage

Bigguy

You posted this script for the first line of code O presented:

Quote<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>

How would I put this in it:

Quote<?php include('http://staff.x10hosting.com/adCode.php?ad=corporate'); ?>

I guess its not to hard to figure once I look at it. (Yes, I`m still learning)  Thanks for all your help.


jerm

#27
ah okay, sorry. thought you knew a bit of html. its okay

try this out:

<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>
<br />
<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>

<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&amp;n=a7fb3e9d' border='0' alt=''></a></noscript>


that will put your ads one on top of each other
ops, i mean side by side
i updated it for you.. now its one on top of each other

Bigguy

Well I know a bit of html, thanks to all the websites and that I screw with. The 2 codes I posted are for seperate "Plans" on x10. the first goes to one ad and the second goes to another so in both instances each code should show up by itself, not together. But that code will work to for ppl who want both to show I guess.

EDIT: have to run out for a quick sec, brb.

Bigguy

Thank you very much for this, its great. If I have any problems I will post back here. Your mod is just what I needed.

Bigguy

This code breaks the forum. The ad shows up and the top half of the forum but thats it.

Quote from: electrohome88 on January 05, 2006, 02:35:49 PM
ah okay, sorry. thought you knew a bit of html. its okay

try this out:

<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>
<br />
<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>

<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&amp;n=a7fb3e9d' border='0' alt=''></a></noscript>


that will put your ads one on top of each other
ops, i mean side by side
i updated it for you.. now its one on top of each other

Advertisement: