Ultimate Menu

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

Previous topic - Next topic

manudevil

I uninstalled the plugin, keeping data, and reinstalled it. The buttons reappeared.

live627

Quote from: manudevil on February 14, 2024, 05:50:56 PMHello !

I used Ultimate Menu on my forum, SMF 2.1.4. Last week, it stopped working. No additional button anymore...
When I try to add a button, I got a message :
Field 'slug' doesn't have a default value
Fichier: /homepages/XXXXX/forum/Sources/Class-UltimateMenu.php
Ligne: 327

What can be done ?

Thank you.
that's a field left from older version

Kindred

Quote from: manudevil on February 14, 2024, 05:50:56 PMHello !

I used Ultimate Menu on my forum, SMF 2.1.4. Last week, it stopped working. No additional button anymore...
When I try to add a button, I got a message :
Field 'slug' doesn't have a default value
Fichier: /homepages/XXXXX/forum/Sources/Class-UltimateMenu.php
Ligne: 327

What can be done ?

Thank you.

Do. Give it a default value... that error has been asked and answered about a thousand times since mysql started requiring a default years ago
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

CreativeITWorld.com

Quote from: CreativeITWorld.com on August 03, 2023, 08:46:33 AMOnce you get beyond 20 entries, the risk of failure worsens. When one entry fails, it effects other entries in a cascade. The answer is to Activate all of the failed entries, but the problem is that they are now on two pages and it becomes impossible to activate them all. Try one at a time? Works for a bit and then another failure.

I gave up, read through the files in the Zip, and I solved the problem:

Sources/ManageUltimateMenu.php
Line 48: 'items_per_page' => 20,


Change it to 'items_per_page' => 100,

Then just activate everything and it all works again without fail.

Quote from: live627 on August 08, 2023, 07:19:12 PMI feel like this is déjà vu and that I might have already fixed this. Which version of the menu mod is this?

Using the latest version, which at this moment is Ultimate Menu v2.0.2.

Even if this wasn't an issue, having all the menu entries on a single page would still make it easier to manage.

live627

Where are the failures? How do they occur? Can you post a screenshot?

grega

Can one specify custom icons for each entry?

davo88

Quote from: gregaCan one specify custom icons for each entry?
gega - see here. I tried it and it works fine.

davo88

v2.1.4
I am getting just to know UM and notice there are some menu items that appear in the configuration dropdown that do not appear on the SMF main menu - 'Log In', 'Log Out' and 'Sign Up'.

You cannot view this attachment.
Are these hidden menu items able to be turned on anywhere? Or removed from this dropdown?

As I plan to add 'Log In' and 'Log Out' buttons using UM, it gets a bit confusing with two sets of buttons with the same name.
If I pick the wrong one as a reference position (before, after), it generates errors. So any information that can help me understand these three buttons appearing in the dropdown much appreciated.

Viper013

SMF 2.1.4.
Ultimate Menu 2.0.2
-----------------------------------------------

Hello @live627,

i created an additional button "My Messages" in the main menu.

Now when I receive a new message, it is marked with a counter in the header section "My Messages".

How can I display this counter also in the created button in the main menu ?

See also picture attachment.


Thank you very much for your effort.


Greetings
Steffen

davo88

Not sure if this is a bug, but there doesn't seem to be a way to create a link to a board. eg ...board,123.0.html.

A board URL looks like this 'https://www.forum_name.com/index.php/board,123.0.html' - there is no question mark after index.php.

So if you set the link to be 'board,123.0.html', UM issues a URL 'https://www.forum_name.com/index.php?board,123.0.html' which doesn't work.

Kindred

That's because you are using the old, outdated, and useless setting that says "seo friendly urls"


Those are URLs that were needed 15 years ago. They remove things like the ?, the =, etc and add the .html.

They are not needed anymore, because search engines understand dynamic URLs now.

Unfortunately  the setting still exists and it causes issues with some mods, that depend on the standard url format
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

davo88

Quote from: Kindred on June 09, 2024, 04:13:30 PMThat's because you are using the old, outdated, and useless setting that says "seo friendly urls"
No, I am not using "seo friendly urls".

You cannot view this attachment.
Are you able to link to a board?

Kindred

If your URLs end in .html, then your system IS using them,  regardless of that checkbox
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

davo88

OK, I will look into it further.

live627

Does it work if you try board=123?

davo88

Sorry for the delay, broke my foot in two places yesterday.

@Kindred ... Yes, you are right. Thanks for spotting those pretty URL's. Couldn't find anything that would create them in the other mods installed. But did learn that another admin had been building test sitemaps with and without pretty URL's. So our tests must have overlapped and I copied pretty URL's instead of the standard ones. I was wondering why they looked different to the standard format, but didn't know it was the pretty format. Interestingly, the little help window of the 'Search engine friendly URLs' setting says 'This feature will not work on your server'. But it seems it does.

@live627 ... Yes 'board=123.0' works fine. All OK now. Thanks.

manudevil

Quote from: davo88 on June 11, 2024, 04:22:47 PMSorry for the delay, broke my foot in two places yesterday.
Ow... Sorry to hear that. Get better.  :-\

oldnick

@live627 I install the mod. Everything goes without errors. The only thing is that at the end instead of letters there are question marks in diamonds - the encoding of the ManageUltimateMenu.russian.php file is in ANSI 1251. The problem is solved by changing it to UTF-8.
I go to the settings, add a menu item, turn it on, but it is not displayed in the menu field.
Before installing Ultimate Menu (UM), I installed SMF Menu Button With Boards List (MB). The latter does not allow adding external links to the menu. Having realized this, I installed UM in parallel. Assuming that these two mods conflict, I deleted MB. But the new item that UM added in the settings still did not appear in the menu.

After reading message #200 in this thread, I decided also to try reinstalling the mod with saving the settings in the DB. After reinstalling, the newly added menu item appears for 5 seconds after installing the mod before the browser opens the UM settings page.
How can I solve the problem?

Translation:
Устанавливаю мод. Все проходит без ошибок. Единственное, что в конце вместо букв появляются знаки вопросов в ромбиках – кодировка файла ManageUltimateMenu.russian.php в ANSI 1251. Решается проблема исправлением ее на UTF-8.
Захожу в настройки, добавляю пункт меню, включаю его, но он не отображается в поле меню.
До установки Ultimate Menu (UM) устанавливал SMF Menu Button With Boards List (MB). Последний не позволяет добавлять в меню внешние ссылки. Поняв это, параллельно установил UM. Предположив, что эти два мода конфликтуют, удалил MB. Но в меню все равно не появился новый пункт, который добавил в настройках UM.
Прочитав в данной ветке сообщение #200, решил попробовать также переустановить мод с сохранением настроек в БД. После переустановки – добавленный новый пункт меню появляется на время паузы после установки мода и перехода к его настройкам и исчезает, как только происходит переход.
Как можно решить такую ошибку?

oldnick

UPDATE: the issue was in hooks.
I'm a newbie into hooks, I don't know how they work.
What I did:
1. I exported smf_settings from DB.
2. Replaced every ('integrate_menu_buttons', 'gallery_menu_buttons'), with ('integrate_menu_buttons', 'gallery_menu_buttons,um_load_menu'), in the downloaded file from (1).
3. Saved the file.
4. Imported back to the DB.

After that a new entry in the hooks table appeared on index.php?action=admin;area=maintain;sa=hooks;

Before (1):
You cannot view this attachment.

After (4):
You cannot view this attachment.

Advertisement: