Bug Fix for modules not working in admin section
Date: Sunday, January 18 @ 17:58:24 CET
Topic: Bug Fixes


Hello Nukers From Israel !, Today in Israel's Community website one of our staff found a fix for the modules no showing bug in admin section.
if you want to get the fix choose "read more.."

Well here is the fix:
To fix the problem in admin/modules go to admin/modules/modules.php

Find:


sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1')", $dbi);

And Change To:


sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0')", $dbi);
 
(You Can See The Insert in not perfect)

now..To fix the problem in the block-Modules.php

Find:


$db->sql_query("INSERT INTO ".$prefix."_modules VALUES (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1')");
 
And Change To:


$db->sql_query("INSERT INTO ".$prefix."_modules VALUES (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '1')");
 
Well thats all falks, have a nice day and visit at us if you want: www.phpnuke-israel.org

Best Regards,
Roy Shiker - Admin






This article comes from NukeCops
http://www.nukecops.com

The URL for this story is:
http://www.nukecops.com/modules.php?name=News&file=article&sid=1429