You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 67 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Nuke7.0 Modules not showing FIX [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
simrin
Support Mod
Support Mod


Joined: Jul 17, 2003
Posts: 517

Location: In front of a computer, who wants to know

PostPosted: Mon Mar 01, 2004 11:38 am Reply with quoteBack to top

Let me offer a little bit of advice here.

First off. Those of you asking about mcid. This is not a standard phpnuke field. It stands for module category id and is only used if you are using some tweak or fix to break down your modules into categories. The new field that isn't being addressed is the mod_group which is the new value added to phpnuke in 7.0

Find in admin/modules.php
Code:

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


The above is the standard file release for v7.0, if you have modified or replaced your admin/modules.php it may look different

Now to make it work with the "standard" php nuke install change it to this
Code:
sql_query("insert into ".$prefix."_modules values (NULL, '$modl\
ist[$i]', '$modlist[$i]', '0', '0', '1', '0')", $dbi);


This fix also needs to be applied to blocks/block-Modules.php. The lines look identical.

Again note this will only fix the standard. Nothing more nothing less. Any modifications or custom menu tools you are using could make this fix unapplicable for your settings. I will be happy to answer any questions or address specific problems from specific custom installs (Menu tweak, sommaire, and so on) please PM for those questions and I will help you as I can. If applicable I will also post the response in the bug fix thread.

_________________
NC Support Mod

Are you there? No I am a figment of your imagination.

www.hostileguild.net
Find all posts by simrinView user's profileSend private messageSend e-mailVisit poster's website
loadedfish
Nuke Cadet
Nuke Cadet


Joined: Feb 06, 2004
Posts: 7


PostPosted: Mon Mar 01, 2004 4:38 pm Reply with quoteBack to top

Hopefully somebody can help me.

I've been having the same problem of not being able to add new blocks, and tried everything I've read to fix it, but so far no luck. Here is the view of mysql database:

Image

And here is the code lines that people keep talking about:

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


If anyone can help it would sure be appreciated.

Matt
Find all posts by loadedfishView user's profileSend private message
gear
Captain
Captain


Joined: May 14, 2003
Posts: 579

Location: Mid-Cities

PostPosted: Mon Mar 01, 2004 5:48 pm Reply with quoteBack to top

Now, you must cut me some slack, since I've just recently started playing Nuke, but...

You have the 4 numerical fields, divided by the url field (next time link to offsite image so I don't have to break out M$'s magnifier Shocked ). If you were to get really bold, try this in the /blocks/block-Modules.php file:

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


{edit} I am almost certain the above code is wrong for the block-Modules.php file -- read the following discussions {/edit}

The url field might have come from some addon or tw34k or something...but you do have the 4 numerical fields; albeit separated by the "alien" field.

g


Last edited by gear on Mon Mar 01, 2004 6:24 pm; edited 1 time in total
Find all posts by gearView user's profileSend private messageVisit poster's website
scottr
Support Staff
Support Staff


Joined: Apr 28, 2003
Posts: 511

Location: Southern California

PostPosted: Mon Mar 01, 2004 5:48 pm Reply with quoteBack to top

i think simrin answered it pretty good.
where's the confusion?
your table has 8 columns but your insert statement only inserts 7.
you need a ,'0' after the last NULL
just like he says above.

_________________
http://www.ierealtor.com/modules.php?name=Downloads&d_op=viewdownload&cid=2
IP Tracking (v3.5 latest version) and other nuke addons
Find all posts by scottrView user's profileSend private messageSend e-mailVisit poster's website
loadedfish
Nuke Cadet
Nuke Cadet


Joined: Feb 06, 2004
Posts: 7


PostPosted: Mon Mar 01, 2004 6:02 pm Reply with quoteBack to top

Thanks for the help, but unfortunately this didn't seem to work... I've replaced that line of code in admin/modules/modules.php as well as blocks/block-Modules.php and blocks/block-GT_Module.php.

I recently switched over to 7.0, this is so frustrating, any other ideas as to what is causing this?
Find all posts by loadedfishView user's profileSend private message
gear
Captain
Captain


Joined: May 14, 2003
Posts: 579

Location: Mid-Cities

PostPosted: Mon Mar 01, 2004 6:05 pm Reply with quoteBack to top

Durn, somebody replied before I truely finished checking things...

Searched simrins post for related material, found none... Question

Ok, I made a classic blunder: I copied things already posted.

This should be what you insert into that block-Modules file:

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


$modlist does not belong in there twice.

I apologize for perpetuating a problem -- in particular to Jeruvy...earlier in this topic (page 1) I said I followed the instructions almost to the letter. Apparently I did not -- in that I did not copy and paste the line from the post. Embarassed

g
Find all posts by gearView user's profileSend private messageVisit poster's website
loadedfish
Nuke Cadet
Nuke Cadet


Joined: Feb 06, 2004
Posts: 7


PostPosted: Mon Mar 01, 2004 7:07 pm Reply with quoteBack to top

Gear,

Thanks again for your help, but once again I have to admit defeat... I don't know what is wrong at this point. If you want I can post code for everything on my site, but it just seems that I'm missing something really basic. Unfortunately I'm not a php-genius, I just love the system so much I try to feel my way through it. If you have any suggestions, they would be most welcome.

Matt
Find all posts by loadedfishView user's profileSend private message
scottr
Support Staff
Support Staff


Joined: Apr 28, 2003
Posts: 511

Location: Southern California

PostPosted: Mon Mar 01, 2004 7:13 pm Reply with quoteBack to top

if you haven't made too many changes, just start over with a brand new nuke that has all that taken care of.

_________________
http://www.ierealtor.com/modules.php?name=Downloads&d_op=viewdownload&cid=2
IP Tracking (v3.5 latest version) and other nuke addons
Find all posts by scottrView user's profileSend private messageSend e-mailVisit poster's website
gear
Captain
Captain


Joined: May 14, 2003
Posts: 579

Location: Mid-Cities

PostPosted: Mon Mar 01, 2004 7:37 pm Reply with quoteBack to top

Hmmm, scott's suggestion makes sense.

The block to which you have referred could be causing some problems. You could delete the add-on block, vacate the table in question, and restore it to its default. Though a bit of an exersize, it is not difficult and requires only common sense and a good text editor to accomplish -- but beyond the scope of this text Razz .

g
Find all posts by gearView user's profileSend private messageVisit poster's website
ltcmdropie
Corporal
Corporal


Joined: Jan 27, 2004
Posts: 54


PostPosted: Sun Mar 07, 2004 1:40 pm Reply with quoteBack to top

Ok it worked but I just have a question,

What do the Table rows mean by that I mean the 0 1 2 3 what do the properties of each number mean ??

Thanks

Opie
Find all posts by ltcmdropieView user's profileSend private message
Kalletus
Nuke Cadet
Nuke Cadet


Joined: Jan 12, 2004
Posts: 4


PostPosted: Wed May 19, 2004 11:09 pm Reply with quoteBack to top

Well, i have try everything, but nothing works.

My nuke_modules looks like this:

mid|title|custom_title|active|view|inmenu|mcid|mod_group

And i think, that my script need to be like this:
Code:
sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '1', '0')", $dbi);


But that doesen't work.

Any help?
Find all posts by KalletusView user's profileSend private message
marcoledingue
Captain
Captain


Joined: Jun 15, 2003
Posts: 322

Location: Paris, FRANCE

PostPosted: Thu May 20, 2004 3:26 am Reply with quoteBack to top

if you're not using Tweak Modules anymore, delete the field 'mcid'.

this field was added by Tweak Modules. (and is only usefull to this addon)

_________________
Support website for Sommaire Paramétrable : http://marcoledingue.free.fr
Find all posts by marcoledingueView user's profileSend private messageVisit poster's website
madamx
Nuke Cadet
Nuke Cadet


Joined: Jun 19, 2003
Posts: 3


PostPosted: Tue Jul 20, 2004 1:55 pm Reply with quoteBack to top

nexusgroove wrote:


so all u have to do is fix this string
in my case' my string to work right is this, notice 5 #'s in my module.php
Quote:
sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0', '0')", $dbi);


and now it works fine.

and for the blocks/block_module same change
Quote:
$db->sql_query("INSERT INTO ".$prefix."_modules VALUES (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '1', '0')");


should be on line #96 in the script.


I have 4 tables in phpmyadmin nuke_modules active|view|inmenu|mod_group.

Line 47 of of admin/modules/modules.php looks like this:
Quote:
$db->sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0')");


Line 96 of blocks/blocks-Modules.php looks like:
Quote:
$db->sql_query("INSERT INTO ".$prefix."_modules VALUES (NULL, '$modlist[$i]', '$mod_uname', '0', '0', '1', '0')");


Any advice?

_________________
~Made with love~
Find all posts by madamxView user's profileSend private messageAIM Address
rizeandshine
Nuke Cadet
Nuke Cadet


Joined: Jul 17, 2003
Posts: 9


PostPosted: Fri Aug 20, 2004 12:04 pm Reply with quoteBack to top

madamx wrote:

I have 4 tables in phpmyadmin nuke_modules active|view|inmenu|mod_group.

Line 47 of of admin/modules/modules.php looks like this:
Quote:
$db->sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0')");


Line 96 of blocks/blocks-Modules.php looks like:
Quote:
$db->sql_query("INSERT INTO ".$prefix."_modules VALUES (NULL, '$modlist[$i]', '$mod_uname', '0', '0', '1', '0')");


Any advice?


Same here!

-R&S
Find all posts by rizeandshineView user's profileSend private message
wakeboarder
Sergeant
Sergeant


Joined: Nov 17, 2003
Posts: 95


PostPosted: Thu Sep 02, 2004 5:15 pm Reply with quoteBack to top

I have the same problem, I fixed my modules, but adding blocks doesnt work.

Im on nuke 7.4 patched
Find all posts by wakeboarderView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.326 Seconds - 344 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::