Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
xgunz
New Member
New Member



Joined: Sep 10, 2005
Posts: 18

PostPosted: Tue Sep 13, 2005 3:13 pm Reply with quote

On Raven advice my site is now 7.6 with patch 3.1, everything runs great.

BUT! When I was running 7.7 I had a custom thrid party module which ran without problem, but it will not run with 7.6 patch 3.1, all I get is a blank screen.

Does any of this code need to be change to run on 7.6/3.1?

if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$index = 1;
 
View user's profile Send private message
nefar
Regular
Regular



Joined: Sep 20, 2004
Posts: 79

PostPosted: Tue Sep 13, 2005 4:09 pm Reply with quote

I think that there is a faq somewhere on the site that has changes that need to be made to modules/blocks in order for them to run with the 3.1 security pack. I will be in this sitiuation myself soon as I figure out how to get nsn groups installed with 3.1

I think there was a readme file that comes in the 7.6 3.1 package that may also hold this information.
 
View user's profile Send private message ICQ Number
64bitguy
The Mouse Is Extension Of Arm



Joined: Mar 06, 2004
Posts: 1164

PostPosted: Tue Sep 13, 2005 4:56 pm Reply with quote

Code:
if (!defined('MODULE_FILE')) {

   die ("You can't access this file directly...");
}

define('INDEX_FILE', true);
$index = 1;  //if you want right block on, if not, remove this line
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);

_________________
Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

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 ©