News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Ultimate Menu

Started by live627, October 05, 2014, 12:45:11 PM

Previous topic - Next topic

live627

Link to the mod

Ultimate Menu

Tests Code Coverage Scrutinizer Code Quality MIT license Latest Version Support

Package name SMF version Minimmum PHP version
Ultimate Menu 1.1.4 SMF 2.0.x PHP 5.3
Ultimate Menu 2.0.0 SMF 2.1.x PHP 7.4

View changelog

Add custom buttons to the main menu within SMF

Introduction:

This is a tool for configuring the main menu within SMF, allowing custom buttons to be added at will, complete with children and grandchildren menus (so, a main menu item, a dropdown and a follow-on dropdown)

  • Setup this mod at Administration Center » Configuration » Ultimate Menu.
  • Should "just work" with all other mods that add their own buttons, such as portals.
  • Dynamic by design—any menu button can change its text without a problem—no special code required.
    • Does not remove the unread PM counter from the "PM" menu item.

Compatibility notes


Masterd

Nice. Perhaps too simple to use. :P

Shambles

What does it do?

Description doesn't give much away...


Burke ♞ Knight

Great job!
I love the ability to set which groups can see which buttons. :)

However, would be nice to be able to edit and/or remove the default menu items.

Rumpa


Gryzor

Indeed - what does it do??

Hj Ahmad Rasyid Hj Ismail

Nice but not really ultimate as it has the ability to add / edit custom menu but not default menu. But I like the idea of menu placement. I might steal this idea. Heh heh heh...

Rumpa

Quote from: ahrasis on October 06, 2014, 01:59:28 AM
Nice but not really ultimate as it has the ability to add / edit custom menu but not default menu. But I like the idea of menu placement. I might steal this idea. Heh heh heh...

You mean edit default menu. that is nice idea

Burke ♞ Knight

Quote from: ahrasis on October 06, 2014, 01:59:28 AM
Nice but not really ultimate as it has the ability to add / edit custom menu but not default menu.

Quote from: Rumpa on October 06, 2014, 03:29:57 AM
You mean edit default menu. that is nice idea

Isn't that what I said in reply #3? LOL :P

Branko.

Yeah, something like Menu Button Manager (Kays) but this is bit different
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Burke ♞ Knight

Like I said, the one part that makes this menu "ultimate" in my eyes, is the permissions. :)

Hj Ahmad Rasyid Hj Ismail

Permission is not that difficult at all. I was wondering why permission to menu button is necessary since if you wanna protect access, you protect the action, sub-action or the template itself. If that are protected, that you can just extend it to the menu button. Not the other way around.

Arantor

Yes but actually doing it in the menu is actually quite important too.

Hj Ahmad Rasyid Hj Ismail

Will give that a thought then.

Arantor

Consider the equivalent: showing the admin button to everyone, that wouldn't look good, would it?

Hj Ahmad Rasyid Hj Ismail

Aah, but that wouldn't require permission actually except a simple hide to certain group.

Arantor

If only there were true, which it isn't.

The menu button out of the box is declared visible based on $context['allow_admin']. If you think this is 'user is admin' or even allowedTo('admin_forum'), you'd be rather surprised to note that it in fact is declared as follows:
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));

Hj Ahmad Rasyid Hj Ismail

Quote from: ahrasis on October 06, 2014, 10:15:05 AM
Aah, but that wouldn't require permission actually except a simple hide to certain group.
I forgot. This is permission. :)

Blue-Suit

QuoteIf you currently have any version of any menu editor installed, make sure to uninstall it first!! If you don't do it, Ultimate Menu simply will not work. Or all would appear to be normal on the surface and the conflicts lurk in the shadows waiting to roar. rOAr! And eat you.

This actually works very well with this mod

http://custom.simplemachines.org/mods/index.php?mod=2650

I have had these mods running on a localhost server connected via a static IP for two weeks now and there are no conflicts and my error logs including my Apache and php logs are clean.

I noticed a discussion about permissions but this is no issue to me as I use SMF as a dedicated forum and WP for everything else so all my menu links feed back and forth from SMF to WP, So even when I am signed out of SMF the menu just feeds back to wp.. Horses for courses I would say.

By using these two mods together I removed  all the buttons and re did my menu with your mod.  This has allowed me to seamlessly integrate WP and SMF with (WP2SMF) to make it look like AS ONE! Onc I decide which header to use and what colour

Simple it may be, permissions it may not have, but it does the job for me!!

All I have to do now is sort out my mail system and I can go live

Thank you!



live627

Permissions are labelled as 'Allowed Groups'.

Advertisement: