View Full Version : Banner Rotation
02-03-2002, 11:24 PM
Does anyone have or know where I might obtain a simple banner rotation script? I currently have about 5 or 6 standard (468x60) banners that I want to put into a rotating cycle on my site. I don't need anything fancy with stats. click-thrus ratios, etc. Just need the banners to rotate so visitors don't see the same banner each time they visit the site.....it makes them%)
Thanks in advance for any suggestions and/or recommendations.
Best to all,
A free banner rotation script written by Justin can be found here http://www.jm4n.com/banner.zip
For running banners on your site that you do want to keep stats for I would also recommend http://awsd.com/scripts/webadverts/index.shtml
I use Justin's banner rotation script and it works really well. It also has a stats feature (impressions and click-throughs) that may not be heavy duty but it is sufficient if that is all you need to know.
02-04-2002, 01:17 PM
Thanks Jeff and Joe!
Think I'll give Justin's script a try. Looks like it's just what I need.
02-05-2002, 01:16 PM
Another thumbs up for Justin's script . . . I just installed it for a client, and she's very happy with it. The interface is simple enough for a non-technically-proficient website owner to administer herself, without having to contact me everytime she wants to add a new advertiser. Runs sharp too :)!
06-14-2002, 10:54 AM
I tried to follow the link to get Justin's script, but the page (and domain) come up as not found. Does anyone know where to find this script?
Monty had posted this a while ago and the link appears to still be valid. In addition there is some additional information regarding the script in that post.
Hope this helps :)
- Hopes Monty don't mind :ididthat: -
I'm probably missing something obvious. Justin's script works perfectly as long as I don't want to use different size banners. A button on one page, a 468x60 banner on another one, for example. I have uploaded the banners, and the "standard" SSI call <!--#exec cgi="/cgi-bin/showbanner.pl" --> works OK. But, of course, it displays both types. When I add ?W=468&H=60 just to display 468x60 banners, it doesn't work - it returns the error message [an error occurred while processing this directive]. What am I missing?
Thanks a lot,
06-15-2002, 03:40 PM
Excuse me, but may I barge in ? : )
Ok, I happen to be looking for a banner rotater when I came across this discussion.
And have tested Justin's scripts since then.
Ok, in spite of the fact that all I did was to follow instructions and only edited the path line in all 3 files, admin.pl, showbanner.pl and click.pl, I'm currently having Internal 500 errors with showbanner.pl and click.pl
And that I've used the same path for all 3 .pl files, is that the way it's supposed to be ?
And when I checked the script errors files, it only stated that the error was in "line 11". Which I believe is the line number where the codes starts (ie. the part that's not to be edited), etc.
Am I missing something here ? Please advise. I'd appreciate it. Thanks in advance !
Well, I must admit that I'm somewhat disappointed that noone has offered any help so far... :(
I've been investigating the issue a bit more and here's what I came up with:
The php output works OK - but I'd hardly want to change all my files to .php in order to make the banner ad rotation to work (people have bookmarked pages, etc.).
While the SSI call <!--#exec cgi="/cgi-bin/showbanner.pl" --> works (but not with different sized banners, as I said before - this is the problem), <!--#include "/cgi-bin/showbanner.pl" --> doesn't seem to work with any banner - is this any hint toward an answer?
I'd really badly need some help...
Thanks a lot,
06-17-2002, 01:31 PM
It would be great if htm files could be treated as php files. I have the same concerns as you when I convert a site from ".htm" to ".php": that I'm creating a bunch of dead links from search engines or bookmarks. So I go through sometimes elaborate redirection schemes to offer links from the old pages to the new pages.
Can it be done? Php-process ".htm" files via some server directive?
As for your Justin script, I've never used it. What does it have to do with php?
Unless I'm completely misguided, I think it would be a bad idea to use .htaccess to serve php pages through .htm because of server concerns. It might be something similar to using SSI calls through .htm, which is forbidden now.
06-17-2002, 03:25 PM
I have been doing some testing
Here is the code I used to support my testing:
<!--#echo var="HTTP_USER_AGENT" --><br>
<!--#include cgi="http://2coolfishing.com/cgi-bin/2coolbanners/showbanner.pl" --><br>
<!--#exec cgi="http://2coolfishing.com/cgi-bin/2coolbanners/showbanner.pl" --><br>
Sorry I couldn't help more,
Thanks a lot for your support! I'm glad that at least I know it's not my fault that I can't get this script to work.
Is WebAdvert the same as WWWAdverts? This is an alternative I'm looking at right now.
06-17-2002, 03:57 PM
If you look in your directory /big/dom/x[your acct goes here]/logs_cgi and look for "error" you will get a description of the perl error that is causing the 500, I think.
I have found the error in the logs, but I'm still not closer to a solution... (an error is an error is an error). I tend to think the script should be modified to work properly - but I can't do that.
06-17-2002, 04:35 PM
http://awsd.com/scripts/webadverts/index.shtml is the one that causes problems on the servers. I work with that author on development of his forum script, so it's not a case of bad apples or anything like that. Terra said it spawns forks/processes that load up the server and that's not a good thing for community servers.
06-17-2002, 09:32 PM
I'll just chime in briefly to mention that if you have the time to spend configuring a robust (yet also free) banner rotation solution, you should really consider PHPAdsNew (available from SourceForge). It's way more configurable than a "little" banner rotation program, if you're willing to read up on configuration.
Also, as you may have already learned, the "simpler" CGIs aren't necessarily "smaller," at least where server overhead is concerned.
06-17-2002, 10:09 PM
By the way, my own idea for a very simple php banner rotation is here:
(the last post in the thread).
06-20-2002, 03:39 PM
<!--#include "/cgi-bin/showbanner.pl" -->
<!--#include virtual="/cgi-bin/showbanner.pl" -->
Thanks. I copied the code from the manual without much thinking. But the problem is the same: "an error occurred while processing this directive", even with the "standard" version, where no banner sizes are specified.
06-21-2002, 08:27 AM
Originally posted by Elek:
I have found the error in the logs, but I'm still not closer to a solution... (an error is an error is an error).
When I look in my error logs, I see very specific things like:
syntax error at example.pl line 377, near "$mailto)"
Execution of example.pl aborted due to compilation errors.
example.pl is not your script, by the way.
vBulletin® v3.6.8, Copyright ©2000-2013, Jelsoft Enterprises Ltd.