News:

Wondering if this will always be free?  See why free is better.

Main Menu

Menu Order

Started by live627, January 16, 2010, 07:55:28 PM

Previous topic - Next topic

Stigmartyr

Quote from: farao25 on February 13, 2010, 07:04:05 PM
Nice mod
Everything works fine except from the fact i can't get it work with custom menu buttons (http://custom.simplemachines.org/mods/index.php?mod=1421). I see the custom menu buttons but i can't move them up/down. Is there any fix ?

Works for me, but if you're using javascript mode there aren't any links to move them around, you just grab a row and drag it.  Not sure if that's the problem.

SikLiFe


Love the mod, however it gives me thousands of log errors, works fine, but things are undefined so the mod needs to be finished, i hope this all works out soon, i could really use it!

this was my problem if you know how to fix it let me know thanks =]
http://www.simplemachines.org/community/index.php?topic=368230.0
A great breakfast is always the right answer.

live627

Woww.. six errors right after install

Notice: Undefined index: active_button in C:\wamp\www\smf\Themes\default\Packages.template.php (body_above sub template - eval?) on line 446
firstlevel" href=""
Notice: Undefined index: href in C:\wamp\www\smf\Themes\default\Packages.template.php (body_above sub template - eval?) on line 446
">

Notice: Undefined index: title in C:\wamp\www\smf\Themes\default\Packages.template.php (body_above sub template - eval?) on line 447
Notice: Undefined index: active_button in C:\wamp\www\smf\Themes\default\Packages.template.php (body_above sub template - eval?) on line 446
firstlevel" href=""
Notice: Undefined index: href in C:\wamp\www\smf\Themes\default\Packages.template.php (body_above sub template - eval?) on line 446
">

Notice: Undefined index: title in C:\wamp\www\smf\Themes\default\Packages.template.php (body_above sub template - eval?) on line 447

TheListener

http://www.xxxxx/index.php?action=admin;area=menu_order;edit=media
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/xxxxx/public_html/Sources/Subs.php
Line: 4434


Attachment supplied

live627

@Brack1: Fixed Subs.php attached

If anyone else has the same problem,

Code (Find) Select
foreach($menutitles as $key => $value) {

Code (Replace with) Select
if (!empty($menutitles)
{
foreach($menutitles as $key => $value)





I played with the menu looking for a way to quash those errors and found this code belowworks qquite well

Code (Find) Select
// end "Menu Order" edit //

Code (Add after) Select

foreach($context['menu_buttons'] as $key => $button)
if (empty($button['href'])) unset($context['menu_buttons'][$key]);


Oh, and it's in ./Sources/Subs.php

TheListener

Tried the attachment.

Gave me a whole page of errors.

Mainly timezone related ( didn't read the whole lot).

live627

Does the list of errors include active_button, title, href?

~DS~

I am not sure if the bugs you found and the code you posted fixed this issue...?
http://www.simplemachines.org/community/index.php?topic=364747.0#lastPost
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

live627

You were getting the exact samee errors as me. Did you try the code edit?

~DS~

Quote from: live627 on March 02, 2010, 10:02:39 PM
You were getting the exact samee errors as me. Did you try the code edit?
I can try, unfortunately, I use a dropdown list now.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

SikLiFe

Quote from: live627 on March 02, 2010, 10:02:39 PM
You were getting the exact samee errors as me. Did you try the code edit?

I'm getting the same errors now. all 3 of them, seemly only happends when guest view,


Apply Filter: Only show the error messages of this URL
http://www.**********.com/forum/index.php?board=20.0
Apply Filter: Only show the errors with the same message
8: Undefined index: title
Apply Filter: Only show the errors from this file
File: /home/****/****/forum/Themes/*****/MessageIndex.template.php (eval?)
Line: 335



A great breakfast is always the right answer.

the7thGhost

Hey,
Sorry it took so long to get to this, I've had a LOT of homework lately, and that always has to come before programming...

Try the attached mod and see if it fixes the problem; if it does, please let me know.

TheListener

Tried it on my test forum.

Had over 3 pages of errors.

the7thGhost

 :'( Are they all from after you installed this version of the mod? If they are, can I see a screenshot?

~DS~

Quote from: the7thGhost on March 04, 2010, 10:27:55 PM
:'( Are they all from after you installed this version of the mod? If they are, can I see a screenshot?
I don't mind giving you an admin test account if you want? I have a test site which shows some errors.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

SikLiFe

Quote from: the7thGhost on March 04, 2010, 09:36:24 PM
Hey,
Sorry it took so long to get to this, I've had a LOT of homework lately, and that always has to come before programming...

Try the attached mod and see if it fixes the problem; if it does, please let me know.


The errors only come when GUEST view..
A great breakfast is always the right answer.

the7thGhost

Version 0.2.2 released!
This should fix the errors people have been having.

Changelog:
15: Bugfix:         Errors in Error Log

For those of you who are having trouble with the Javascript, chmod (change permissions) /Theme_dir/scripts/menuorder.php to 644. It's probably 666 if it doesn't work. I'm not sure if this will fix the problem for everyone or not.

Download

SikLiFe

Seems to be working! Great job! Great mod!
A great breakfast is always the right answer.

the7thGhost

Quote from: siklife on March 05, 2010, 10:00:36 PM
Seems to be working! Great job! Great mod!
You're welcome. Shadow found a bug caused by one of my bugfixes, if you're having trouble with the Show/Hide buttons not showing the right text you'll want to download it.

~DS~

The issue had been fixed. Thanks Ghost.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Advertisement: