php forum
php mysql forum
php mysql smarty
 
Topic Options
#105077 - 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
#105078 - 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
#105079 - 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
#105080 - 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
#105081 - 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
#105082 - 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
#105083 - 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
#105084 - 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
#105085 - 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 
Who's Online
0 registered (), 20 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks