Add menu button function

Started by lurkalot, April 29, 2010, 01:01:47 PM

Previous topic - Next topic

lurkalot

One of the most asked questions on the forums seems to be, how do I add a button / tab to my menu.

It would be great if the functions off the two mods linked below were actually built into SMF 2.  I'm using both these mods on my RC3 install and it's so, so easy to add new buttons.   8)

Custom site menu

Menu order

Anyone else with me on this?

Ozzie

umm i wonder where u got that idea from  ;D ;D u know im with u on this

2000+ games available to download

Arantor

I agree, menu customisation would be good to build in.

At the same time you need to be moderately careful about doing it because modders can and do add interesting things into the menu bar; for example in SimpleDesk we dynamically add a number to the Helpdesk menu item, to represent the number of tickets that are open and that you probably need to look at.

Ozzie

These two mods individually are great i recommend them all the time to people it would be nice also to have one single mod which combines the functions of both as they work well together

2000+ games available to download

lurkalot

Quote from: OZZIE on April 29, 2010, 01:05:56 PM
umm i wonder where u got that idea from  ;D ;D u know im with u on this

Yep, thanks OZZIE for pointing those mods out to me. So nice not to have to mess about editing files just add a button. ;)

Arantor

What we really need is full blown menu manager, not just reordering things but full on management, really, also capable of dealing with custom items that aren't just simple tabs.

Ozzie

I totally agree Arantor maybe if enough people agree with this and respond to this thread  maybe it could be taken into consideration for the next release im sure everyone likes anything that makes life easy and this sure would

2000+ games available to download

Arantor

Well, when I was still on the team there was a discussion about what should be in 2.1 - and though that was months ago I don't believe this was on the list.

I know a really powerful mod was in development though.

Ozzie

Quote from: Arantor on April 29, 2010, 01:29:28 PM
Well, when I was still on the team there was a discussion about what should be in 2.1 - and though that was months ago I don't believe this was on the list.

I know a really powerful mod was in development though.


;D stop teasing we will all be on tenterhooks now trying to guess what this wonderful new mod may be

2000+ games available to download

Arantor

It's a menu management mod, that lets you rearrange the menu, add new items, assign permissions to view stuff. I don't know if it ever got finished though.

jani01

Quote from: Arantor on April 29, 2010, 01:35:38 PM
It's a menu management mod, that lets you rearrange the menu, add new items, assign permissions to view stuff. I don't know if it ever got finished though.

when this mod will be available ?


NanoSector

There is one mod that allows you to add one tab that is actually a link...I use it :)

http://custom.simplemachines.org/mods/index.php?mod=1402
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Arantor

Quote from: jani01 on May 11, 2010, 06:04:41 AM
when this mod will be available ?

When the author finishes it?

NanoSector

By the way, SMF For Free has a system that allows you to create as many tabs as you want...with URL redirection...

http://www.smfforfree.com/
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

nend

I don't see why the menu system was moved from the templates to the sources. Didn't solve a thing, bad idea IMHO.

I just don't get it, should of been in the DB and cached.

Arantor

Actually it solved one MASSIVE problem.

Look through the support boards for mods that add menu items to themes and see how often you have to do a theme edit by hand. For 1.1, EVERY SINGLE MOD that adds a custom button to a theme has to be done by hand. Without fail. Every time.

With 2.0, this pain is (virtually) gone because you add the button once in a single consistent place and invariably it's just done. There's still a few themes that hardcode the button list into the template but the vast majority don't, meaning that for a modder it's a ton simpler to add a menu item.

* Arantor speaks from bitter experience on this.

lurkalot

Any further thoughts on this idea?   :(

Norv

Does this suit the purpose?
http://custom.simplemachines.org/mods/index.php?mod=331

I believe that a more featured menu editor would be a very welcome addition as a (potentially official) mod. I'm not so sure about core integration. If it is useful enough, popular and considered suitable for core, it might (or not) be taken into account as optional feature too, in the future versions.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

JohnWayne999

Thanks for the links. I found a few other ones here:

"Adk Menu Buttons 1.0" (http://custom.simplemachines.org/mods/index.php?mod=3075) is compatible with SMF 2.0.1 but caution it failed at least these themes: WhiteBlacklbz, Totalblue, Prored, Optic, Inno, Everdream, Elegant, Astonished, 2011.
Note also this mod doesn't let you add button to the native menu of "Help", "Logout" etc. It adds a new panel of buttons just below innate menu.

"6 Custom buttons / tabs and menu's (upto 4)" gives you collapsable menus up the very top. http://custom.simplemachines.org/mods/index.php?mod=2657

"Custom Site Menu" is something similar. I think this one lets you add button to the innate menu (ie. adds additional buttons to "Help", "Logout" etc). http://custom.simplemachines.org/mods/index.php?mod=2259

"Menu Order" then lets you rearrange the order the innate menu buttons (eg. "Help", "Logout" buttons). http://custom.simplemachines.org/mods/index.php?mod=2348


By the way, does anyone know how to make their button open up into a new window? For example only one of my buttons is "Chatroom". I would like that button when pressed, to open a separate new window which runs Chatroom. How do I establish that? Now the buttons and menus are getting very complicated in SMF 2.x, I'm not sure if I want to go in and edit things manually, worried down the track it might interfere with other things. Is there a simpler solution? Thanks.

timetraveller

Are any of the mods listed here suitable for SMF 2.0.1?

All I'm looking for is to add one button in exactly the same style as existing menu so I can link back to the home page and to rename the current "home" button to "forum".

Advertisement: