News:

SMF 2.1.2 has been released! Take it for a spin! Read more.

Main Menu

Menu Order

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

Previous topic - Next topic

live627

Link to Mod

Menu Order

Created By:
the7thGhost
(View my other mods)
Latest Version:
0.2.6
Languages:
Mod Bugtracker | Donate

Summary
Let's you rearrange the main menu buttons on the top of the page to show up in a different order, and change the text they have. For example, if you want to put "Help" after "Logout," or if you want to change "Home" to "Forum."

If the text of a certain buttons should not be changed, set it to "_no_change_". This will mainly be used when you have a button with dynamically changing text, like "My Messages".

Installing
The package manager should be used to install this mod. If for some reason that doesn't work, you can still do a manual install, but several files will need changed.

IMPORTANT: Older versions should be un-installed before installing a newer version! There is no upgrader. Don't worry, your settings will not be lost.

Support
Questions should be posted to the mod support topic. Anything that is a bug or feature request should be reported to the Mod Bugtracker.

Translations
Translators are wanted! If you know a language this mod does not support, please translate and post to the mod support topic. All languages are welcome!

$txt['menu_order'] = 'Menu Order';
$txt['menuorder_howsort?'] = 'How do you want to sort menu items?';
$txt['menuorder_sortbybuttons'] = 'Up/Down Buttons';
$txt['menuorder_sortbyjs'] = 'Javascript';
$txt['menuorder_hide'] = 'hide';
$txt['menuorder_show'] = 'show';
$txt['menuorder_edit'] = 'edit';
$txt['menuorder_up'] = 'up';
$txt['menuorder_down'] = 'down';
$txt['menuorder_save'] = 'Save';
$txt['menuorder_saveorder'] = 'Save Order';
$txt['menuorder_sortchanged'] = 'Menu sort method has been changed to "%s".';
$txt['menuorder_jssortsuccess'] = 'Menu item order has been saved.';
$txt['menuorder_hidesuccess'] = '"%s" has been hidden.';
$txt['menuorder_showsuccess'] = '"%s" is now visible.';
$txt['menuorder_renamesuccess'] = '"%s" has been renamed to "%s".';
$txt['menuorder_upsuccess'] = '"%s" has been moved up.';
$txt['menuorder_downsuccess'] = '"%s" has been moved down.';


Changelog
Numbers are bug IDs in the bugtracker
0.2.5
New Feature:    SMF 2.0 RC4 compatibility

0.2.4
20: Added Language: German
21: Added Language: Danish
22: Added Language: Italian

0.2.3
18: New Feature:    SMF 2.0 RC3 compatibility
16: Added Language: Spanish

0.2.2
15: Bugfix:         Errors in Error Log

0.2.1
12: Bugfix:         _no_change_ bug
11: Text:           Update Romanian text
10: Text:           Update Russian text
9:  Added Language: Arabic Translation

0.2
4:  New Feature:    Hide menu items
5:  New Feature:    Javascript menu sort
7:  Bugfix:         Dynamic menu item text doesn't show
8:  Added Language: Russian
3:  Added Language: Romanian

Files modified by Menu Order
Modified:
./Sources/Subs.php
./Sources/Admin.php
./Themes/default/languages/Modifications.english.php

New Files:
./Sources/MenuOrder.php
./Themes/default/MenuOrder.template.php
./Themes/default/scripts/menuorder.js
./Themes/default/scripts/menuorder.php

Optional:
./Themes/default/languages/Modifications.english-utf8.php
./Themes/default/languages/Modifications.english_british.php
./Themes/default/languages/Modifications.english_british-utf8.php
./Themes/default/languages/Modifications.arabic-utf8.php
./Themes/default/languages/Modifications.danish.php
./Themes/default/languages/Modifications.danish-utf8.php
./Themes/default/languages/Modifications.german.php
./Themes/default/languages/Modifications.german-utf8.php
./Themes/default/languages/Modifications.italian.php
./Themes/default/languages/Modifications.italian-utf8.php
./Themes/default/languages/Modifications.romanian.php
./Themes/default/languages/Modifications.romanian-utf8.php
./Themes/default/languages/Modifications.spanish_es.php
./Themes/default/languages/Modifications.spanish_es-utf8.php
./Themes/default/languages/Modifications.spanish_latin.php
./Themes/default/languages/Modifications.spanish_latin-utf8.php
./Themes/default/languages/Modifications.russian.php
./Themes/default/languages/Modifications.russian-utf8.php

KensonPlays

I can't find the option to edit them.

(first commenter! and 9th downloader!)

~DS~

#2
Perfect, love this mod. It makes a combo with Page Management mod.

However it needs some improvement...

1) Slow but can be better, simliar the way you can move the boards in SMF.
2) Have the option the hide them.

What happen if I uninstall it? Will it restore the order?
"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

-=[Vyorel]=-

Very nice mod.  ;) :o

Romanian
// begin "Menu Order" edit //
$txt['menu_order'] = 'Ordonare Meniu';
$txt['menuorder_edit'] = 'modifica';
$txt['menuorder_up'] = 'sus';
$txt['menuorder_down'] = 'jos';
$txt['menuorder_save'] = 'Salveaza';
$txt['menuorder_renamesuccess'] = '"%s" a fost redenumit in "%s".';
$txt['menuorder_upsuccess'] = '"%s" a fost mutat sus.';
$txt['menuorder_downsuccess'] = '"%s" a fost mutat jos.';
My mods for SMF - [6].

the7thGhost

#4
Quote from: Kcmartz on January 16, 2010, 11:43:06 PM
I can't find the option to edit them.
Admin section > Configuration > Menu Order

Quote from: Dismal Shadow on January 17, 2010, 03:19:59 AM
1) Slow but can be better, similar the way you can move the boards in SMF.
2) Have the option the hide them.

What happen if I uninstall it? Will it restore the order?
1) I thought about doing it that way, but it would take slightly longer to code, and personally, I don't really like that way. Perhaps in the future it will have both ways of moving.
2) Good suggestion, I'll implement it in a later version.
When you uninstall it it will revert to the original order.

Quote from: -=[Vyorel]=- on January 17, 2010, 04:55:54 AM
Romanian
Thanks for the translation, it will appear in the very next release.


I hope to have the next version out very soon, but with homework and other more important stuff, it might take a while. If it does I will just add the new language in the next release and that's it, save the other new features for 0.3 or later.

EDIT: The bugtracker now allows anonymous logins, you can see the status of your suggestions there if you wish. http://bugtracker.codematicaly.com/

ABCDiamond

Is there anything like this for v1.1.11 ?

SN


the7thGhost

Quote from: ABCDiamond on January 19, 2010, 08:09:30 AM
Is there anything like this for v1.1.11 ?
Not that I know of. I don't have plans to make a 1.1.x version unless a lot of people request it. Then I would have to spend time finding out how 1.1 works...

ABCDiamond

Quote from: the7thGhost on January 19, 2010, 07:07:52 PM
Not that I know of. I don't have plans to make a 1.1.x version unless a lot of people request it. Then I would have to spend time finding out how 1.1 works...
Pity.  Maybe I will have to look at v2...

kingkingston

This mod is pretty good,just a suggestion for future realeases,maybe add the ability to create tabs and rearange the links in certain catorgories or sections that you create,it might be a good addition so that users can make the link list look tidy and fancy :)

SN

i think it would be reallu hard to do it in 1.1.x

1.1.x uses index.template.php for buttons, and every theme has a index.template.php

2.0 uses subs.php for buttons and there is only one of them so its alot easier to do this on 2.0

Quote from: kingkingston on January 20, 2010, 03:17:53 AM
This mod is pretty good,just a suggestion for future realeases,maybe add the ability to create tabs and rearange the links in certain catorgories or sections that you create,it might be a good addition so that users can make the link list look tidy and fancy :)

would like to see that also

Stigmartyr

#11
Very great mod!  Very great.

However there is one major flaw:  When I am using Ajax Chat or Aeva Media gallery, the button that would normally display dynamic content such as Chat (#users) will no longer display the number of users.

Can you please give me some direction on how to make this work properly?

If not for that, I'd reinstall it.  :o

Bugo

Russian language files

Stigmartyr

Can anyone tell me why this mod does not respect dynamic behaviors for buttons?  As in my chat button should print the number of users (in text) when they're in chat, and my gallery will normally show number of new items.

When I use this mod, that behavior goes away.  Is there something that needs to be added for the Subs.php file perhaps?  Please help?

the7thGhost

Sorry it took so long for me to reply, I had a LOT of stuff going on the past few days.

Quote from: kingkingston on January 20, 2010, 03:17:53 AM
This mod is pretty good,just a suggestion for future realeases,maybe add the ability to create tabs and rearange the links in certain catorgories or sections that you create,it might be a good addition so that users can make the link list look tidy and fancy :)
I was thinking about that when I first made it, but decided to make it really simple to start with. I might put that into a future release.

Quote from: Stigmartyr on January 22, 2010, 11:17:07 PM
However there is one major flaw:  When I am using Ajax Chat or Aeva Media gallery, the button that would normally display dynamic content such as Chat (#users) will no longer display the number of users.
I'll look into it. Thanks for letting me know.

Quote from: Bugo on January 23, 2010, 01:27:00 AM
Russian language files
Thanks!

Stigmartyr

Tha
Quote from: the7thGhost on January 25, 2010, 06:45:26 PM

I'll look into it. Thanks for letting me know.


No problem - happy to help test it when you're ready.

the7thGhost

Version 0.2 released!

The bug reported by Stigmartyr is fixed, so far as I can tell.

You can now drag-and-drop the menu items by selecting "Javascript" mode. There is no handle to drag with, just drag anywhere.

Russian and Romanian language files are added, but I've doubled the amount of text in this version, so half is still in English... :P

As Dismal Shadow suggested, you can now hide menu items. When on the admin page all menu items are shown, regardless of whether they should be hidden or not. If you hide the admin page itself, just go to index.php?action=admin - the pages aren't disabled, just hidden from the menu.

KensonPlays


~DS~

#18
I must say, wow. This mod had potential and a must have mod for anyone who want to rename, move order and hide. Damn, I'm impressive. This make a great combo with "page mod" and "Site Menu"

One problem...the drag in drop doesn't work on my end with Javascript enabled.
"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

-=[Vyorel]=-

Romanian translate for SMF 2.0 RC2


$txt['menu_order'] = 'Ordonare Meniu';
$txt['menuorder_howsort?'] = 'Cum doriti sa ordonati meniul?';
$txt['menuorder_sortbybuttons'] = 'Butoane Sus/Jos';
$txt['menuorder_sortbyjs'] = 'Script java';
$txt['menuorder_hide'] = 'ascunde';
$txt['menuorder_show'] = 'arata';
$txt['menuorder_edit'] = 'modifica';
$txt['menuorder_up'] = 'sus';
$txt['menuorder_down'] = 'jos';
$txt['menuorder_save'] = 'Salveaza';
$txt['menuorder_saveorder'] = 'Salveaza Ordinea';
$txt['menuorder_sortchanged'] = 'Metoda de ordonare a meniului a fost schimbata in "%s".';
$txt['menuorder_jssortsuccess'] = 'Ordinea meniului a fost salvata.';
$txt['menuorder_hidesuccess'] = '"%s" a fost ascuns.';
$txt['menuorder_showsuccess'] = '"%s" este acum vizibil.';
$txt['menuorder_renamesuccess'] = '"%s" a fost modificat in "%s".';
$txt['menuorder_upsuccess'] = '"%s" a fost mutat sus.';
$txt['menuorder_downsuccess'] = '"%s" a fost mutat jos.';
My mods for SMF - [6].

Advertisement: