TinyPortal

General => Chit chat => Topic started by: WSA on October 11, 2006, 11:29:16 PM

Title: phpAdsNew
Post by: WSA on October 11, 2006, 11:29:16 PM
Does anybody use this on their sites?  I just installed it onto my server but am not quite sure how to use it or how to actually put banner ads on my site.

Any ideas?
Title: Re: phpAdsNew
Post by: IchBin on October 11, 2006, 11:55:08 PM
You could just place any banner add you want into a block or something. Anything specifically you're trying to do?
Title: Re: phpAdsNew
Post by: WSA on October 11, 2006, 11:57:51 PM
I am trying to get a rotating banner.  with that application, you can specify time frames that a banner ad will get, such as expiration dates and stuff like that.  if i put it into a block, it will just be static and wont rotate.
Title: Re: phpAdsNew
Post by: gerrymo on October 12, 2006, 01:07:07 PM
If it works stand alone, iFrame it into a block.
Title: Re: phpAdsNew
Post by: WSA on October 12, 2006, 05:20:46 PM
Quote from: gerrymo on October 12, 2006, 01:07:07 PM
If it works stand alone, iFrame it into a block.
Ok, I tried it and all that is shown in the block is the code used.

I put it into an HTML box and then a Javascript box and the below code is all it shows.

<script language='JavaScript' type='text/javascript' src='http://westernslopeanglers.com/banners/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://westernslopeanglers.com/banners/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://westernslopeanglers.com/banners/adclick.php?n=aef13b15' target='_blank'><img src='http://westernslopeanglers.com/banners/adview.php?what=zone:1&amp;n=aef13b15' border='0' alt=''></a></noscript>
Title: Re: phpAdsNew
Post by: gerrymo on October 12, 2006, 06:10:21 PM
This should work if put in a scriptbox block. All you'll need to do is fix the alignment to suit.


<html>
<head>
<script language='JavaScript' type='text/javascript' src='http://westernslopeanglers.com/banners/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://westernslopeanglers.com/banners/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>
</head>
<body>
<noscript><a href='http://westernslopeanglers.com/banners/adclick.php?n=aef13b15' target='_blank'><img src='http://westernslopeanglers.com/banners/adview.php?what=zone:1&n=aef13b15' border='0' alt=''></a></noscript>
</body>
</html>


If it doesnt work, you could try saving it as a web page, and use an iFrame.
Title: Re: phpAdsNew
Post by: WSA on October 12, 2006, 06:39:55 PM
Too cool.  That worked.  Thanks Gerrymo.  How do I center it?
Title: Re: phpAdsNew
Post by: gerrymo on October 12, 2006, 06:45:38 PM
Try


<noscript><center><a href='http://westernslopeanglers.com/banners/adclick.php?n=aef13b15' target='_blank'><img src='http://westernslopeanglers.com/banners/adview.php?what=zone:1&n=aef13b15' border='0' alt=''></a></center></noscript>
Title: Re: phpAdsNew
Post by: WSA on October 12, 2006, 06:50:36 PM
Nope, that didn't work.
Title: Re: phpAdsNew
Post by: WSA on October 12, 2006, 06:52:36 PM
It's wierd too.  When I click the banner, it takes me back to WSA instead of to the listed target.
Title: Re: phpAdsNew
Post by: WSA on October 12, 2006, 11:49:10 PM
Man, I keep on messing with it but I still can't figure out how to get the link done correctly.
Title: Re: phpAdsNew
Post by: gerrymo on October 13, 2006, 09:56:51 AM
I dont use it for banners. I use a simple randon banner system. I got it from http://www.flash-here.com/downloads/randomad.html
Title: Re: phpAdsNew
Post by: gerrymo on October 13, 2006, 01:31:16 PM
Checked the license, and I can add it here.
Title: Re: phpAdsNew
Post by: marinelife on October 13, 2006, 05:53:52 PM
I use it, there is also a mod for SMF for ads. I never have tried it in a block
http://mods.simplemachines.org/index.php?mod=255

There is a code you output from phpadsnew to run your banners, you just add that to the mod and it works great.
Title: Re: phpAdsNew
Post by: akulion on October 13, 2006, 06:31:18 PM
Quote from: gerrymo on October 13, 2006, 01:31:16 PM
Checked the license, and I can add it here.

thanks for that one :up: really cool - u should put it up as a seperate topic in snippets - will come in very handy :D
Title: Re: phpAdsNew
Post by: WSA on October 13, 2006, 08:05:46 PM
I took a look at it but I don't know if it will work correctly on my theme, RC2 and .095

It mentioned in there that it works only on default theme.
Title: Re: phpAdsNew
Post by: akulion on October 13, 2006, 08:54:31 PM
yea for that ads management mod ull have to modify the custom theme files manually
Title: Re: phpAdsNew
Post by: WSA on November 02, 2006, 09:54:55 PM
Quote from: gerrymo on October 13, 2006, 09:56:51 AM
I dont use it for banners. I use a simple randon banner system. I got it from http://www.flash-here.com/downloads/randomad.html
I am trying this one out but the it says to adjust this code.
<iframe width=468 height=60 scrolling="no" frameborder=0 src="http://rcm.amazon.com/e/cm?t=flashherecom-20&p=26&o=1&l=dl1&f=ifr"><map name="boxmap-b1"><area shape="rect" coords="350, 45, 468, 60" href="http://rcm.amazon.com/e/cm/privacy-policy.html?o=1" ><area coords="0,0,10000,10000" href="http://www.amazon.com/exec/obidos/redirect?tag=flashherecom-20&creative=92489&camp=8117&link_code=dl1&path=subst/misc/amazon-cobrand-cc/v3/marketing-from-associates-step1.html/ref%3Db1_assoc_26" ></map><img src="http://rcm-images.amazon.com/images/G/01/associates/promotions/b1c-468x60.gif" width="468" height="60" border="0" usemap="#boxmap-b1" alt="Amazon.com Platinum Visa Card"></iframe>
<a href="http://www.payloadz.com/affiliates/go.asp?a=pay@flash-here.com" target="_blank"><img src="http://www.payloadz.com/affiliates/images/a_banner.gif" width="468" height="60" border="0"></a>
<a href="http://www.flash-here.com">some ad</a>
<a href="http://www.flash-here.com">some more ad</a>


I'm confused