PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
DrBullet
New Member
New Member


Joined: Jun 11, 2005
Posts: 2

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

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 to the forums!
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Sat Jun 11, 2005 12:47 pm Reply with quote Back to top

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
New Member
New Member


Joined: Jun 11, 2005
Posts: 2

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

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



Joined:
Posts: 0

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

good luck...and dont forget the change you made.
and for other questions,just pick a forum and ask...
View user's profile Send private message
benson
Worker
Worker


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

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

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



Joined:
Posts: 0

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

yes i know,but its still in there so i have no clue....
View user's profile Send private message
lanny
New Member
New Member


Joined: Jul 27, 2005
Posts: 7

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

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
persona_non_grata



Joined:
Posts: 0

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

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', '')");
}
}
View user's profile Send private message
lanny
New Member
New Member


Joined: Jul 27, 2005
Posts: 7

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

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

Lanny
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

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

The same huh....are you sure ?
Look again,or better just change the codes..
View user's profile Send private message
lanny
New Member
New Member


Joined: Jul 27, 2005
Posts: 7

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

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



Joined:
Posts: 0

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

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


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

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

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
Worker
Worker


Joined: Sep 13, 2005
Posts: 140

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

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:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum