| Author |
Message |
Jeruvy New Member


Joined: Jul 29, 2003 Posts: 9
|
Posted:
Tue Jun 22, 2004 3:53 pm |
|
No, but I'll PM the link to you. |
|
|
|
 |
Jeruvy New Member


Joined: Jul 29, 2003 Posts: 9
|
Posted:
Thu Jun 24, 2004 9:00 am |
|
| 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 =) |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Thu Jun 24, 2004 9:42 am |
|
I'm still waiting for the files. |
|
|
|
 |
Jeruvy New Member


Joined: Jul 29, 2003 Posts: 9
|
Posted:
Thu Jun 24, 2004 12:06 pm |
|
Hmm, I know I sent them...I'll try again.. |
|
|
|
 |
Fortissimo New Member


Joined: Jun 25, 2004 Posts: 5
|
Posted:
Fri Jun 25, 2004 10:44 am |
|
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. |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Fri Jun 25, 2004 11:06 am |
|
| 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); |
|
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Fri Jun 25, 2004 11:10 am |
|
|
|
 |
Jeruvy New Member


Joined: Jul 29, 2003 Posts: 9
|
Posted:
Fri Jun 25, 2004 12:00 pm |
|
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
Thanks Chatserv for pointing out that these files were in fact a bit dated. |
|
|
|
 |
spottedhog Regular


Joined: Jun 02, 2004 Posts: 88
|
Posted:
Mon Jun 28, 2004 6:46 am |
|
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......... |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Wed Jun 30, 2004 4:47 pm |
|
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. |
|
|
|
 |
|
|
|
|