|
Joined: Jan 2000
Posts: 5
Junior Member
|
Junior Member
Joined: Jan 2000
Posts: 5 |
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"; };
|
|
|
|
Joined: Feb 2000
Posts: 2
Junior Member
|
Junior Member
Joined: Feb 2000
Posts: 2 |
|
|
|
|
Joined: Mar 2000
Posts: 3
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 3 |
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
|
|
|
|
Joined: Jan 2000
Posts: 5
Junior Member
|
Junior Member
Joined: Jan 2000
Posts: 5 |
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?
------------------
|
|
|
|
Joined: Jan 2000
Posts: 49
Member
|
Member
Joined: Jan 2000
Posts: 49 |
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. ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif) Then just use SSI for the .html pages (use .htaccess to make sure they're parsed) Just a thought ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif) ------------------ Chris «Stallion » Lambert clambert@gamespy.com ModCentral / PlanetUnreal
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
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
|
|
|
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
Joined: Feb 1999
Posts: 1,379 |
Care to explain? Just a thought ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif)
|
|
|
|
Joined: Jan 2000
Posts: 49
Member
|
Member
Joined: Jan 2000
Posts: 49 |
Just a joke. Cal types "Just a thought" at the end of every message, not using the signature feature ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif) No harm intended! ------------------ Chris «Stallion » Lambert clambert@gamespy.com ModCentral / PlanetUnreal
|
|
|
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
Joined: Feb 1999
Posts: 1,379 |
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 ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif)
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|