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";
};
no it doesn't work like that. It will work on the .html pages if the sever is set up like that but not .cgi files
Ok, thanks, that's what I thought. In that case do you know if CGI pulls are the only way to go, or are there other better methods of getting a navbar inserted from another file?
------------------
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)
Just a thought ------------------
Chris
«Stallion
» Lambert
clambert@gamespy.com ModCentral / PlanetUnreal
Stallion -- what is the crossed off "Just a Thought" thing for? You against cal or something?
------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"
* No offense meant to any Canadians
Just a joke. Cal types "Just a thought" at the end of every message, not using the signature feature
No harm intended!
------------------
Chris
«Stallion
» Lambert
clambert@gamespy.com ModCentral / PlanetUnreal
I have it assigned to a HotKey most of the time. I would put it as a signature, but then you get the nasty ------------ thing going on.
Just a thought