Previous Thread
Next Thread
Print Thread
Rate Thread
#105077 02/05/2000 11:35 PM
Joined: Jan 2000
Posts: 5
Ira
Offline
Junior Member
Junior Member
Offline
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";
};

Sponsored Links
#105078 02/13/2000 7:51 PM
Joined: Feb 2000
Posts: 2
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 2
SSI should work, try it.

#105079 03/13/2000 12:05 PM
Joined: Mar 2000
Posts: 3
cyo Offline
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 3
Quote
quote:
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

#105080 03/13/2000 12:29 PM
Joined: Jan 2000
Posts: 5
Ira
Offline
Junior Member
Junior Member
Offline
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?

------------------

#105081 03/13/2000 3:57 PM
Joined: Jan 2000
Posts: 49
Member
Member
Offline
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:
Quote
quote:
I set it up to display like the following:
Quote
quote:
Then create include.html in your CGI directory, and you're good to go. [Linked Image]

Then just use SSI for the .html pages (use .htaccess to make sure they're parsed)

Just a thought [Linked Image]
------------------
Chris «Stallion» Lambert
clambert@gamespy.com
ModCentral / PlanetUnreal

Sponsored Links
#105082 03/13/2000 6:39 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
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

#105083 03/14/2000 3:06 PM
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Care to explain?

Just a thought [Linked Image]

#105084 03/14/2000 5:12 PM
Joined: Jan 2000
Posts: 49
Member
Member
Offline
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]

No harm intended!

------------------
Chris «Stallion» Lambert
clambert@gamespy.com
ModCentral / PlanetUnreal

#105085 03/15/2000 4:28 AM
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
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]


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)