ElkArte Community

Extending Elk => Addons => Topic started by: ahrasis on August 07, 2014, 08:23:58 am

Title: ROAM: Re-Organized Admin Menu
Post by: ahrasis on August 07, 2014, 08:23:58 am
ROAM: Re-Organize Admin Menu mod

- For ElkArte 1.0.x and 1.1 Beta x.
- Fully hook, no file modification.

1. Please do your own backup though every installation is backed up automatically.
2. This mod will reorganize admin menu with a little bit as a separate Modification & Theme menu is created.
3. Core Features, Package Manager, Modification Settings, Search Engine (if enabled) will be under the new Modification menu.
4. Theme, Smileys, Icons, Attachments & Avatars will be under the new Theme menu.
5. Report is now under Main, Mail is now under Main and Permissions is now under Maintenance.
6. Now more other mods friendly as will detect and display other mods menu.
7. You can now enable and disable it from the mod settings page.
8. This mod will bring you to the mod settings page upon its successful installation.
9. You can test it in lower version too as IMO it should work just fine. ;)


Thank you for using/testing it.


Yours friendly,
Abu Fahim Ismail.

BSD License. Feel free to modify accordingly but keep author's link if it is in there somewhere. ;)

(http://validator.w3.org/images/valid_icons/valid-xhtml10)  (http://jigsaw.w3.org/css-validator/images/vcss)

#Change Logs

@Version 1.2.6
- Cancel version 1.2.5.
- Reuse version 1.2.4 for 1.1 Beta 3 base.

@Version 1.2.5
- Make it work with 1.1 Beta 2.

@Version 1.2.4
- Restructuring directory and location.

@Version 1.2.3
- Missing language due to renaming the setting text.

@Version 1.2.2
- Fix reported issues in here (http://www.elkarte.net/community/index.php?topic=2404.msg15846#msg15846).

@Version 1.2.1
- Attempt to fix hook for not displaying other mod settings sub-menu.
- Re-organize file to my SOP.

@Version RC 1.2.0
- Now more other mods friendly as will detect and display other mods menu.
- You can now enable and disable it from the mod settings page.
- This mod will bring you to the mod settings page upon its successful installation.

@Version Beta 1.1.1
- Fully using hook.
- No more file modification. ;)

@Version 1.1
- Add theme
- Re-organize admin menu even more.

@Version 1.0
- Add modification menu
- Re-organize admin menu a bit.
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: Spuds on August 07, 2014, 10:06:12 am
Thanks for sharing  :D
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: Allan on August 07, 2014, 11:26:31 am
Any way possible to get a screenshot  ;)
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: ahrasis on August 07, 2014, 11:43:29 am
Picture added. Only a simple addon (named as modification menu) and pulling some from main and config menu to it.
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: Allan on August 07, 2014, 06:29:39 pm
I like it though, makes it much simpler. Which is a good thing.
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: emanuele on August 08, 2014, 03:34:57 am
Interesting, very interesting.

/me is tempted to steal it O:-)

I wonder what would you think (I mean for 1.1) of a section "Extending" (or something like that), with sub-entries:
core features (?)
package manager
addon settings
themes
current theme (?)
languages
That would group together all the admin pages that somehow are related to extend the "basic" features of ElkArte.

Does it make sense?
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: Jorin on August 08, 2014, 04:23:19 am
Oh, don't ask me, I would rearrange the whole admin center. :-[
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: emanuele on August 08, 2014, 04:38:16 am
/me points @Jorin to the features discussion board. O:-)

/me feels the topic could be split... well, let's see.
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: ahrasis on August 09, 2014, 10:10:58 am
It makes sense to me to arrange few items. But if you feel like rearranging more than that or everything, feel free... :)
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: ahrasis on August 11, 2014, 08:05:03 am
Re-organized admin menu even more in version 1.0.1. ;) Attached in OP but still no hook. :(
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: emanuele on August 11, 2014, 08:44:29 am
Interesting indeed! Nicely balanced. :)

Just one minor suggestion: to me "Search engines" doesn't fit very well under "Modification". A possible alternative could be "Languages" under Modification" and "Search engines" under "Configuration" if you want to keep the 4/5 items per menu, otherwise just "Search Engines" under "Configuration", making this one a 6 elements.
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: ahrasis on August 11, 2014, 08:51:12 am
Actually, I was not sure myself when organizing them. So just dump some menus to the other while creating another theme menu. I guess it should be under config menu. I will do that minor arrangement later. For the time being, I am still learning how to implement the "hook things" to the menu.
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: emanuele on August 11, 2014, 08:59:51 am
Quote from: ahrasis – Actually, I was not sure myself when organizing them.
LOL I understand!

Quote from: ahrasis – For the time being, I am still learning how to implement the "hook things" to the menu.
If you have any question feel free to ask! ;D
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: ahrasis on August 27, 2014, 08:04:45 am
@emanuele I think I am able to create a hook version for this mod now. But I will somebody to test it. I attached it in the first post.
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: emanuele on August 27, 2014, 05:29:17 pm
Looking at the code looks good! :)

Without entering too much into details (maybe you are not interested ;)), you may find interesting this function (http://www.elkarte.net/community/index.php?topic=831.msg5805#msg5805) for where you insert the new menus in the middle of the existing array.

Now just a couple of things because I'm picky and my mind is blowing apart for some code I'm writing, so I need some rest and write anything apart code is a good way to rest
[1][2].

Instead of integrate_pre_include you may want to try integrate_admin_include (I think the mod works only in the admin area, right?).
Or, alternatively, you could use:
Code: [Select]
$hook_functions = array(
'integrate_admin_areas' => 'ROAM_Buttons|ADMINDIR/ROAM.subs.php',
'integrate_general_mod_settings' => 'ROAM_Settings|ADMINDIR/ROAM.subs.php',
);
This way the file is loaded only when the hook is used. ;D

Oh, last bit, really a "technicality", for the way the code is organized, it would be better to have the file ROAM.subs.php in SUBSDIR and not ADMINDIR.
There is some documentation (see here (https://github.com/elkarte/Elkarte/wiki/Architecture)), but is not very "clear"... it should be expanded... one day. lol
Though, IIRC the menu is in Admin.controller.php, right? Yeah, then that may work as well. :)
Yeah... also read could be a good way and I have a couple of books next to the bed that I'm reading, so it may really be a good idea go and read something, but... hmm... no, better write. :P
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: ahrasis on September 01, 2014, 08:57:02 am
That is better I supposed. I will update this later.
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: ahrasis on October 18, 2014, 01:24:02 am
Updated. Now version 1.2.1.
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: ahrasis on January 15, 2015, 11:50:47 am
Addon updated to fix issue of mail settings not saving to database.

#Change Logs

@Version 1.2.2
- Fix reported issues in here (http://www.elkarte.net/community/index.php?topic=2404.msg15846#msg15846).
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: ahrasis on May 26, 2015, 11:10:24 pm
#Change Logs

@Version 1.2.3
- Missing language due to renaming the setting text.
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: meetdilip on May 27, 2015, 07:42:07 pm
Thank you @ahrasis
Title: Re: [ADDON] ROAM - Re-Organized Admin Menu
Post by: ahrasis on August 11, 2016, 04:21:05 am

#Change Logs

@Version 1.2.4
- Restructuring directory and location.
Title: Re: ROAM: Re-Organized Admin Menu
Post by: ahrasis on August 30, 2016, 01:48:00 am
#Change Logs

@Version 1.2.5
- Make it work with 1.1 Beta 2.
Title: Re: ROAM: Re-Organized Admin Menu
Post by: inter on August 30, 2016, 03:23:43 am
Maybe Search and Search Engines move to new Search box?
Title: Re: ROAM: Re-Organized Admin Menu
Post by: ahrasis on August 30, 2016, 04:28:57 am
Sure. I will look into it.
Title: Re: ROAM: Re-Organized Admin Menu
Post by: inter on August 30, 2016, 05:06:07 am
No, I changed my mind, sorry
Title: Re: ROAM: Re-Organized Admin Menu
Post by: Bloc on August 30, 2016, 12:34:49 pm
Nice addon. :)

What would be quite interesting is a personalized menu..in other words, re-arranging the items you used the most/recently in the first menu.
Title: Re: ROAM: Re-Organized Admin Menu
Post by: ahrasis on September 01, 2016, 12:42:11 am
Not as nice as Ultimate Menu (http://addons.elkarte.net/enhancement/Ultimate-Menu.html) by @live627, I believe.

To note, this admin menu is mainly for my own use but I extend this addon here so that others can benefit from it. But to catch the current click of the admin menu into a list of requently / recently used menu may be a little bit hard work for me as I am only using simple code to work this addon.  :-[

The latest version simply copies and overwrites the default admin menu code. Anyone should be able to modify this addon subs file to arrange the menu in accordance to their needs. It is the same as altering the admin controller file itself, except you don't do it in it.  :D

I may try something like Ultimate Menu, where user can customize the admin menu more easily, but that may be somewhere later.  ::)
Title: Re: ROAM: Re-Organized Admin Menu
Post by: ahrasis on November 01, 2016, 10:05:30 am
#Change Logs

@Version 1.2.6
- Cancel version 1.2.5.
- Reuse version 1.2.4 for 1.1 Beta 3 base.