php forum
php mysql forum
php mysql smarty
 
Topic Options
#112483 - 02/05/00 10:35 PM CGI Pulls
Ira Offline
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
#112484 - 02/13/00 06:51 PM Re: CGI Pulls
Viceroy Offline
Junior Member

Registered: 02/03/00
Posts: 20
Loc: WI
SSI should work, try it.

Top
#112485 - 03/13/00 11:05 AM Re: CGI Pulls
cyo Offline
Junior Member

Registered: 03/13/00
Posts: 1
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

Top
#112486 - 03/13/00 11:29 AM Re: CGI Pulls
Ira Offline
Junior Member

Registered: 01/22/00
Posts: 7
Loc: Winchester, VA
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?

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

Top
#112487 - 03/13/00 02:57 PM Re: CGI Pulls
Stallion Offline
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:
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.

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
_________________________
Chris «Stallion» Lambert
clambert@gamespy.com
ModCentral / PlanetUnreal

Top
#112488 - 03/13/00 05:39 PM Re: CGI Pulls
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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

Top
#112489 - 03/14/00 02:06 PM Re: CGI Pulls
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
Care to explain?

Just a thought
_________________________
http://www.iamcal.com

Top
#112490 - 03/14/00 04:12 PM Re: CGI Pulls
Stallion Offline
Member

Registered: 01/09/00
Posts: 666
Loc: Cumberland, RI, USA
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
_________________________
Chris «Stallion» Lambert
clambert@gamespy.com
ModCentral / PlanetUnreal

Top
#112491 - 03/15/00 03:28 AM Re: CGI Pulls
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
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
_________________________
http://www.iamcal.com

Top



Moderator:  Gizmo, tackaberry 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks