Location: In front of a computer, who wants to know
Posted:
Mon Mar 01, 2004 11:38 am
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
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.
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:
And here is the code lines that people keep talking about:
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 ). If you were to get really bold, try this in the /blocks/block-Modules.php file:
{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
scottr Support Staff
Joined: Apr 28, 2003
Posts: 511
Location: Southern California
Posted:
Mon Mar 01, 2004 5:48 pm
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.
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?
gear Captain
Joined: May 14, 2003
Posts: 579
Location: Mid-Cities
Posted:
Mon Mar 01, 2004 6:05 pm
Durn, somebody replied before I truely finished checking things...
Searched simrins post for related material, found none...
Ok, I made a classic blunder: I copied things already posted.
This should be what you insert into that block-Modules file:
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.
g
loadedfish Nuke Cadet
Joined: Feb 06, 2004
Posts: 7
Posted:
Mon Mar 01, 2004 7:07 pm
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
scottr Support Staff
Joined: Apr 28, 2003
Posts: 511
Location: Southern California
Posted:
Mon Mar 01, 2004 7:13 pm
if you haven't made too many changes, just start over with a brand new nuke that has all that taken care of.
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 .
g
ltcmdropie Corporal
Joined: Jan 27, 2004
Posts: 54
Posted:
Sun Mar 07, 2004 1:40 pm
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 ??
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