Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Include Command

Quote Reply
Include Command
Hi

I'am using a PHPNuke with Gforum 1.1.8

For Nuke I used the Include Command to Include the Forum in the Site structure, but any Button now links to the php nuke folder e.g. www.fff.com/nuke/gforum.cgi instead of www.fff.com/cgi-bin/forum/gforum.cgi Its clear, that there isn't any gforum.cgi.

So my Question is, why does he Bend the Linky like that and how do I fix this issue?

Cu

VITAS
Quote Reply
Re: [VITAS] Include Command In reply to
The reason is that Gossamer Forum uses just "gforum.cgi" instead of "/path/to/gforum.cgi" in its links, thus the browser looks in the current directory for gforum.cgi instead of the proper location.

By far the easiest way to fix this is to add a redirect so that accessing /nuke/gforum.cgi is redirected to the proper /cgi-bin/forum/gforum.cgi. Adding these two lines to /nuke/.htaccess ought to do that (assuming you are using Apache as your web server):

Code:
RewriteEngine On
RewriteRule ^gforum.cgi /perl/gforum/gforum.cgi?%{QUERY_STRING} [R,NE,L]

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Include Command In reply to
I tried your suggestion but now nothin works :-/
the server replyed following:
Warning: Failed opening 'http://www.vr-city.de/cgi-bin/dom/vr-city.de/forum/gforum.cgi' for inclusion (include_path='.:..') in /www/htdocs/v026773/modules/Forum/index.php on line 30

but the path is correct %-|
Quote Reply
Re: [VITAS] Include Command In reply to
http://www.vr-city.de/cgi-bin/dom/vr-city.de/forum/gforum.cgi

Shouldn't that be more like:

http://www.vr-city.de/forum/gforum.cgi

?

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Include Command In reply to
no that's right :)
Quote Reply
Re: [VITAS] Include Command In reply to
If you take out the .htaccess file it works?

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Include Command In reply to
I pasted the code you wrote into it and it does'nt work beside the .htacess file disapeared in my ftp prog's file list after i've uploaded it. Thats all very confusing :-/
Quote Reply
Re: [VITAS] Include Command In reply to
You'll need to change it a little:

/perl/gforum/gforum.cgi

That part should be changed to the proper relative GForum URL.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com