 |
 |
 |
 |
#105077 - 02/05/00 10:35 PM
CGI Pulls
|
Junior Member
Registered: 01/22/00
Posts: 7
Loc: Winchester, VA
|
I'm trying to get my UBB navigation set up to where I don't need to change it every time I change my navbar. So is there any possible way to get SSI to work across the entire UBB? I doubt it, being that cgi files don't get parsed, so on to my next question... Can it work to do a cgi pull into all the UBB pages, ending up with code similar to the below, then using $ variables to put the navigation where I want it? If this works I know I'd have to update threads every time I change the navbar, but that'd be easier than copying everything over like that. Any thoughts, or am I making any sense here?
And here would be the code I would want to be using:
eval { ($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1");
require "/home/ira/www/templates/cgitop.txt"; };
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#105078 - 02/13/00 06:51 PM
Re: CGI Pulls
|
Junior Member
Registered: 02/03/00
Posts: 20
Loc: WI
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#105081 - 03/13/00 02:57 PM
Re: CGI Pulls
|
Member
Registered: 01/09/00
Posts: 666
Loc: Cumberland, RI, USA
|
On my board, this is what I did: First, look for the spot where you want the file to be pulled. Most likely this will be in the middle of a: I set it up to display like the following: Then create include.html in your CGI directory, and you're good to go.  Then just use SSI for the .html pages (use .htaccess to make sure they're parsed) <s>Just a thought</s>  ------------------ Chris «Stallion » Lambert clambert@gamespy.com ModCentral / PlanetUnreal
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|