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

   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
#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 
Top Posters Last 30 Days
AllenAyres 13
Gizmo 10
willing 2
S7ARBVCK 2
MattUK 1
Kevin H 1
tackaberry 1
Who's Online
1 Registered (Gizmo), 31 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Noob - need help, or a reality check!
by Gizmo
Yesterday at 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks