« Are you OK with spam this year? | Main | RSS Builder »

April 12, 2005

WeBBBs and SSI

Someone I know was having a problem getting a message forum to show random text ads using SSI (Server Side Includes). I thought I would share this response with you. It will work with any CGI script that calls a header.txt file in the script.

The problem is that WeBBBs reads those text files that make up the headers and footers on these pages and displays the output. Unless you write it into the script to execute the randomtext.cgi script, the WeBBBs cgi is not going to parse these files for SSI.

But...

Since these files can display html, you can add an iFrame which pulls in an outside shtml file.

Let's say you create a new webpage called random.shtml and place it in your main directory.

SSI files don't need the same document structure that an html page does. You only need one line of code in this file:

<!--#exec cgi="/cgi-bin/randomtext.cgi" -->

Then upload this file.

Then take the files called header.txt and msgheader.txt and add something like this to them:

<div align="center"><iframe name="1" src="http://friendsinbusiness.com/random.shtml" width="350" height="50" frameborder="0"></iframe></div>

Save header.txt and msgheader.txt and upload them.

If you prefer, you can adjust the width and height of the iFrame.

Since the outside file isn't part of the txt files, the server will parse it for SSI.

Posted by Steve MacLellan at April 12, 2005 08:12 AM

Trackback Pings

TrackBack URL for this entry:
http://www.homebusiness-websites.com/mt/mt-tb.cgi/170

Comments

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?