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

Main Menu

Menu Editor Lite

Started by Matthew K., March 06, 2012, 01:05:26 PM

Previous topic - Next topic


I coppied the PHP File to [nofollow]

However i then get

Database Error
Table 'tlsjumpn_smfv1.smf_menu_items' doesn't exist
File: /home/tlsjumpn/public_html/forum/Sources/menu_source/resources/main.php
Line: 62

Any ideas?


if you are still getting the error, then the script is not creating the database table....

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."


Yup still same  error.

Is there anything I can do?



manually create the tables in phpmyadmin?

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."

Matthew K.

Quote from: Chris.Aynsley on September 04, 2012, 02:06:37 AM
I have found a file called

menu_db_install.php when i extracted the zip file locally on my mac.

Not sure what you mean, do I upload that to the server, then run the php file?

Do i just run it in the root smf folder, eg,

Yep, that's exactly what you need to do :)

iain sherriff

worked straight from the box.

I was going to ask when Pro would be available but Lite really does what I need I think?

ANy update on pro anyway ?

thanks again......wonderfull Mod :)

Later................. having played a bit I would like
to be able to add children to buttons
to be able to select groups for buttons
SMF 2.0.12

Matthew K.

I don't plan on finishing the pro version any time soon...I'd need to have quite a few people lined up to purchase it. The time I'd spend would be more than my profit for the most part...

And thanks! You can add children and grandchildren in the lite version. Permissions and membergroups are part of Pro.


There is hardcoded text in main.template.php:
(Select Link Type)

Also, there is no space in hint (see attachment). It should be "No Children", isn't it?

Matthew K.

Thanks for catching the text...the NoChildren thing was probably a small typo with the variable concatenation.


I love this mod. But it messes up the default menu system in the smf4mobile theme (I have that enabled for use only on smartphones). Anyone know how to fix that?

Matthew K.

You have to give more details than that bro...and if it's a theme issue, it's exactly that. Talk to the theme author.


Gotcha. I'm a newbie at SMF. Thanks anyway!

Matthew K.

Not a problem...but feel free to give some more details, what exactly is happening?


Basically the smfmobile theme doesn't use the regular menu - in order to save space presumably - it "hardcodes" the menu items. i think that since menu editor lite replaces the standard menu functions, then somehow the theme can't call the menu properly? i'm not sure. but there is no array of menu buttons when MEL is installed.

here is a screenshot of the theme with "search, media, login, register" at the top:;sa=item;in=1 [nonactive]

here is the code that calls the menu in the index.template.php function:
function template_menu()
global $context;

echo '
<div data-role="navbar">

// This is a hardcoded list of buttons that can be shown
// The reason they are hardcoded is so that we do not show menu items that are not in the reach of this theme
$button_list = array('forum', 'search', 'login', 'register', 'logout', 'pm', 'media');
foreach ($context['menu_buttons'] as $id => $button)
if (in_array($id, $button_list))
echo '
<li><a href="', $button['href'], '"', $button['active_button'] ? ' class="ui-btn-active"' : '', '>', $button['title'], '</a></li>';
echo '

any insights would be very welcome!

Matthew K.

Ah...that's exactly why, good call. Try replacing $button_list = array('forum', 'search', 'login', 'register', 'logout', 'pm', 'media'); with: $button_list = array_keys($context['menu_buttons']);


interesting. that returned a lot of buttons! but too many! the purpose of that code was to reduce the amount of menu items on the mobile theme. making this change makes it so that half of the screen is taken up by menu buttons.

still, i like where this is going. very educational. but is there a way to just have the 'forum', 'search', 'login', 'register', 'logout', 'pm', 'media' buttons only? i don't understand why if this theme hardcodes the buttons that menu editor lite somehow disables them.

i understand that this might be outside the scope of this plugin, but i appreciate any help you can provide. it's such a crucial plugin but i also need the mobile theme.

many thanks!

Matthew K.

It really shouldn't be returning anything that's not on Menu Editor it?


That's exactly the point - swapping out the code produces a lot of buttons (menu items) - the same ones i have on the regular web theme. so your solution works fine, except that there's no room for so many buttons on the mobile theme.

what the mobile theme does is restrict the number of buttons (menu items) to the basic ones i mentioned. but for some reason menu editor lite interferes with the "hardcoding" (see comment in the original code) of the buttons, and the result is that with the original code in place, no menu items show at all. thus there's no way to log in or read private messages.

is there anything you see in the original code that would indicate a call to a function that menu editor lite disables?

thanks for your time and attention. very much appreciated.

Matthew K.

Oh, so you want the mobile theme to have even less menu items than your main theme?


yes, exactly. that's why the theme hardcodes the menu items - so that there are only a few. i'd love to have the entire menu editor lite menu on the mobile theme but it's just not feasible.

i'd love to be able to keep menu editor lite on the main theme while allowing the smf4mobile theme to keep just the indicated selection of menu items i mentioned before.

here is my site, for reference: [nonactive]