Advertisement:

Author Topic: Ultimate Menu  (Read 20956 times)

Offline live627

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,268
  • Gender: Male
  • Cat: Destroy!
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Ultimate Menu
« on: October 05, 2014, 12:45:11 PM »
Link to Mod

Ultimate Menu 1.0.2



Add custom buttons to the main menu within SMF

Introduction:

This allows custom buttons to be added to the main menu within SMF 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.

Compatibility notes:


License

Known issues:

  • Grandchild buttons cannot be added using 'before' or 'after'; not sure how to fix this
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,887
  • Gender: Male
  • Sapienti satis.
Re: Ultimate Menu
« Reply #1 on: October 05, 2014, 04:46:38 PM »
Nice. Perhaps too simple to use. :P
My Mods

Sugested that too. Hey ho. I'd link you to the original discussion but it's not visible to most people (seekrit team board stuff that is more dangerous than wikileaks).


Don't PM me for support! Use the appropriate support board!

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,576
  • Gender: Male
    • i30 Owners Club
Re: Ultimate Menu
« Reply #2 on: October 05, 2014, 05:09:51 PM »
What does it do?

Description doesn't give much away...


Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
Re: Ultimate Menu
« Reply #3 on: October 05, 2014, 05:47:44 PM »
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.

Offline Rumpa

  • Jr. Member
  • **
  • Posts: 191
  • Gender: Female
  • I Love My Love
    • rumpa.das.549 on Facebook
    • Rumpa on GitHub
Re: Ultimate Menu
« Reply #4 on: October 05, 2014, 05:53:25 PM »
very nice mod

Offline Gryzor

  • Sr. Member
  • ****
  • Posts: 746
  • Gender: Male
  • CPCwiki.eu - The Amstrad CPC Encyclopaedia!
    • CPCWiki
Re: Ultimate Menu
« Reply #5 on: October 06, 2014, 01:54:47 AM »
Indeed - what does it do??

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,921
  • Gender: Male
  • Busy mode is on.
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • ElkArte Malaysia
Re: Ultimate Menu
« Reply #6 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...

Offline Rumpa

  • Jr. Member
  • **
  • Posts: 191
  • Gender: Female
  • I Love My Love
    • rumpa.das.549 on Facebook
    • Rumpa on GitHub
Re: Ultimate Menu
« Reply #7 on: October 06, 2014, 03:29:57 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

Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
Re: Ultimate Menu
« Reply #8 on: October 06, 2014, 05:38:20 AM »
Nice but not really ultimate as it has the ability to add / edit custom menu but not default menu.

You mean edit default menu. that is nice idea

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

Offline Branko.

  • SMF Hero
  • ******
  • Posts: 3,330
  • Gender: Male
  • U zemlji slijepih, jednooki je kralj
    • SATForum
Re: Ultimate Menu
« Reply #9 on: October 06, 2014, 05:40:58 AM »
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.

Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
Re: Ultimate Menu
« Reply #10 on: October 06, 2014, 05:46:38 AM »
Like I said, the one part that makes this menu "ultimate" in my eyes, is the permissions. :)

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,921
  • Gender: Male
  • Busy mode is on.
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • ElkArte Malaysia
Re: Ultimate Menu
« Reply #11 on: October 06, 2014, 10:02:54 AM »
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.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: Ultimate Menu
« Reply #12 on: October 06, 2014, 10:03:34 AM »
Yes but actually doing it in the menu is actually quite important too.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,921
  • Gender: Male
  • Busy mode is on.
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • ElkArte Malaysia
Re: Ultimate Menu
« Reply #13 on: October 06, 2014, 10:04:52 AM »
Will give that a thought then.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: Ultimate Menu
« Reply #14 on: October 06, 2014, 10:10:22 AM »
Consider the equivalent: showing the admin button to everyone, that wouldn't look good, would it?
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,921
  • Gender: Male
  • Busy mode is on.
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • ElkArte Malaysia
Re: Ultimate Menu
« Reply #15 on: October 06, 2014, 10:15:05 AM »
Aah, but that wouldn't require permission actually except a simple hide to certain group.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: Ultimate Menu
« Reply #16 on: October 06, 2014, 10:17:58 AM »
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:
Code: [Select]
$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'));
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,921
  • Gender: Male
  • Busy mode is on.
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • ElkArte Malaysia
Re: Ultimate Menu
« Reply #17 on: October 06, 2014, 10:20:33 AM »
Aah, but that wouldn't require permission actually except a simple hide to certain group.
I forgot. This is permission. :)

Offline Blue-Suit

  • Semi-Newbie
  • *
  • Posts: 16
Re: Ultimate Menu
« Reply #18 on: May 17, 2015, 04:45:57 PM »
Quote
If 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!



Offline live627

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,268
  • Gender: Male
  • Cat: Destroy!
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: Ultimate Menu
« Reply #19 on: May 17, 2015, 06:50:27 PM »
Permissions are labelled as 'Allowed Groups'.
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein