Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Signature-free discourse for serious web publishers > YOUR REVENUE: Making Money On The Internet > Making Money with CPC and/or CPM Programs
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 04-30-2001, 08:35 PM   #1
Toefur
Registered User
 
Toefur's Avatar
 
Join Date: Jul 2000
Location: Melbourne - Australia
Posts: 128
Unhappy Banner Rotation Script

Does anyone know of a good (free) CGI banner rotation script?

I've just tried a few, and none of them seem to be doing what I want.

That is, they work fine if I just put in the line to call the script, ie: <!--#exec cgi="/cgi-bin/banners/banner.cgi" -->

But, if I put that line within a .txt file, to be called from a SSI, then it doesn't work at all.

So I want one that will let me do this. I've just tried about 5 different ones, and none of them seemed to let me. I was convinced I was doing something wrong, but I can't see what.

------------------
toefur.com - internet for the boggled
Toefur is offline   Reply With Quote
Old 04-30-2001, 08:40 PM   #2
wsz
Registered User
 
Join Date: Sep 2000
Posts: 614
Unhappy

Feel free to correct me if I'm wrong, but my understanding is that SSI requires the main document (the one that is calling the other documents to be inserted into it), to have an ".shtml" extension.


------------------
Web Sponsor Zone - Internet Advertising Directory
http://www.websponsorzone.com
Earn Money With Your Site
wsz is offline   Reply With Quote
Old 04-30-2001, 08:51 PM   #3
Toefur
Registered User
 
Toefur's Avatar
 
Join Date: Jul 2000
Location: Melbourne - Australia
Posts: 128
Unhappy

It does, yes. But you can add a line to your .htaccess file so that SSI works with normal .html pages.

The file you include from the .html/.shtml page can be anything s/html/php/txt.

------------------
toefur.com - internet for the boggled
Toefur is offline   Reply With Quote
Old 04-30-2001, 09:15 PM   #4
Chazhound

 
Join Date: May 2000
Location: Florida
Posts: 440
Cool

Try changing your .txt file to an .html file and see if it works.

Change the path in your call....

Chazhound
Chazhound is offline   Reply With Quote
Old 05-01-2001, 01:46 AM   #5
robwod
Registered User
 
Join Date: Feb 2001
Posts: 36
Thumbs up

If you are asking about adding your include statement to a text file and then trying to include the text file in the document...no mater what script you use, it is not going to work.

You can only parse once... that is, if you want to include a text file containing the banner code, you must use the normal href and img src inside the text file.

The only alternative would be to use javascript to include the exec command. At least that's my understanding of how SSI works... that is, you cannot parse something twice. I could be wrong though.
robwod is offline   Reply With Quote
Old 05-01-2001, 05:44 AM   #6
torifan
Registered User
 
Join Date: Dec 1999
Location: Orlando, FL
Posts: 324
Unhappy

I'm no expert, but I do remember reading that the Apache web server does not allow CGI's to be called from SSI-included files for security reasons. I ran into that problem too - there's no error messages or anything, but the <!--#exec> tag just gets ignored if it's in an included file. What you can maybe do is move the html that was in the included file directly into the cgi file.

------------------
Dave
Searchprograms.com - 30+ searchbox programs rated and reviewed
SportsGirls.net
torifan is offline   Reply With Quote
Old 05-01-2001, 06:22 AM   #7
demae
Registered User
 
Join Date: Nov 2000
Posts: 1,291
Unhappy

Torifan: CGI can be called from SSI in Apache if you insert the following configuration directive in httpd.conf or .htaccess:

Options Includes

There's a bunch of CGI/SSI functionality that's disabled by default. If you don't want the security stuff getting in your way, put this (better make sure your CGIs are secured...):

Options All
demae is offline   Reply With Quote
Old 05-01-2001, 06:48 AM   #8
Musiclover
Registered User
 
Join Date: Feb 2001
Posts: 57
Unhappy

Quote:
Originally posted by torifan:
I'm no expert, but I do remember reading that the Apache web server does not allow CGI's to be called from SSI-included files for security reasons.
I think this is allowed (on most servers); Toefur also mentions in his first post that calling from the .cgi in the (s)html file worked.

Quote:
Originally posted by torifan:
What you can maybe do is move the html that was in the included file directly into the cgi file.
Should be possible, but it's quite a roundabout way, because then he will always be stuck editting a cgi file when altering something on his site.

Quote:
Originally posted by robwod:
You can only parse once...
Exactly.


------------------
News Board : The latest news, and how you think about it.
Musiclover is offline   Reply With Quote
Old 05-01-2001, 07:45 AM   #9
Toefur
Registered User
 
Toefur's Avatar
 
Join Date: Jul 2000
Location: Melbourne - Australia
Posts: 128
Unhappy

Many thanks all!

Well, chazhound had the answer... I just changed the .txt to .html

I don't see how that made a difference though, but it does!

Wish I had the money for a really good script tho.
Toefur is offline   Reply With Quote
Old 05-01-2001, 08:37 AM   #10
ezclan
Registered User
 
Join Date: Apr 2001
Location: Palm Bay, FL, USA
Posts: 221
Unhappy

try this..
http://awsd.com/scripts/webadverts/


I used it for a while. its shareware and quite powerful.

------------------
Ezclan: Online Game Sites

http://www.ezclan.com
ezclan is offline   Reply With Quote
Old 05-01-2001, 12:02 PM   #11
Clootalog
Registered User
 
Join Date: Apr 2001
Location: Russia
Posts: 47
Unhappy

Quote:
Originally posted by Toefur:
Does anyone know of a good (free) CGI banner rotation script?
I was writing alike script 2 days ago for my site (http://clootalog.com). Site is under constriction yet, but this script is already working there. If you wish - write me and I'll send you it.
All banner links are currently in the script. May be later I'll put them to a separate txt fife, but now it's in it.
Clootalog is offline   Reply With Quote
Old 05-01-2001, 12:06 PM   #12
Clootalog
Registered User
 
Join Date: Apr 2001
Location: Russia
Posts: 47
Unhappy

Quote:
Originally posted by Toefur:
Many thanks all!

Well, chazhound had the answer... I just changed the .txt to .html

I don't see how that made a difference though, but it does!
Add AddType text/x-server-parsed-html .txt to your .htaccess and it should work in txt too.
Clootalog is offline   Reply With Quote
Old 05-01-2001, 11:49 PM   #13
Kaiosama
Registered User
 
Kaiosama's Avatar
 
Join Date: Jan 2001
Posts: 584
Unhappy

I believe the reason it made a difference is because the line you added to the .htaccess file included .html and .shtml. It didn't have .txt within it.
Kaiosama is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Good banner rotation script? infinite2001 Web Design and Webmaster Issues 7 04-17-2001 11:23 PM
webadverts - GOOD/BAD or other banner rotation script? notibrian Making Money with CPC and/or CPM Programs 12 07-30-2000 11:52 PM
GOOD ad banner rotation script suggestion notibrian Making Money with CPC and/or CPM Programs 12 06-13-2000 06:04 AM
Banner rotation script CYBERWORLD Web Design and Webmaster Issues 5 06-10-2000 09:03 PM
Banner Rotation Script?? WebFan Web Design and Webmaster Issues 1 04-12-2000 11:01 PM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 01:27 PM.


GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.