>>  Site Map >>  Forums >>  Modules 7x

Forum module - topics in forum:



Modules 7x - Discussions regarding PHP-Nuke Modules. 7x



Handbook Module

All I get with this is a blank page.

Would it be because it was created for version 6.5 and I'm using 7.6?

Would there be a simple fix?

The idiots guide style would suit our members Very Happy

Thanks






Quote: :

Would it be because it was created for version 6.5 and I'm using 7.6?

Almost certainly. I don't know the module you're talking about, but there are significant database differences between 6.5 and 7.6, so it would probably require a lot of code work unless it's a small module






I downloaded it from this site and it uses it's own tables






Whats your patch version or is it default nuke? if patch 3.1 try changing your module header to be compliant with the patch.

Code: :
if (!eregi("modules.php", $_SERVER['PHP_SELF']))


To

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


Remove

Code: :
if(!IsSet($mainfile)) { include ("mainfile.php"); }
$index=0;







Did you try this yet Reb?






Made the changes to modules/Handbook/index.php with no effect.

Don't know if this is relevant but I can see the icon in the admin menu, and another module I made using the module creator works fine and it has

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

}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
$index = 0;







Problem is that I can't trouble shoot this myself because I don't run any sites on 7.6 with patch 3.1






Fair enough. Thanks anyway.






Could try turning on error reporting in config.php and see if it gives any clues.

Code: :
$display_errors = false;


To

Code: :
$display_errors = true;







Excellent. Had an unexpected ) Smile

Still get blank page through admin.
I have
Code: :
if(!eregi("admin.php", $_SERVER['PHP_SELF']))

In case.handbook.php and handbook.php. Would I be right in thinking I could change them both to

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


Then I've just got to find where the title is to change it from Handbook. Very Happy




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS