Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
baloo
Hangin' Around



Joined: Sep 10, 2002
Posts: 30

PostPosted: Tue Jun 29, 2004 5:00 pm Reply with quote

I posted this on NukeGalaxy but didn't get an answer yet so I am trying my luck here. Fell free to beat me up if this has been resolved somewhere already.

I have installed:

Module's Name: NSN News Universal
Module's Version: 1.1.0
License: All Modifications - Copyright © 2000-2004 NukeScripts Network
Author's Name: NukeScripts Network

on Nuke 7.0 with NukePatch 2.5 and running Sentinel 1.2

Everything was running fine until NSN NU. It runs fine but my when I try to go to my home page, [ Only registered users can see links on this board! Get registered or login! ] it now gets redirected automagically to [ Only registered users can see links on this board! Get registered or login! ]

This is annoying becuase it cancels out NSN Centre Blockas and stops my site message being displayed.

Does anyone have any ideas ?

TIA Baloo


Last edited by baloo on Tue Jun 29, 2004 6:53 pm; edited 1 time in total 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Tue Jun 29, 2004 6:37 pm Reply with quote

In the /modules/news/index.php
find:
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) { Header("Location: ../../modules.php?name=$module_name"); }
replace it with:
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) { Header("Location: ../../modules.php?name=$module_name"); }

So basically replace
$_SERVER['PHP_SELF']
with
$_SERVER['SCRIPT_NAME']

I'm not sure if thats the only one that will need to be changed but with this change it loads in the home page ok.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
baloo







PostPosted: Tue Jun 29, 2004 6:48 pm Reply with quote

Thanks six. That worked !
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©