Skip to main content
Topic: [ADDON] Ultimate Menu (Read 5515 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[ADDON] Ultimate Menu

Ultimate Menu 1.0



Add custom buttons to the main menu within ElkArte

Introduction:

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

Known issues:

  • Grandchild buttons cannot be added using 'before' or 'after'; not sure how to fix this

http://addons.ElkArte.net/enhancement/Ultimate-Menu.html

Re: [ADDON] Ultimate Menu

Reply #1
I suck at PHP so this will come in handy, thanks :)
I was hoping this would allow us to edit the current menu also but it's good enough.


Re: [ADDON] Ultimate Menu

Reply #3
Awesome addon! I'm sure this will be helpful to a lot of people wanting to just add a few links to their menus without diving into their theme code. Is it possible to also remove the built-in options with this addon?

Re: [ADDON] Ultimate Menu

Reply #4
Quote
Is it possible to also remove the built-in options with this addon?
No.

Re: [ADDON] Ultimate Menu

Reply #5
Nice stuff here too! :D
Bugs creator.
Features destroyer.
Template killer.



Re: [ADDON] Ultimate Menu

Reply #8
Tried to install it and get these error message:

Quote
Parse error: syntax error, unexpected '[' in /www/htdocs/w00f21f1/hp_elkarte/packages/temp/install.php on line 87

Line 87 is this:

Code: [Select]
foreach ($tables as $table)
$dbtbl->db_create_table('{db_prefix}' . $table['name'], $table['columns'], $table['indexes'], [], 'update');

Re: [ADDON] Ultimate Menu

Reply #9
Thats php 5.4 shorthand syntax, change the
Code: [Select]
 , [], 
to
Code: [Select]
 , array(),
Squish squish. squish, squish, squish.
Find a bug,
Make a wish.

Re: [ADDON] Ultimate Menu

Reply #10
Problem is that the same construct is used in the code as well, so it would not work unless all the instances are replaced or you @Jorin update to php 5.4.
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Ultimate Menu

Reply #11
Ah good to know, had not looked at the code ... if thats the only 5.4 stuff easy to change though.
Squish squish. squish, squish, squish.
Find a bug,
Make a wish.


Re: [ADDON] Ultimate Menu

Reply #13
Nice addon @live627