PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Jeruvy
New Member
New Member


Joined: Jul 29, 2003
Posts: 9

PostPosted: Tue Jun 22, 2004 3:53 pm Reply with quote Back to top

No, but I'll PM the link to you.
View user's profile Send private message
Jeruvy
New Member
New Member


Joined: Jul 29, 2003
Posts: 9

PostPosted: Thu Jun 24, 2004 9:00 am Reply with quote Back to top

chatserv wrote:
Zip your main index.php file and the index of the module you have as homepage module and post a download url.


Did you find anything? I think I may have an idea....

I have reverted to the older index.php for the main and the index.php for the News section.

If I use the patched versions then I get the following errors:

Index.php in Main: There is a problem with your Homepage!!

If I use the patched version of modules/news/index.php:

Sorry, you cannot acces this file directly....

I tested if mainfile was causing any grief but that looks ok, and the patched version is up.

Now one of the things I added to my news section as PAGES, so at the bottom of each NEWS PAGE is a series of links to select which PAGE you want to go to. I'm thinking this may be interfering but I'm not sure.

Anyone got any thoughts, even crazy ones I'm all ears =)
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Thu Jun 24, 2004 9:42 am Reply with quote Back to top

I'm still waiting for the files.
View user's profile Send private message Visit poster's website
Jeruvy
New Member
New Member


Joined: Jul 29, 2003
Posts: 9

PostPosted: Thu Jun 24, 2004 12:06 pm Reply with quote Back to top

Hmm, I know I sent them...I'll try again..
View user's profile Send private message
Fortissimo
New Member
New Member


Joined: Jun 25, 2004
Posts: 5

PostPosted: Fri Jun 25, 2004 10:44 am Reply with quote Back to top

Hello. Sorry for adding to this.

I do not have News set as being on home. I use my Forum. I double checked to make sure that Forums index.php was edited, and it wasn't... however now you can't put anything on the index page other than News. (I apparently used the fix after you guys realized this was happening with the news module).

How do I go about getting this to work w/ Forums being on the home page?

This is the top code for Forums:

Code:
if (!eregi("modules.php", $_SERVER['PHP_SELF']))
    {
        die ("You can't access this file directly...");
    }
if ($popup != "1")
    {
        $module_name = basename(dirname(__FILE__));
        require("modules/".$module_name."/nukebb.php");
    }
    else
    {
        $phpbb_root_path = 'modules/Forums/';
    }
define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);


Thank you in advance and I'm sorry if this cluttered up this thread... Split it off to a new thread if needed.
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Fri Jun 25, 2004 11:06 am Reply with quote Back to top

Code:
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME']))
    {
        die ("You can't access this file directly...");
    }
if ($popup != "1")
    {
        $module_name = basename(dirname(__FILE__));
        require("modules/".$module_name."/nukebb.php");
    }
    else
    {
        $phpbb_root_path = 'modules/Forums/';
    }
define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
View user's profile Send private message Visit poster's website
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Fri Jun 25, 2004 11:10 am Reply with quote Back to top

Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
Jeruvy
New Member
New Member


Joined: Jul 29, 2003
Posts: 9

PostPosted: Fri Jun 25, 2004 12:00 pm Reply with quote Back to top

It appears that my patched files and unpatched files got mixed up at some point, so my thought that patches were up was in fact incorrect. I'm now publishing those patches ...carefully...

So far I'm still having trouble with the reg expression in main index.php, but I'm hoping once I have all the other pages patched this will go away Laughing

Thanks Chatserv for pointing out that these files were in fact a bit dated.
View user's profile Send private message
spottedhog
Regular
Regular


Joined: Jun 02, 2004
Posts: 88

PostPosted: Mon Jun 28, 2004 6:46 am Reply with quote Back to top

I need a clarification here..... if I make the following changes:

Quote:
Code:
$_SERVER['PHP_SELF'] = "modules.php";

replace with:
Code:
$_SERVER['SCRIPT_NAME'] = "modules.php";


in the index.php root file, won't I need to need to change 'PHP_SELF' to 'SCRIPT_NAME' in all the non-standard phpnuke modules? Also, won't I need to do that for all blocks as well?

thanks.........
View user's profile Send private message Visit poster's website
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Wed Jun 30, 2004 4:47 pm Reply with quote Back to top

Making that change does not affect the blocks, but yes make the change to blocks as well, as for non-default modules, correct, you need to switch PHP-SELF to SCRIPT_NAME or they will give you a "can't access this file directly" message.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum