Author |
Message |
DrBullet
New Member


Joined: Jun 11, 2005
Posts: 2
|
Posted:
Sat Jun 11, 2005 9:06 am |
|
Hi, i don't know if it's because of updating to version
7.3, or something else. But i can't add more modules.
When i put a module in het modules folder, it won't be
shown in the modules configuration or navigation.
To make it more understandeble i've added this picture:
I have uploaded the folders: KTA1on1 and KTA2on2 to html/modules/
It contains allmost the exact information as the KTArules folder (wich IS working).
I even tried with an official PHPNuke module by renaming the
folder, but it didn't show up in the list.
Can someone help me to get back the auto detection of new modules?
Thanks,
Dr.Bullet
Only registered users can see links on this board! Get registered or login! |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Sat Jun 11, 2005 12:47 pm |
|
Go into your admin/modules/modules.php
somewhere around line 39 (probably)
and try this line instead..
Code:
$db->sql_query("insert into " . $prefix . "_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '', '1', '0', '')");
|
|
|
|
|
 |
DrBullet

|
Posted:
Sat Jun 11, 2005 1:13 pm |
|
Woohooo!!
The first reply allready worked:)
Thank you very much!
I know I have some other questions, but they doesn't
have anything to do with the 7.3 update. So I wont bother
you with it
Thx allot!!
Dr.Bullet |
|
|
|
 |
hitwalker

|
Posted:
Sat Jun 11, 2005 1:17 pm |
|
good luck...and dont forget the change you made.
and for other questions,just pick a forum and ask... |
|
|
|
 |
benson
Worker


Joined: May 15, 2004
Posts: 119
Location: Germany
|
Posted:
Thu Jun 16, 2005 12:16 pm |
|
Hello,
I downgraded from 7.7 to 7.6 phpNuke and got the same problem ...
Great fix, it works also for my normal phpNuke 7.6.
But, how does this happen, or in other words, what does this fix do ? My modules.php was the normal distributed file, from 7.6 ? |
_________________ Best regards, Norbert
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! |
|
|
 |
hitwalker

|
Posted:
Thu Jun 16, 2005 1:42 pm |
|
yes i know,but its still in there so i have no clue.... |
|
|
|
 |
lanny
New Member


Joined: Jul 27, 2005
Posts: 7
|
Posted:
Wed Jul 27, 2005 12:58 pm |
|
Quote: | Go into your admin/modules/modules.php
somewhere around line 39 (probably)
and try this line instead..
Code:
$db->sql_query("insert into " . $prefix . "_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '', '1', '0', '')");
| when you go in there do you delete something or just add this I cannot add any modules to my site after upgrading to 7.7. this is what I have around line 39
Quote: | $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] != "") {
$row = $db->sql_fetchrow($db->sql_query("SELECT mid from " . $prefix . "_modules where title='$modlist[$i]'"));
$mid = intval($row['mid']);
if ($mid == "") {
$db->sql_query("insert into " . $prefix . "_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0', '')");
}
} |
I tried to rename a folder in the Module folder then it dont show up anymore
Lanny |
|
|
|
 |
hitwalker

|
Posted:
Wed Jul 27, 2005 1:23 pm |
|
hi lanny,
first bring everything back to how it was...
dont rename something cause in the situation mods dont show it wont show either when renaming..
just go to (as you posted)..
Code:
$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] != "") {
$row = $db->sql_fetchrow($db->sql_query("SELECT mid from " . $prefix . "_modules where title='$modlist[$i]'"));
$mid = intval($row['mid']);
if ($mid == "") {
$db->sql_query("insert into " . $prefix . "_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0', '')");
}
}
|
and change it to...
Code:
$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] != "") {
$row = $db->sql_fetchrow($db->sql_query("SELECT mid from " . $prefix . "_modules where title='$modlist[$i]'"));
$mid = intval($row['mid']);
if ($mid == "") {
$db->sql_query("insert into " . $prefix . "_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '', '1', '0', '')");
}
}
|
|
|
|
|
 |
lanny

|
Posted:
Wed Jul 27, 2005 4:37 pm |
|
When I look at both codes they look the same what was changed
Lanny |
|
|
|
 |
hitwalker

|
Posted:
Wed Jul 27, 2005 4:39 pm |
|
The same huh....are you sure ?
Look again,or better just change the codes.. |
|
|
|
 |
lanny

|
Posted:
Wed Jul 27, 2005 7:49 pm |
|
I when and put in the code that you showed and it still will not show the new folders in the modules I starting to wish I had not updated to 7.7 from 7.5 at least they worked in that
Lanny |
|
|
|
 |
hitwalker

|
Posted:
Sat Jul 30, 2005 3:00 pm |
|
sorry i didnt get the mail of your reply..
well..sounds hard but nobody forced you to upgrade,most people do that because others are doing it..
why you think forums are so overcrowded?
If something works and your happy leave it alone,so dont touch it.. |
|
|
|
 |
sting
Involved


Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...
|
Posted:
Sun Aug 21, 2005 1:41 pm |
|
Quote: | But, how does this happen, or in other words, what does this fix do ? My modules.php was the normal distributed file, from 7.6 ?
|
The basic underlying issue here is that the sql statement is trying to insert information into a field that does not exist - the number of values in the insert statement MUST match up with corresponding fields in the database, otherwise you have issues...
Why it changes between versions is another story. No one but FB knows why FB does what he does..
hope that helps..
-sting |
|
|
 |
 |
myrtletrees
Involved


Joined: Sep 13, 2005
Posts: 259
Location: Cornfields of Indiana
|
Posted:
Tue May 08, 2007 8:13 am |
|
This is all caused by Google Tap if you use the hack to have *.html links in your Modules menu. It's a missed instruction on adding that hack:
Quote: | *Manual Instruction for admin/modules/modules.php:
Find:
sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1')", $dbi);
Replace With:
sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', NULL)", $dbi);
|
from OLD Google Tap 0.4
from:
Quote: | Admin Modules Tweak for Default Nuke Main Menu
for Google Tap - GT-NExtGeN_0.4 |
I can't believe I found those instructions...crazy. |
|
|
|
 |
|