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

   CGI Pulls to Del.icio.us Add to del.icio.us
  Digg CGI Pulls Digg it
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 (), 41 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
Today at 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 18
blaaskaak 12
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
tackaberry 4

 

 

 
fusionbb message board php hacks