Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.3
Author Message
DrBullet
New Member
New Member



Joined: Jun 11, 2005
Posts: 2

PostPosted: Sat Jun 11, 2005 9:06 am Reply with quote

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:
Image

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!
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sat Jun 11, 2005 12:47 pm Reply with 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', '')");
 
View user's profile Send private message
DrBullet







PostPosted: Sat Jun 11, 2005 1:13 pm Reply with quote

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 Wink

Thx allot!!
Dr.Bullet
 
hitwalker







PostPosted: Sat Jun 11, 2005 1:17 pm Reply with quote

good luck...and dont forget the change you made.
and for other questions,just pick a forum and ask...
 
benson
Worker
Worker



Joined: May 15, 2004
Posts: 119
Location: Germany

PostPosted: Thu Jun 16, 2005 12:16 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website
hitwalker







PostPosted: Thu Jun 16, 2005 1:42 pm Reply with quote

yes i know,but its still in there so i have no clue....
 
lanny
New Member
New Member



Joined: Jul 27, 2005
Posts: 7

PostPosted: Wed Jul 27, 2005 12:58 pm Reply with quote

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
 
View user's profile Send private message
hitwalker







PostPosted: Wed Jul 27, 2005 1:23 pm Reply with quote

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







PostPosted: Wed Jul 27, 2005 4:37 pm Reply with quote

When I look at both codes they look the same what was changed

Lanny
 
hitwalker







PostPosted: Wed Jul 27, 2005 4:39 pm Reply with quote

The same huh....are you sure ?
Look again,or better just change the codes..
 
lanny







PostPosted: Wed Jul 27, 2005 7:49 pm Reply with quote

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







PostPosted: Sat Jul 30, 2005 3:00 pm Reply with quote

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
Involved



Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...

PostPosted: Sun Aug 21, 2005 1:41 pm Reply with quote

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
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
myrtletrees
Involved
Involved



Joined: Sep 13, 2005
Posts: 259
Location: Cornfields of Indiana

PostPosted: Tue May 08, 2007 8:13 am Reply with quote

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.
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.3

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©