admin/module.php not showing new modules installed

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   admin/module.php not showing new modules installed
dsnail2000
CZ Super Newbie
 Codezwiz Site Donator
dsnail2000 has been a member for over 20 year's 20 Year Member
usa.gif virginia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Jun 28, 2004
0.00 posts per day
Posts: 36
Points: 6,786
   
I am trying to add a couple new modules but the module in the admin section that defines whether a module is active or not, isn't showing or not looking for new modules that I have added to the root/admin/module folder. I read the post on the fix at Nukecops.com but it doesn't seem to apply. Telli, the admin/module.php came from when you updated my site to 7.3 from 6.5. Can you verify whether or not the fix was applied?



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
What do you mean arnt showing up? Do you mean when you add a new module into the modules/ folder that it doesnt show up in the admin> modules managment?

Telli




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
dsnail2000
CZ Super Newbie
 Codezwiz Site Donator
dsnail2000 has been a member for over 20 year's 20 Year Member
usa.gif virginia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Jun 28, 2004
0.00 posts per day
Posts: 36
Points: 6,786
   
exactly



Back to top Reply with quote
#4   
dsnail2000
CZ Super Newbie
 Codezwiz Site Donator
dsnail2000 has been a member for over 20 year's 20 Year Member
usa.gif virginia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Jun 28, 2004
0.00 posts per day
Posts: 36
Points: 6,786
   
I am wondering if it's a permissions issue.. I can't remmeber where that list of permissions is that tells you what each folder should be!



Back to top Reply with quote
#5   
dsnail2000
CZ Super Newbie
 Codezwiz Site Donator
dsnail2000 has been a member for over 20 year's 20 Year Member
usa.gif virginia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Jun 28, 2004
0.00 posts per day
Posts: 36
Points: 6,786
   
doesn't seem to be a permissions issue... I got all the directories set correctly!



Back to top Reply with quote
#6   re: admin/module.php not showing new modules installed
Kuimera
CZ Super Newbie
 Codezwiz Site Donator
Kuimera has been a member for over 20 year's 20 Year Member
portugal.gif
Occupation: Designer
Age: 42
Gender: Male
Website:
Status: Offline
Joined: Aug 24, 2004
0.00 posts per day
Posts: 33
Points: 2,663
  MSN Messenger 
That happends to me when i upgraded v6.5 to v7.3, what i did was, i went to the MySQL data base and added one module manualy, then it become ok.
I think its your MySQL that is stuck, and just need a little push.
It worked for me.

hope that works for you friend,




_________________
Back to top Reply with quote
#7   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
The admin/modules/modules.php has a bad query in it. Attach that and the table structure for your nuke_modules and I will show you what I mean.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#8   re: admin/module.php not showing new modules installed
mjhufford
CZ Active Member
 Codezwiz Site Donator
mjhufford has been a member for over 20 year's 20 Year Member
usa.gif arkansas.gif
Occupation: IT Industry
Age: 47
Gender: Male
Fav. Sports Team: Da Bears.
Website:
Status: Offline
Joined: Jul 01, 2004
0.04 posts per day
Posts: 288
Points: 15,094
  MSN Messenger 
My files are listed. I'm having the same problem.

admin/modules/modules.php
<?php
/************************************************************************/
/* Tweaked by Telli                                                     */
/* Tweak Copyright (c) 2003-2004 by Telli                  */
/* Web Site: http://codzwiz.com                                         */
/************************************************************************/

if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }

$result = sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radminsuper) = sql_fetch_row($result, $dbi);
if ($radminsuper==1) {

/*********************************************************/
/* REVIEWS Block Functions                               */
/*********************************************************/

function modules() {
    global $prefix, $dbi, $multilingual, $bgcolor2;
    include ("header.php");
    GraphicAdmin();
    OpenTable();
    echo "<center><font class=\"title\"><b>"._MODULESADMIN."</b></font></center>";
    CloseTable();
    $handle=opendir('modules');
    while ($file = readdir($handle)) {
   if ( (!ereg("[.]",$file)) ) {
      $modlist .= "$file ";
   }
    }
    closedir($handle);
    $modlist = explode(" ", $modlist);
    sort($modlist);
    for ($i=0; $i < sizeof($modlist); $i++) {
   if($modlist[$i] != "") {
       $result = sql_query("select mid from ".$prefix."_modules where title='$modlist[$i]'", $dbi);
       list ($mid) = sql_fetch_row($result, $dbi);
       if ($mid == "") {
      sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1','1')", $dbi);
       }
   }
    }
    $result = sql_query("select title from ".$prefix."_modules", $dbi);
    while (list($title) = sql_Fetch_row($result, $dbi)) {
   $a = 0;
   $handle=opendir('modules');
   while ($file = readdir($handle)) {
       if ($file == $title) {
      $a = 1;
       }
   }
   closedir($handle);
   if ($a == 0) {
       sql_query("delete from ".$prefix."_modules where title='$title'", $dbi);
   }
    }
    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.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>"._FUNCTIONS."</b></td></tr>";
    $main_m = sql_query("select main_module from ".$prefix."_main", $dbi);
    list($main_module) = sql_fetch_row($main_m, $dbi);
    $result = sql_query("select mid, title, custom_title, active, view, inmenu, mcid from ".$prefix."_modules order by title ASC", $dbi);
    while(list($mid, $title, $custom_title, $active, $view, $inmenu, $mcid) = sql_fetch_row($result, $dbi)) {
   if ($custom_title == "") {
       $custom_title = ereg_replace("_"," ",$title);
       sql_query("update ".$prefix."_modules set custom_title='$custom_title' where mid='$mid'", $dbi);
   }
   if ($active == 1) {
       $active = _ACTIVE;
       $change = _DEACTIVATE;
       $act = 0;
   } else {
       $active = "<i>"._INACTIVE."</i>";
       $change = _ACTIVATE;
       $act = 1;
   }
   if ($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;
   }
   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 = "<b>$active ("._INHOME.")</b>";
       $who_view = "<b>$who_view</b>";
       $puthome = "<i>"._PUTINHOME."</i>";
       $change_status = "<i>$change</i>";
       $background = "bgcolor=\"$bgcolor2\"";
   } else {
       $puthome = "<a href=\"admin.php?op=home_module&mid=$mid\">"._PUTINHOME."</a>";
       $change_status = "<a href=\"admin.php?op=module_status&mid=$mid&active=$act\">$change</a>";
       $background = "";
   }
   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>[ <a href=\"admin.php?op=module_edit&mid=$mid\">"._EDIT."</a> | $change_status | $puthome ]</td></tr>";
    }
    echo "</table>";
    CloseTable();
    echo "<br>";


/* Add A New Modules Category */
   OpenTable();
    echo "<form method=\"post\" action=\"admin.php\">"
   ."<font class=\"content\"><b>"._ADDMAINCATEGORY."</b><br><br>"
   .""._NAME.": <input type=\"text\" name=\"mcname\" size=\"30\" maxlength=\"100\"><br>"
   ."<input type=\"hidden\" name=\"op\" value=\"modules_add_category\">"
   ."<input type=\"submit\" value=\""._ADD."\"><br>"
   ."</form>";
    CloseTable();
    echo "<br>";

// Modify Category

    $result = sql_query("select * from ".$prefix."_modules_categories", $dbi);
    $numrows = sql_num_rows($result, $dbi);
    if ($numrows>0) {
   OpenTable();
   echo "<form method=\"post\" action=\"admin.php\">"
       ."<font class=\"content\"><b>"._MODCATEGORY."</b></font><br><br>";
   $result2=sql_query("select mcid, mcname from ".$prefix."_modules_categories order by mcname", $dbi);
   echo ""._CATEGORY.": <select name=\"cat\">";
   while(list($mcid2, $mcname2) = sql_fetch_row($result2, $dbi)) {
        echo "<option value=\"$mcid2\">$mcname2</option>";
   }
   echo "</select>"
       ."<input type=\"hidden\" name=\"op\" value=\"modules_edit_category\">"
       ."<input type=\"submit\" value=\""._MODIFY."\">"
       ."</form>";
   CloseTable();
    } else {
    }
   CZModulecopy();
    include ("footer.php");
}

function home_module($mid, $ok=0) {
    global $prefix, $dbi;
    if ($ok == 0) {
   include ("header.php");
   GraphicAdmin();
   title(""._HOMECONFIG."");
   OpenTable();
   $result = sql_query("select title from ".$prefix."_modules where mid='$mid'", $dbi);
   list($new_m) = sql_fetch_row($result, $dbi);
   $result = sql_query("select main_module from ".$prefix."_main", $dbi);
   list($old_m) = sql_fetch_row($result, $dbi);
   echo "<center><b>"._DEFHOMEMODULE."</b><br><br>"
       .""._SURETOCHANGEMOD." <b>$old_m</b> "._TO." <b>$new_m</b>?<br><br>"
       ."[ <a href=\"admin.php?op=modules\">"._NO."</a> | <a href=\"admin.php?op=home_module&mid=$mid&ok=1\">"._YES."</a> ]</center>";
   CloseTable();
   CZModulecopy();
   include("footer.php");
    } else {
   $result = sql_query("select title from ".$prefix."_modules where mid='$mid'", $dbi);
   list($title) = sql_fetch_row($result, $dbi);
   $active = 1;
   $view = 0;
   $result = sql_query("update ".$prefix."_main set main_module='$title'", $dbi);
   $result = sql_query("update ".$prefix."_modules set active='$active', view='$view' where mid='$mid'", $dbi);
   Header("Location: admin.php?op=modules");
    }
}

function module_status($mid, $active) {
    global $prefix, $dbi;
    sql_query("update ".$prefix."_modules set active='$active' where mid='$mid'", $dbi);
    Header("Location: admin.php?op=modules");
}

function module_edit($mid) {
    global $prefix, $dbi;
    $main_m = sql_query("select main_module from ".$prefix."_main", $dbi);
    list($main_module) = sql_fetch_row($main_m, $dbi);
    $result = sql_query("select title, custom_title, view, inmenu, mcid from ".$prefix."_modules where mid='$mid'", $dbi);
    list($title, $custom_title, $view, $inmenu, $mcid) = sql_fetch_row($result, $dbi);
    include ("header.php");
    GraphicAdmin();
    title(""._MODULEEDIT."");
    OpenTable();
    if ($view == 0) {
   $sel1 = "selected";
   $sel2 = "";
   $sel3 = "";
    } elseif ($view == 1) {
   $sel1 = "";
   $sel2 = "selected";
   $sel3 = "";
    } elseif ($view == 2) {
   $sel1 = "";
   $sel2 = "";
   $sel3 = "selected";
    }
    if ($title == $main_module) {
   $a = " - "._INHOME."";
    } else {
   $a = "";
    }
    if ($inmenu == 1) {
   $insel1 = "checked";
   $insel2 = "";
    } elseif ($inmenu == 0) {
   $insel1 = "";
   $insel2 = "checked";
    }
    echo "<center><b>"._CHANGEMODNAME."</b><br>($title$a)</center><br><br>"
   ."<form action=\"admin.php\" method=\"post\">"
   ."<table border=\"0\"><tr><td>"
   .""._CUSTOMMODNAME."</td><td>"
   ."<input type=\"text\" name=\"custom_title\" value=\"$custom_title\" size=\"50\"></td></tr>";
    if ($title == $main_module) {
   echo "<input type=\"hidden\" name=\"view\" value=\"0\">"
       ."<input type=\"hidden\" name=\"inmenu\" value=\"$inmenu\">"
       ."</table><br><br>";
    } else {
   echo "<tr><td>"._VIEWPRIV."</td><td><select name=\"view\">"
       ."<option value=\"0\" $sel1>"._MVALL."</option>"
       ."<option value=\"1\" $sel2>"._MVUSERS."</option>"
       ."<option value=\"2\" $sel3>"._MVADMIN."</option>"
       ."</select></tr></td>"
       ."<tr><td>"._SHOWINMENU."</td><td>"
       ."<input type=\"radio\" name=\"inmenu\" value=\"1\" $insel1> "._YES."  ;; ;; <input type=\"radio\" name=\"inmenu\" value=\"0\" $insel2> "._NO.""
       ."</td></tr>";
      $result=sql_query("select mcid, mcname from ".$prefix."_modules_categories order by mcid ASC", $dbi);
      list($mcid, $mcname) = sql_fetch_row($result, $dbi);
       echo "<tr><td>"._CATEGORY.": <select name=\"mcat\">";
      $result2=sql_query("select mcid, mcname from ".$prefix."_modules_categories order by mcid ASC", $dbi);
      while(list($mcid2, $mcname2) = sql_fetch_row($result2, $dbi)) {
         if ($mcid2==$mcid) {
                  $sel = "selected";
               } else {
                  $sel = "";
      }
         echo "<option value=\"$mcid2\" $sel>$mcname2</option>";
      }
      echo "</select></td></tr></table><br><br>";
    }
    if ($title != $main_module) {

    }
    echo "<input type=\"hidden\" name=\"mid\" value=\"$mid\">"
   ."<input type=\"hidden\" name=\"op\" value=\"module_edit_save\">"
   ."<input type=\"submit\" value=\""._SAVECHANGES."\">"
   ."</form>"
   ."<br><br><center>"._GOBACK."</center>";
    CloseTable();
    CZModulecopy();
    include("footer.php");
}

function module_edit_save($mid, $custom_title, $view, $inmenu, $mcat) {
    global $prefix, $dbi;
    $mcat = explode("-", $mcat);
       if ($mcat[1]=="") {
           $mcat[1] = 0;
    }
    $result = sql_query("update ".$prefix."_modules set custom_title='$custom_title', view='$view', inmenu='$inmenu', mcid='$mcat[0]' where mid='$mid'", $dbi);
    Header("Location: admin.php?op=modules");
}

function modules_add_category($mcname){
   global $prefix, $dbi;
   $result=sql_query("SELECT * FROM ".$prefix."_modules_categories WHERE mcname='$mcname'", $dbi);
   $numrows = sql_num_rows($result, $dbi);
   if($numrows > 0){
      include("header.php");
      GraphicAdmin();
      OpenTable();
         echo "<br><center><font class=\"content\">"
             ."<b>"._ERRORTHECATEGORY." $title "._ALREADYEXIST."</b><br><br>"
             .""._GOBACK."<br><br>";
      CloseTable();
      CZModulecopy();
      include("footer.php");
   } else {
      sql_query("INSERT INTO ".$prefix."_modules_categories (mcid, mcname) VALUES (NULL, '$mcname')", $dbi);
      header("Location: admin.php?op=modules");
   }
}
function CZModulecopy(){
echo "<br>";
OpenTable();
echo "<div align=\"right\">CZModules for PHPNuke 6.5-6.9 by <a href=\"http://codezwiz.com/\">Telli</a></div>";
echo "<div align=\"right\">Copyright &copy; 2003-2004 by Codezwiz</div>";
CloseTable();
}

function modules_edit_category($cat) {
    global $prefix, $dbi;
    include ("header.php");
    GraphicAdmin();
    OpenTable();
    echo "<center><font class=\"title\"><b>"._MODULESADMIN."</b></font></center>";
    CloseTable();
    echo "<br>";
    $cat = explode("-", $cat);
    if ($cat[1]=="") {
        $cat[1] = 0;
    }
       OpenTable();
    echo "<center><font class=\"content\"><b>"._MODCATEGORY."</b></font></center><br><br>";
    $result=sql_query("select mcname, visible from ".$prefix."_modules_categories where mcid='$cat[0]'", $dbi);
   list($mcname,$visible) = sql_fetch_row($result, $dbi);
   if ($visible == 1) {
      $insel1 = "checked";
      $insel2 = "";
       } elseif ($visible == 0) {
      $insel1 = "";
      $insel2 = "checked";
       }


   echo "<form action=\"admin.php\" method=\"get\">"
       .""._NAME.": <input type=\"text\" name=\"mcname\" value=\"$mcname\" size=\"51\" maxlength=\"50\"><br>"
      ."Visible? <input type=\"radio\" name=\"visible\" value=\"1\" $insel1> "._YES."  ;; ;; <input type=\"radio\" name=\"visible\" value=\"0\" $insel2> "._NO.""
       ."<input type=\"hidden\" name=\"mcid\" value=\"$cat[0]\">"
       ."<input type=\"hidden\" name=\"op\" value=\"modules_edit_category_save\">"
       ."<table border=\"0\"><tr><td>"
       ."<input type=\"submit\" value=\""._SAVECHANGES."\"></form></td><td>"
       ."<form action=\"admin.php\" method=\"get\">"
       ."<input type=\"hidden\" name=\"mcid\" value=\"$cat[0]\">"
       ."<input type=\"hidden\" name=\"op\" value=\"modules_delete_category\">"
       ."<input type=\"submit\" value=\""._DELETE."\"></form></td></tr></table>";
    CloseTable();
    CZModulecopy();
    include("footer.php");
}

function modules_edit_category_save($mcid, $mcname, $visible) {
    global $prefix, $dbi;

   sql_query("UPDATE ".$prefix."_modules_categories SET mcname='$mcname', visible='$visible' WHERE mcid='$mcid'", $dbi);
    Header("Location: admin.php?op=modules");
}

function modules_delete_category($mcid, $ok) {
    global $prefix, $dbi;
    if($ok==1) {
       sql_query("delete from ".$prefix."_modules_categories where mcid='$mcid'", $dbi);

   Header("Location: admin.php?op=modules");
    } else {
   include("header.php");
   GraphicAdmin();
   OpenTable();
   echo "<br><center><font class=\"option\">";
   echo "<b>Are You Sure?</b><br><br>";
   }
   echo "[ <a href=\"admin.php?op=modules_delete_category&amp;mcid=$mcid&amp;ok=1\">"._YES."</a> | <a href=\"admin.php?op=modules\">"._NO."</a> ]<br><br>";

   CloseTable();
   CZModulecopy();
   include("footer.php");
}



switch ($op){

    case "modules":
    modules();
    break;

    case "module_status":
    module_status($mid, $active);
    break;

    case "module_edit":
    module_edit($mid);
    break;

    case "module_edit_save":
    module_edit_save($mid, $custom_title, $view, $inmenu, $mcat);
    break;

    case "home_module":
    home_module($mid, $ok);
    break;

    case "modules_add_category":
    modules_add_category($mcname);
    break;

    case "modules_edit_category":
    modules_edit_category($cat);
    break;

    case "modules_edit_category_save":
    modules_edit_category_save($mcid, $mcname, $visible);
    break;

    case "modules_delete_category":
    modules_delete_category($mcid, $ok);
    break;
}
} else {
    echo "Access Denied";
}

?>


SQL

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fcharset0 Times New Roman;}{\f1\fswiss\fcharset0 Courier New;}{\f2\fswiss\fcharset0 Arial;}}
{\colortbl ;\red0\green0\blue255;}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\keepn\sb100\sa100\kerning36\b\f0\fs48 Database \i{\field{\*\fldinst{HYPERLINK "db_details_structure.php?lang=en-iso-8859-1&server=1&db=guitarvoice_com_-_nuke"}}{\fldrslt{\cf1\ul guitarvoice_com_-_nuke}}}\cf0\ulnone\i0\f0\fs48  - Table \i{\field{\*\fldinst{HYPERLINK "tbl_properties_structure.php?lang=en-iso-8859-1&server=1&db=guitarvoice_com_-_nuke&table=nuke_modules"}}{\fldrslt{\cf1\ul nuke_modules}}}\cf0\ulnone\i0\f0\fs48  running on \i{\field{\*\fldinst{HYPERLINK "main.php?lang=en-iso-8859-1&server=1"}}{\fldrslt{\cf1\ul localhost}}}\cf0\ulnone\i0\f0\fs48  \par
\pard\tx0\tx959\tx1918\tx2877\tx3836\tx4795\tx5754\tx6713\tx7672\tx8631\kerning0\b0\f1\fs20 # phpMyAdmin SQL Dump\par
# version 2.5.3\par
# http://www.phpmyadmin.net\par
#\par
# Host: localhost\par
# Generation Time: Aug 30, 2004 at 08:40 PM\par
# Server version: 3.23.58\par
# PHP Version: 4.3.8\par
# \par
# Database : `guitarvoice_com_-_nuke`\par
# \par
\par
# --------------------------------------------------------\par
\par
#\par
# Table structure for table `nuke_modules`\par
#\par
\par
CREATE TABLE `nuke_modules` (\par
  `mid` int(10) NOT NULL auto_increment,\par
  `title` varchar(255) NOT NULL default '',\par
  `custom_title` varchar(255) NOT NULL default '',\par
  `active` int(1) NOT NULL default '0',\par
  `view` int(1) NOT NULL default '0',\par
  `inmenu` tinyint(1) NOT NULL default '1',\par
  `mod_group` int(10) default '0',\par
  `mcid` int(11) NOT NULL default '1',\par
  PRIMARY KEY  (`mid`),\par
  KEY `mid` (`mid`),\par
  KEY `title` (`title`),\par
  KEY `custom_title` (`custom_title`)\par
) TYPE=MyISAM AUTO_INCREMENT=36 ;\par
\par
#\par
# Dumping data for table `nuke_modules`\par
#\par
\par
INSERT INTO `nuke_modules` VALUES (1, 'AvantGo', 'AvantGo', 0, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (2, 'Content', 'Lessons', 1, 1, 1, 0, 4);\par
INSERT INTO `nuke_modules` VALUES (3, 'Downloads', 'Downloads', 1, 1, 1, 0, 4);\par
INSERT INTO `nuke_modules` VALUES (4, 'Encyclopedia', 'Encyclopedia', 0, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (5, 'FAQ', 'FAQ', 0, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (6, 'Feedback', 'Feedback', 1, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (7, 'Forums', 'Forums', 1, 0, 1, 0, 2);\par
INSERT INTO `nuke_modules` VALUES (8, 'Journal', 'Journal', 0, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (9, 'Members_List', 'Members List', 1, 0, 1, 0, 2);\par
INSERT INTO `nuke_modules` VALUES (10, 'News', 'Music News', 1, 0, 1, 0, 0);\par
INSERT INTO `nuke_modules` VALUES (11, 'Private_Messages', 'Private Messages', 1, 1, 1, 0, 2);\par
INSERT INTO `nuke_modules` VALUES (12, 'Recommend_Us', 'Recommend Us', 1, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (13, 'Reviews', 'Reviews', 0, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (14, 'Search', 'Search', 1, 0, 0, 0, 4);\par
INSERT INTO `nuke_modules` VALUES (15, 'Sections', 'Sections', 0, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (16, 'Statistics', 'GV Stats', 1, 2, 0, 0, 4);\par
INSERT INTO `nuke_modules` VALUES (17, 'Stories_Archive', 'News Archive', 1, 0, 1, 0, 4);\par
INSERT INTO `nuke_modules` VALUES (18, 'Submit_News', 'Submit News', 1, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (19, 'Surveys', 'Surveys', 1, 0, 1, 0, 2);\par
INSERT INTO `nuke_modules` VALUES (20, 'Top', 'Top 10', 0, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (21, 'Topics', 'Topics', 0, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (22, 'Web_Links', 'Web Links', 1, 1, 1, 0, 4);\par
INSERT INTO `nuke_modules` VALUES (23, 'Your_Account', 'My Account', 1, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (24, 'WebMail', 'WebMail', 0, 0, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (25, 'Internet_Radio3', 'GV Radio', 1, 1, 0, 1, 1);\par
INSERT INTO `nuke_modules` VALUES (26, 'Candystand', 'Candystand Games', 1, 1, 1, 3, 3);\par
INSERT INTO `nuke_modules` VALUES (27, 'Points', 'Points', 1, 0, 1, 1, 2);\par
INSERT INTO `nuke_modules` VALUES (28, 'MiniClip', 'MiniClip Games', 1, 1, 1, 0, 3);\par
INSERT INTO `nuke_modules` VALUES (30, 'Rolling_Headlines', 'RSS Feeds', 1, 2, 0, 0, 4);\par
INSERT INTO `nuke_modules` VALUES (34, 'Weather', 'Weather', 1, 1, 1, 0, 1);\par
INSERT INTO `nuke_modules` VALUES (35, 'Link_To_Us', 'Link To GV', 1, 0, 1, 0, 2);\par
    \par
\pard\f2\par
}




_________________
"The pursuit of easy things makes men weak."
-David O. McKay
Back to top Reply with quote
#9   re: admin/module.php not showing new modules installed
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Ok you have 8 fields in the nuke_modules table. Your admin/modules/modules.php is only inserting 7 which is causing the error. Find and change this line in admin/modules/modules.php:

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


To:

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




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#10   
dsnail2000
CZ Super Newbie
 Codezwiz Site Donator
dsnail2000 has been a member for over 20 year's 20 Year Member
usa.gif virginia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Jun 28, 2004
0.00 posts per day
Posts: 36
Points: 6,786
   
did the trick for me too!



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum