Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: live627 on October 05, 2014, 12:45:11 PM

Title: Ultimate Menu
Post by: live627 on October 05, 2014, 12:45:11 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3674)

Ultimate Menu 1.0.3

(https://camo.githubusercontent.com/d7b0ca6383644d5ac81e234f8d2249b731a1407b/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d3030393939392e737667) (http://opensource.org/licenses/MIT) (https://camo.githubusercontent.com/2a1a6e30e9c6691019a3c4661d9e9ac284cf553b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c6976653632372f736d662d756c74696d6174652d6d656e752e737667) (https://github.com/live627/smf-ultimate-menu/issues) (https://camo.githubusercontent.com/fb3b584dc51c3159b8accbbd9a37f38d72f97b39/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6c6976653632372f736d662d756c74696d6174652d6d656e752e737667) (https://github.com/live627/smf-ultimate-menu/releases) (https://camo.githubusercontent.com/e03e24ac37094afa6d1d089fc32de8027e9b4988/687474703a2f2f696d672e736869656c64732e696f2f62616467652f50617950616c2d242d3030393936362e737667) (https://www.paypal.me/JohnRayes)

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)

Compatibility notes:


License

Known issues:

Title: Re: Ultimate Menu
Post by: Masterd on October 05, 2014, 04:46:38 PM
Nice. Perhaps too simple to use. :P
Title: Re: Ultimate Menu
Post by: Shambles on October 05, 2014, 05:09:51 PM
What does it do?

Description doesn't give much away...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FEuaK8cL.png&hash=a164f9d709d792edd94bba49534f77ca)
Title: Re: Ultimate Menu
Post by: Burke ♞ Knight 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.
Title: Re: Ultimate Menu
Post by: Rumpa on October 05, 2014, 05:53:25 PM
very nice mod
Title: Re: Ultimate Menu
Post by: Gryzor on October 06, 2014, 01:54:47 AM
Indeed - what does it do??
Title: Re: Ultimate Menu
Post by: Hj Ahmad Rasyid Hj Ismail 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...
Title: Re: Ultimate Menu
Post by: Rumpa 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
Title: Re: Ultimate Menu
Post by: Burke ♞ Knight 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
Title: Re: Ultimate Menu
Post by: Branko. on October 06, 2014, 05:40:58 AM
Yeah, something like Menu Button Manager (Kays) but this is bit different
Title: Re: Ultimate Menu
Post by: Burke ♞ Knight 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. :)
Title: Re: Ultimate Menu
Post by: Hj Ahmad Rasyid Hj Ismail 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.
Title: Re: Ultimate Menu
Post by: Arantor on October 06, 2014, 10:03:34 AM
Yes but actually doing it in the menu is actually quite important too.
Title: Re: Ultimate Menu
Post by: Hj Ahmad Rasyid Hj Ismail on October 06, 2014, 10:04:52 AM
Will give that a thought then.
Title: Re: Ultimate Menu
Post by: Arantor on October 06, 2014, 10:10:22 AM
Consider the equivalent: showing the admin button to everyone, that wouldn't look good, would it?
Title: Re: Ultimate Menu
Post by: Hj Ahmad Rasyid Hj Ismail on October 06, 2014, 10:15:05 AM
Aah, but that wouldn't require permission actually except a simple hide to certain group.
Title: Re: Ultimate Menu
Post by: Arantor 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'));
Title: Re: Ultimate Menu
Post by: Hj Ahmad Rasyid Hj Ismail 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. :)
Title: Re: Ultimate Menu
Post by: Blue-Suit 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 (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!


Title: Re: Ultimate Menu
Post by: live627 on May 17, 2015, 06:50:27 PM
Permissions are labelled as 'Allowed Groups'.
Title: Re: Ultimate Menu
Post by: Blue-Suit on May 18, 2015, 05:29:16 AM
Oh yeah I never saw this apologies
Title: Re: Ultimate Menu
Post by: Lord_Rius on May 25, 2015, 02:26:36 PM
Great plugin. Can you implement any way to insert icons (images) before button label? The only way i know is with html code before like this "<img align="absMiddle" src="imagelink"/> button label" but is a weird way and shortens the button text label.

You can't move same level child buttons.

Other thing, the plugin image in the admin > configuration drop down menu is missing and links to Themes/default/images/admin/umen.png.

And last thing, you can't use only numbers in button label (for example try to name a button with 1).

Sorry for my english.

Thanks.
Title: Re: Ultimate Menu
Post by: FireDitto on May 31, 2015, 04:24:02 AM
This modification would be outstanding if it allowed edit and removal of the default menu, and those buttons added by other mods. Would you please consider adding this ability?
Title: Re: Ultimate Menu
Post by: live627 on June 01, 2015, 02:25:25 AM
Such is on my agenda but I won't get to it for a while. Meanwhile, there is hope... (I checked, and that mod appears to play nicely)

This actually works very well with this mod

http://custom.simplemachines.org/mods/index.php?mod=2650 (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.[...]
Title: Re: Ultimate Menu
Post by: stormr on June 02, 2015, 12:13:25 PM
trying to figure something out here. I need this mod, and would like to use it, but I cant find it. I look under configuration, but theres nothing listed ultimate menu, in fact I looked in everything and no were is there an ultimate menu listed. I am using 2.0.7 and it said the package installed fine. Any ideas? it's not listed as something else right?
Title: Re: Ultimate Menu
Post by: The Wizard on November 19, 2015, 07:34:03 AM
I just tried this mod on 2.0.11 and it works great.  :) :) :) :) :)
I even have simple portal installed and there is no problem.

Someone should add this to SMF itself as it is a very useful mod! - Hint Hint...

Title: Re: Ultimate Menu
Post by: Kindred on November 19, 2015, 09:24:15 AM
not sure how well this works with a responsive theme, however....
Title: Re: Ultimate Menu
Post by: live627 on November 27, 2015, 07:32:54 PM
The menu interface or the admin backend or both? Which do you refer to?
Title: Re: Ultimate Menu
Post by: Kindred on November 27, 2015, 09:16:51 PM
The menu display converting to images or even shrinking down appropriately...
Title: Re: Ultimate Menu
Post by: live627 on November 29, 2015, 12:22:48 AM
what?
Title: Re: Ultimate Menu
Post by: Kindred on November 29, 2015, 11:25:01 AM
not sure how well this works with a responsive theme, however....
The menu interface or the admin backend or both? Which do you refer to?
The menu display converting to images or even shrinking down appropriately...
Title: Re: Ultimate Menu
Post by: live627 on November 29, 2015, 05:52:21 PM
Still unsure....

oh, you ask how it reactants t o the responsive mod when the window is small?
Title: Re: Ultimate Menu
Post by: Kindred on November 29, 2015, 06:44:14 PM
Yep... ;)
Title: Re: Ultimate Menu
Post by: Antes on November 29, 2015, 07:29:06 PM
Its weird actually button's class is
Code: [Select]
<span class="responsive_menu 43eea8e8ea25503a477a5443ff8292af-1448842693"></span>
But you can target it with
Code: [Select]
.responsive_menu.\34 3eea8e8ea25503a477a5443ff8292af-1448842693
Why you are using something like this to name its act ? Instead something like "um_<name-of-button>" or "ultmenu_<id-of-button>"
Title: Re: Ultimate Menu
Post by: live627 on November 29, 2015, 11:11:39 PM
I had to remove diacritics somehow.
Title: Re: Ultimate Menu
Post by: OCJ on January 27, 2016, 09:12:02 AM
Does this show sub-menu items on mobile devices?
I had to change from 'another' menu editor that wasn't displaying them.  I  only have pc access so quicker to ask here maybe.

Wondering if its theme related though - Redsy.
Andy
Title: Re: Ultimate Menu
Post by: live627 on January 27, 2016, 07:23:14 PM
Theme issue--Redsy might use its  own  menu which doesn't follow the standard. I  haven't checked.

Have a chat with the theme's author.
Title: Re: Ultimate Menu
Post by: OCJ on January 27, 2016, 10:42:56 PM
I installed the mod and added an extra menu item with the default theme set as Redsy. That seems to work ok. I just do not have a mobile device to see if the menu is working correctly (displaying submenu items on touch).
Title: Re: Ultimate Menu
Post by: live627 on January 29, 2016, 04:28:30 AM
Me neither

If it's like Reseller, then it's the same menu with a different style.
Title: Re: Ultimate Menu
Post by: OCJ on January 29, 2016, 11:54:11 PM
Redsy is a nice theme except for menu problems - other things with the menu are not working as they should. Not many decent looking themes that are responsive though.
Title: Re: Ultimate Menu
Post by: roza on January 31, 2016, 07:06:02 PM
Thanks for this mod. I've just installed it in my forum. It would be great if there is a option to use for names of buttons in forums with another languages than English. I mean the ability to add language strings instead of actual name.
Title: Re: Ultimate Menu
Post by: OCJ on February 02, 2016, 04:28:07 AM
FYI - might be useful to consider.

After problems with some of the new responsive themes - menus, I decided to dump them and go back to boring horrible curve theme.
Just keep things simple, so I thought....

I used this great (ultimate) menu mod but have you seen what the 'official' responsive default theme mod does to it?

All new menu items are replaced with question mark icons.

 >:(

I think the S should be dropped from SMF. Its anything but simple these days.
Title: Re: Ultimate Menu
Post by: aegersz on February 21, 2016, 01:35:19 PM
my apache error log is as follows:

File does not exist: /var/www/html/Themes/default/images/admin/umen.png, referer: http://forum.drugs-and-users.org/index.php?action=admin;area=packages;sa=install2;package=optv0.1.1.zip;pid=0

what and where is umne.png please ?
Title: Re: Ultimate Menu
Post by: Snrj on April 07, 2016, 05:32:47 PM
turkish translate pack
Title: Re: Ultimate Menu
Post by: Rock Lee on April 07, 2016, 08:45:59 PM
Very good work @live627 Here I leave the translation to the Latin Spanish I hope will be useful and can add!


Regards!
Title: Re: Ultimate Menu
Post by: badon on May 19, 2016, 05:55:45 AM
What do the "Active" and "Not Active" options for "Button Status" do?
Title: Re: Ultimate Menu
Post by: live627 on May 22, 2016, 03:42:57 AM
Active is enabled.
Title: Re: Ultimate Menu
Post by: aegersz on September 26, 2016, 05:43:54 AM
still can't find umen.png, this is a typical error in the apache log:

[Mon Sep 26 16:11:11 2016] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/html/Themes/default/images/admin/umen.png, referer: http://forum.drugs-and-users.org/index.php?action=admin

can anyone please attach it for me ? it's been bugging me for ages.
Title: Re: Ultimate Menu
Post by: skb on September 26, 2016, 06:12:17 AM
Here it is.
Title: Re: Ultimate Menu
Post by: aegersz on September 26, 2016, 06:23:20 AM
Wonderful ! Thank you, heaps  :)
Title: Re: Ultimate Menu
Post by: Xpresskonami on October 06, 2016, 01:47:52 AM
This mod actually work well. but I got an error

Code: [Select]
Strict Standards : Only variables should be passed by reference in /home/theweb/public_html/Sources/Subs-UltimateMenu.php on line 19
This error appear in a page. where I create any new file in my File manager name (Docs.php or promote.php) so I include the SSI into the page to show the Theme Header & Footer. Any solution plz
Title: Re: Ultimate Menu
Post by: OCJ on November 22, 2016, 08:42:59 AM
I think there is a bug with the permissions.

Some new groups cannot see menu items. They are allowed to see them and even checking all options does not display the menu item for that group.
Same in my theme and curve.

Title: Re: Ultimate Menu
Post by: wintstar on November 22, 2016, 09:28:10 AM
Is not a bug with the permissions.

open
Sources\Subs-UltimateMenu.php

find
Code: (php) [Select]
    if (end(explode(',', $modSettings['integrate_menu_buttons'])) != 'um_load_menu')replace with
Code: (php) [Select]
    If ($array = explode(',', $modSettings['integrate_menu_buttons']) != 'um_load_menu')
Title: Re: Ultimate Menu
Post by: OCJ on November 22, 2016, 06:56:58 PM
If the mod does not work as it should - mod permissions set to display but no display - then it is not working as intended and is a bug.

Whats the point of your code changes if the mod is working correctly?

Anyway, it does not work as it os supposed to when correctly installed on the latest version of SMF. I am now using another menu mod.
Title: Re: Ultimate Menu
Post by: Kindred on November 22, 2016, 08:44:52 PM
I don't think you read or understood what was posted.

Wintstar did not say that there was no bug... nor did he say that the mod worked correctly --- he indicated that the bug was not in the permissions and the code fix indicates what the issue actually was (or if you can't read code, just apply the fix and it all works, even without you understanding)
Title: Re: Ultimate Menu
Post by: wintstar on November 23, 2016, 01:50:42 AM
@Kindred, thats right. There is no problem with the permissions, but an error in the file Subs-UltimateMenu.php. The fix of the error I wrote in my above post. This is the only, I know, bug in this mod. This Bug always fill the error log, but does not make itself felt in the function.
Title: Re: Ultimate Menu
Post by: OCJ on November 23, 2016, 12:23:59 PM
Fact
The permissions dont work in this mod...

wintstar
Quote
Is not a bug with the permissions.

Fine, if the problem is elsewhere... the permissions still dont work in the mod - statement.



Title: Re: Ultimate Menu
Post by: wintstar on November 23, 2016, 03:24:46 PM
The error message, reported by you, has nothing to do with a bug of the permissions. I have so far no problems with the permissions. Have you assigned the menu point to the allowed groups, under "Allowed Groups: [Select permissions for each group]" in the area of Menu Settings?
Title: Re: Ultimate Menu
Post by: live627 on November 23, 2016, 04:04:29 PM
Try te fix in https://github.com/live627/smf-ultimate-menu/commit/524682f58d8ccabe017b698f608a7f511503cfce

I have no idea if this will even address the issue at hand...
Title: Re: Ultimate Menu
Post by: Alpay on March 02, 2017, 06:32:13 AM
Thanks for this mod.
Title: Re: Ultimate Menu
Post by: Westwegoman on October 03, 2017, 10:41:20 PM
I get the following at the top of my forum when installed.

Code: [Select]
Strict Standards: Only variables should be passed by reference in /Sources/Subs-UltimateMenu.php on line 19
It also changes the text on the portal page. Makes it larger in Simple Portal.
Title: Re: Ultimate Menu
Post by: petewadey on November 10, 2017, 05:20:14 AM
I'm looking to run an online shop that I would like to link to from my smf forum. I would like a button on the forum linking to my shop that only members can see. Would this mod do that for me?
Thanks
Pete
Title: Re: Ultimate Menu
Post by: BellGab.com on January 11, 2018, 09:22:24 PM
I get the following at the top of my forum when installed.

Code: [Select]
Strict Standards: Only variables should be passed by reference in /Sources/Subs-UltimateMenu.php on line 19
It also changes the text on the portal page. Makes it larger in Simple Portal.

I also have this error in my log.
Title: Re: Ultimate Menu
Post by: live627 on January 12, 2018, 02:35:43 AM
v1.0.1 has just been released which fixes the standards warning.
Title: Re: Ultimate Menu
Post by: Parmaster on January 12, 2018, 10:43:56 AM
 I get this error with the new version:

Code: [Select]
Parse error: syntax error, unexpected end of file in /www/Sources/Subs-UltimateMenu.php on line 205
Title: Re: Ultimate Menu
Post by: Aleksi "Lex" Kilpinen on January 12, 2018, 12:09:06 PM
I get this error with the new version:

Code: [Select]
Parse error: syntax error, unexpected end of file in /www/Sources/Subs-UltimateMenu.php on line 205
Same. Would seem like there's a problem with the package.
Title: Re: Ultimate Menu
Post by: Shambles on January 12, 2018, 12:17:20 PM
Yeah, Subs-UltimateMenu.php has a superfluous {

Code: (find) [Select]
if (strpos($hook, 'um_load_menu') !== false) {
{
remove_integration_function('integrate_menu_buttons', 'um_load_menu');
add_integration_function('integrate_menu_buttons', 'um_load_menu');
}

Code: (replace) [Select]
if (strpos($hook, 'um_load_menu') !== false)
{
remove_integration_function('integrate_menu_buttons', 'um_load_menu');
add_integration_function('integrate_menu_buttons', 'um_load_menu');
}


Title: Re: Ultimate Menu
Post by: BellGab.com on January 12, 2018, 09:26:23 PM
I got an HTTP 500 error with the new package.
Title: Re: Ultimate Menu
Post by: BellGab.com on January 13, 2018, 12:57:51 AM
anybody have a copy of the 1.0 package until the new one is fixed?
Title: Re: Ultimate Menu
Post by: SaltedWeb on January 13, 2018, 09:28:52 PM
anybody have a copy of the 1.0 package until the new one is fixed?
I have 1.0 if you want to PM me...
Title: Re: Ultimate Menu
Post by: BellGab.com on January 13, 2018, 09:57:02 PM
anybody have a copy of the 1.0 package until the new one is fixed?
I have 1.0 if you want to PM me...

will do...
Title: Re: Ultimate Menu
Post by: live627 on January 16, 2018, 10:05:42 PM
v1.0.2 fixes the parse error


All releases are public https://github.com/live627/smf-ultimate-menu/releases
Title: Re: Ultimate Menu
Post by: BellGab.com on January 19, 2018, 08:05:29 PM
v1.0.2 fixes the parse error


All releases are public https://github.com/live627/smf-ultimate-menu/releases

thanks.
Title: Re: Ultimate Menu
Post by: Tenebroso_MW on January 20, 2018, 04:39:48 PM
In responsive menu, the subforums do not work. Only the main button is activated, in case of sub menu, there are no options. therefore on mobile only the main menu. It is important because the responsive is necessary.


On the other hand my most sincere congratulations. Thank you very much. A great job.


Tenebroso
Saludos
Title: Re: Ultimate Menu
Post by: live627 on January 23, 2018, 03:19:53 AM
Do you mean the drop menus? Ultimate Menu isn't doing anything to the templates.
Title: Re: Ultimate Menu
Post by: Tenebroso_MW on January 23, 2018, 01:47:30 PM
Do you mean the drop menus? Ultimate Menu isn't doing anything to the templates.

Yes, I mean the drop-down menus, they work very well on the desktop. On the mobile, it does not open


Thanks for comment. In the mobile, only the main button works, it does not give options to open the submenu window. In desktop version it works great.


(https://k60.kn3.net/D/A/6/A/D/C/535.png)

(https://k60.kn3.net/F/E/6/4/6/F/A90.png)
Title: Re: Ultimate Menu
Post by: SaltedWeb on February 21, 2018, 01:41:47 PM
 I am not getting any errors and the menus can be created but the box for options is not there. Just a bank box. Creating a menu single items work just the options don't show up ??
I cant tell if any mods are interfering as it installs, can be completely uninstalled and can create a limit button for the menu that will work but no option.  Tried also removing all back ups from server as well as package folder no luck.
Title: Re: Ultimate Menu
Post by: aegersz on October 03, 2018, 09:03:29 PM
This mod simply stopped working so i uninstalled and reinstalled it to fix it.

weird ... any thoughts as to why this would happen ?
Title: Re: Ultimate Menu
Post by: Kindred on October 04, 2018, 10:49:40 AM
Well, things dont "just suddenly stop working"
That's not how computers work.

So, obviously, something changed... either you changed something that affected this mod or your host did.
Title: Re: Ultimate Menu
Post by: DavidA2 on October 12, 2018, 08:54:58 AM
I just installed this mod. It's very easy to use and does just what I needed it to. However, I have been notified by a few members that they cannot see the buttons that have been added. I added two buttons and have double checked the "Allowed Groups". Both buttons are allowed to ALL groups in my forum. The members that cannot see the buttons are members of one of those groups.

What else could it be?

Update...I just had one user tell me that they can see the buttons in Firefox, but not in IE.
Title: Re: Ultimate Menu
Post by: aegersz on October 12, 2018, 06:14:31 PM
Well, things dont "just suddenly stop working"
That's not how computers work.

So, obviously, something changed... either you changed something that affected this mod or your host did.

nothing that i can recall that i hadn't done before except some manual HTML additions to another directory.

Ha, you wouldn't believe the strange things that happen on my systems  ???
Title: Re: Ultimate Menu
Post by: live627 on October 16, 2018, 11:46:07 PM
I just installed this mod. It's very easy to use and does just what I needed it to. However, I have been notified by a few members that they cannot see the buttons that have been added. I added two buttons and have double checked the "Allowed Groups". Both buttons are allowed to ALL groups in my forum. The members that cannot see the buttons are members of one of those groups.

What else could it be?

Update...I just had one user tell me that they can see the buttons in Firefox, but not in IE.
Site link please? Would I be able to see those buttons if I look as a guest?
Title: Re: Ultimate Menu
Post by: DavidA2 on October 17, 2018, 08:41:47 AM
I just installed this mod. It's very easy to use and does just what I needed it to. However, I have been notified by a few members that they cannot see the buttons that have been added. I added two buttons and have double checked the "Allowed Groups". Both buttons are allowed to ALL groups in my forum. The members that cannot see the buttons are members of one of those groups.

What else could it be?

Update...I just had one user tell me that they can see the buttons in Firefox, but not in IE.
Site link please? Would I be able to see those buttons if I look as a guest?

Sorry. I know you don't sit by waiting to answer questions. But after not hearing anything for a few days, I bought and installed another menu mod that is working.
Title: Re: Ultimate Menu
Post by: live627 on October 17, 2018, 10:39:55 PM
as long as your problem is solved, it's all good.

:)
Title: Re: Ultimate Menu
Post by: Black Tiger on November 07, 2018, 09:42:37 PM
Just a little question. Is it possible to upgrade this mod to php 7.2 compatibility please?
It's working, but it's throwing this error in the logs:
Code: [Select]
8192: The each() function is deprecated. This message will be suppressed on further callson line 33 of SubsUltimateMenu.php.

It's only on that line, so maybe it can be easily fixed?

Or maybe by a temp fix I can do myself? This is line 33:
Code: [Select]
while (list ($key, $row) = each($db_buttons))I read that each() should be swapped out by foreach() but I can't just simply do that in this line otherwise the forum will turn blank. And I'm no coder.

So a mod upgrade or a little how to change this line would be very helpfull!
Title: Re: Ultimate Menu
Post by: live627 on November 07, 2018, 10:14:30 PM
Did you try

Code: [Select]
foreach ($db_buttons as list ($key, $row))
(I haven't tested this)
Title: Re: Ultimate Menu
Post by: Black Tiger on November 07, 2018, 10:31:52 PM
Thank you for the quick reply.

No I did not try that because I don't know anything about coding, I can just read it a tiny bit. :)

Unfortunately it did not work, when changing to the suggested line, the following error occurs:
Code: [Select]
Undefined offset: 1on line 33 also.
and the menu is not visible anymore.
Title: Re: Ultimate Menu
Post by: live627 on November 07, 2018, 10:55:15 PM
It's been so long since I wrote this that i forgot hew it works. :-[

Can you please try

Code: [Select]
foreach ($db_buttons as $key => $row)
Title: Re: Ultimate Menu
Post by: Black Tiger on November 08, 2018, 08:22:15 AM
Oh that's no problem, i also tend to forget how certain things work after a certain time. :)

It seems that this new line has done the trick, at this moment I don't see errors anymore and the menu is still working.

Thank you very much!!
Title: Re: Ultimate Menu
Post by: live627 on November 08, 2018, 02:35:06 PM
Excellent! I'll make a new release with this change.
Title: Re: Ultimate Menu
Post by: jsx on April 13, 2019, 09:25:38 AM
Hi live627

Where exactly can I see these lines in modification management?

Code: [Select]
$txt['admin_menu_desc'] = 'This page allows you to add and edit custom menu buttons.';

$txt['unchanged'] = 'Unchanged';

$txt['um_menu_edit_title'] = 'Edit Button';
Title: Re: Ultimate Menu
Post by: Kindred on April 13, 2019, 10:13:21 AM
one of the language files... probably modifications.english.php
Title: Re: Ultimate Menu
Post by: jsx on April 13, 2019, 02:20:09 PM
I know that these lines are in the file, but I can not see them in the modification settings.

(https://i.imgur.com/7ZtCS9r.png)
Title: Re: Ultimate Menu
Post by: Kiriakos GR on April 15, 2019, 06:24:21 AM
Just a little question. Is it possible to upgrade this mod to php 7.2 compatibility please?
It's working, but it's throwing this error in the logs:
Code: [Select]
8192: The each() function is deprecated. This message will be suppressed on further callson line 33 of SubsUltimateMenu.php.

Identical situation here too, my web-hosting provider updated to php 7.2  :(

Additionally I am also getting several log alerts about Subs.php lines, which I do not know if these are also related to this mod.
My forum this is unmodified since 2017 and up to date (regarding mod files or new settings)

Title: Re: Ultimate Menu
Post by: live627 on April 15, 2019, 08:09:33 PM
The latest is v1.0.3 which was supposed to fix that error about each().

Your extra logs are provably unrelated since this mod does not edit Subs.php. But I can still help  you.  Can you post them? I suspect that if you go  to php 7.1 they'll  go away.
Title: Re: Ultimate Menu
Post by: Kindred on April 15, 2019, 10:33:41 PM
Well, SMF itself is not compatible with 7 2
Title: Re: Ultimate Menu
Post by: Kiriakos GR on April 16, 2019, 03:59:14 AM
Solution which worked for me and advice which came from my web hosting provider =>  Any one using cPanel for web site management,  he may use MultiPHP manager module and select PHP 5.6  as default PHP engine for his website.

By that adjustment, entire SMF code and mod files, they do return in a lets called it as normality, and there is no more error logs. 
Title: Re: Ultimate Menu
Post by: Kiriakos GR on April 16, 2019, 04:28:57 AM
Your extra logs are provably unrelated since this mod does not edit Subs.php. But I can still help  you.  Can you post them? I suspect that if you go  to php 7.1 they'll  go away.

Thanks for you willingness to help.
My SMF installation this is in good standing position, but I will mention a small issue, possibly this could become a new idea for a new next mod.
At Package Manager -> Browse Packages   some installed mod packages, they appear as not installed.
I am now assuming that cleaning of database logs which I did a year ago, this caused the problem.
 
Therefore what it would help, this is a mod finding active installed packages and to register them back at Browse Packages   list as installed ones.

For now I am handling this problem by closing my eyes  :) 
All mod files I am using were tested back in 2017, and I do not install anything new since then.
 
Title: Re: Ultimate Menu
Post by: live627 on April 16, 2019, 07:38:19 AM
Manually clearing the log tables is a bad idea. The package log is only one of the possible symptoms. Another one is the unread lists. That might annoy your users.

That mod idea actually isn't feasible. The only way that SMF even remotely knows which packages are installed is through  log_packages. There's no other tracked system; mods can do anything and are quite different across authors. You could compare code from a mod package and your codebase and recompile your lists that way, but that is very brittle and unreliable for a machine because another mod might change the code. If using integration hooks: reverse compiling is easier because things do not change much; the list of functions to call is just that: lists. But a mod in practice usually stores several hooks. Best guesses would need to be made, and user input would be required every step of the way.

In short: don't  delete the package  log!

To illustrate: I have 90 mods installed and most of them won't uninstall, many dating back to 2011. Updating to  2.0.14/2.0.15 required me to manually move code. I even had to uninstall a mod. Maintaining a site through updates is hard.
Title: Re: Ultimate Menu
Post by: Kiriakos GR on April 16, 2019, 01:01:10 PM
To illustrate: I have 90 mods installed and most of them won't uninstall, many dating back to 2011. Updating to  2.0.14/2.0.15 required me to manually move code. I even had to uninstall a mod. Maintaining a site through updates is hard.

My SMF forum this is standing since may 2012 up to date, and I did manage to recover a scrabbled SMF omelette three times,  in the positive side of things all mod packages I am using they are useful and uninstall does not required.

I am using Ultimate Menu 1.0 and now I need to ask if there is any risk at activating this installer another one time, so this to register it self as installed mod?
Is there any risk of double entries ? 
Title: Re: Ultimate Menu
Post by: Kindred on April 16, 2019, 01:02:51 PM
yes. running the installer a second time almost definitely WILL result in duplicate code in a multitude of places.

this is why you don't ever do direct edits to the database.....
Title: Re: Ultimate Menu
Post by: Kiriakos GR on April 16, 2019, 01:13:40 PM
Editing (cleaning) of database manually this is unavoidable.

Some one forgot to implement even a setting this cleaning the database from what Users typed in the keyword search field, and many more.
   
Title: Re: Ultimate Menu
Post by: Arantor on April 16, 2019, 06:01:16 PM
Editing (cleaning) of database manually this is unavoidable.

Some one forgot to implement even a setting this cleaning the database from what Users typed in the keyword search field, and many more.
   

I haven’t cleaned my databases manually ever. Never had any problems.
Title: Re: Ultimate Menu
Post by: Kindred on April 16, 2019, 10:36:31 PM
Nor have i.

Kiriakos
Once again,  you have described some bizarre belief in something that is not backed by any reality.
Title: Re: Ultimate Menu
Post by: jsx on April 18, 2019, 03:04:16 AM
Polish translation.

@live627

Please put this translation in a modification. :)

I set the ManageUltimateMenu.polish.php file to ISO-8859-2, but Notepad++ detects the encoding as ANSI. Translation in this format is displayed correctly on the forum with ISO coding.
Title: Re: Ultimate Menu
Post by: Kiriakos GR on April 19, 2019, 12:52:58 PM
Nor have i.

Kiriakos
Once again,  you have described some bizarre belief in something that is not backed by any reality.

My reality explained with words will cost you 500 Euro paid upfront.
Title: Re: Ultimate Menu
Post by: Kindred on April 19, 2019, 03:42:57 PM
Sorry, Kiriakos -- If I want hallucinations, I can buy some drugs on the threes for 50 bucks.
Title: Re: Ultimate Menu
Post by: Arantor on April 19, 2019, 03:57:15 PM
Also, an evening out to see a world-famous comedian is cheaper than that.
Title: Re: Ultimate Menu
Post by: njtweb on May 21, 2019, 08:23:26 AM
Hopefully this is still supported.

How can you make the 1st level not do anything?

First level <-- Do nothing
 - Second level <-- Link
 - Third level <-- Link
etc.....
Title: Re: Ultimate Menu
Post by: Kindred on May 21, 2019, 03:41:12 PM
Why?

Having the first level do nothing is wasted space