Author |
Message |
marfa
New Member


Joined: May 04, 2003
Posts: 11
|
Posted:
Wed Sep 21, 2005 10:44 am |
|
I have just finished to install phpNuke v7.8.0.3.1 downloaded form NukeScripts.
I also installed NukeSentinel 2.42-71-79, edited all the core files, and installed the sql.
Two strange things are happening:
1-. No NukeSentinel link appears in the administration menu.
2-. The NukeSentinel link in the blocks module goes to a blank page.
Can someone help me with this issues? |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Wed Sep 21, 2005 5:43 pm |
|
That sounds like an incomplete install. Your ftp client may not have transferred all the files. Try it again and then verify that all the files got transferred. |
|
|
|
 |
sandman229
New Member


Joined: Nov 11, 2004
Posts: 3
|
Posted:
Tue Nov 01, 2005 9:41 pm |
|
marfa wrote: | I have just finished to install phpNuke v7.8.0.3.1 downloaded form NukeScripts.
I also installed NukeSentinel 2.42-71-79, edited all the core files, and installed the sql.
Two strange things are happening:
1-. No NukeSentinel link appears in the administration menu.
2-. The NukeSentinel link in the blocks module goes to a blank page.
Can someone help me with this issues? |
I have the same problem and mine is on a local computer. Did anybody find an answer to this question??
I'll go copy and paste the directories again.. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed Nov 02, 2005 6:53 am |
|
Post the code for your function modules() within script /admin/modules/modules.php or check that the INSERT statement isn't missing a field value or two. This is an issue that has been discussed here before, but I am seeing it pop up in more distributions. Not sure why.
Regards,
montego |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
sandman229

|
Posted:
Wed Nov 02, 2005 3:44 pm |
|
ok, here is the module.php code from the admin/module/ directory..
Code:function modules() {
global $prefix, $db, $multilingual, $bgcolor2, $admin_file;
include ("header.php");
GraphicAdmin();
OpenTable();
echo "<center><font class=\"title\"><b>" . _MODULESADMIN . "</b></font></center>";
CloseTable();
$handle=opendir('modules');
$modlist = "";
while ($file = readdir($handle)) {
if ( (!ereg("[.]",$file)) ) {
$modlist .= "$file ";
}
}
closedir($handle);
$modlist = explode(" ", $modlist);
sort($modlist);
for ($i=0; $i < sizeof($modlist); $i++) {
if(!empty($modlist[$i])) {
$row = $db->sql_fetchrow($db->sql_query("SELECT mid from " . $prefix . "_modules where title='$modlist[$i]'"));
$mid = intval($row['mid']);
if (empty($mid)) {
$db->sql_query("insert into " . $prefix . "_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0', '')");
}
}
}
$result2 = $db->sql_query("SELECT title from " . $prefix . "_modules");
while ($row2 = $db->sql_fetchrow($result2)) {
$title = $row2['title'];
$a = 0;
$handle=opendir('modules');
while ($file = readdir($handle)) {
if ($file == $title) {
$a = 1;
}
}
closedir($handle);
if ($a == 0) {
$db->sql_query("delete from " . $prefix . "_modules where title='$title'");
}
}
echo "<br>";
OpenTable();
echo "<br><center><font class=\"option\">" . _MODULESADDONS . "</font><br><br>"
."<font class=\"content\">" . _MODULESACTIVATION . "</font><br><br>"
."" . _MODULEHOMENOTE . "<br><br>" . _NOTINMENU . "<br><br>"
."<form action=\"".$admin_file.".php\" method=\"post\">"
."<table border=\"1\" align=\"center\" width=\"90%\"><tr><td align=\"center\" bgcolor=\"$bgcolor2\">"
."<b>"._TITLE."</b></td><td align=\"center\" bgcolor=\"$bgcolor2\"><b>"._CUSTOMTITLE."</b></td><td align=\"center\" bgcolor=\"$bgcolor2\"><b>"._STATUS."</b></td><td align=\"center\" bgcolor=\"$bgcolor2\"><b>"._VIEW."</b></td><td align=\"center\" bgcolor=\"$bgcolor2\"><b>"._GROUP."</b></td><td align=\"center\" bgcolor=\"$bgcolor2\"><b>"._FUNCTIONS."</b></td></tr>";
$main_m = $db->sql_fetchrow($db->sql_query("SELECT main_module from " . $prefix . "_main"));
$main_module = $main_m['main_module'];
$result3 = $db->sql_query("SELECT mid, title, custom_title, active, view, inmenu, mod_group from " . $prefix . "_modules order by title ASC");
while ($row3 = $db->sql_fetchrow($result3)) {
$mid = intval($row3['mid']);
$title = $row3['title'];
$custom_title = $row3['custom_title'];
$active = intval($row3['active']);
$view = intval($row3['view']);
$inmenu = intval($row3['inmenu']);
$mod_group = intval($row3['mod_group']);
if (empty($custom_title)) {
$custom_title = ereg_replace("_"," ",$title);
$db->sql_query("update " . $prefix . "_modules set custom_title='$custom_title' where mid='$mid'");
}
if ($active == 1) {
$active = "<img src=\"images/active.gif\" alt=\""._ACTIVE."\" title=\""._ACTIVE."\" border=\"0\" width=\"16\" height=\"16\">";
$change = "<img src=\"images/inactive.gif\" alt=\""._DEACTIVATE."\" title=\""._DEACTIVATE."\" border=\"0\" width=\"16\" height=\"16\">";
$act = 0;
} else {
$active = "<img src=\"images/inactive.gif\" alt=\""._INACTIVE."\" title=\""._INACTIVE."\" border=\"0\" width=\"16\" height=\"16\">";
$change = "<img src=\"images/active.gif\" alt=\""._ACTIVATE."\" title=\""._ACTIVATE."\" border=\"0\" width=\"16\" height=\"16\">";
$act = 1;
}
if (empty($custom_title)) {
$custom_title = ereg_replace("_", " ", $title);
}
if ($view == 0) {
$who_view = _MVALL;
} elseif ($view == 1) {
$who_view = _MVUSERS;
} elseif ($view == 2) {
$who_view = _MVADMIN;
} elseif ($view == 3) {
$who_view = _SUBUSERS;
}
if ($title != $main_module AND $inmenu == 0) {
$title = "[ <big><strong>·</strong></big> ] $title";
}
if ($title == $main_module) {
$title = "<b>$title</b>";
$custom_title = "<b>$custom_title</b>";
$active = "$active <img src=\"images/key.gif\" alt=\""._INHOME."\" title=\""._INHOME."\" border=\"0\" width=\"17\" height=\"17\">";
$who_view = "<b>$who_view</b>";
$puthome = "<img src=\"images/key_x.gif\" alt=\""._INHOME."\" title=\""._INHOME."\" border=\"0\" width=\"17\" height=\"17\">";
$change_status = "$change";
$background = "bgcolor=\"$bgcolor2\"";
} else {
$puthome = "<a href=\"".$admin_file.".php?op=home_module&mid=$mid\"><img src=\"images/key.gif\" alt=\""._PUTINHOME."\" title=\""._PUTINHOME."\" border=\"0\" width=\"17\" height=\"17\"></a>";
$change_status = "<a href=\"".$admin_file.".php?op=module_status&mid=$mid&active=$act\">$change</a>";
$background = "";
}
if ($mod_group != 0) {
$grp = $db->sql_fetchrow($db->sql_query("SELECT name FROM ".$prefix."_groups WHERE id='$mod_group'"));
$mod_group = $grp['name'];
} else {
$mod_group = _NONE;
}
echo "<tr><td $background> $title</td><td align=\"center\" $background>$custom_title</td><td align=\"center\" $background>$active</td><td align=\"center\" $background>$who_view</td><td align=\"center\" $background>$mod_group</td><td align=\"center\" $background nowrap> <a href=\"".$admin_file.".php?op=module_edit&mid=$mid\"><img src=\"images/edit.gif\" alt=\""._EDIT."\" title=\""._EDIT."\" border=\"0\" width=\"17\" height=\"17\"></a> $change_status $puthome </td></tr>";
}
echo "</table></form></center>";
CloseTable();
include ("footer.php");
}
|
|
|
|
|
 |
sandman229

|
Posted:
Thu Nov 03, 2005 5:33 pm |
|
montego wrote: | Post the code for your function modules() within script /admin/modules/modules.php or check that the INSERT statement isn't missing a field value or two. This is an issue that has been discussed here before, but I am seeing it pop up in more distributions. Not sure why.
Regards,
montego |
I put this in right after <?php
Code:if ($forum_admin == 1) {
include("../../../includes/nukesentinel.php");
} elseif ($inside_mod == 1) {
include("../../includes/nukesentinel.php");
} else {
include("includes/nukesentinel.php");
}
|
Now it didn't tell me to do that in the module7.8 txt file..
But anyway, its now working. |
|
|
|
 |
montego

|
Posted:
Thu Nov 03, 2005 7:52 pm |
|
Sorry for not having responded sooner. I am glad to see that you solved the issue. |
|
|
|
 |
|