SMF Development > Next SMF Discussion
Add menu button function
timetraveller:
First problem - can't find that bit of code.
Found two files in "Sources" directory. One labelled subs.php and the other subs.php~
I assume I need subs.php but when I pasted that first bit of code into the search box on TextPad it can't find it.
I'm using SMF 2.0.1 with a colour variant of Curve theme.
Labradoodle-360:
You should open up a new topic for your question in SMF Coding Discussion.
igirisjin:
Would be useful standalone and ... only a few portals have menu functions as well.
Language Menu
One thing I think should be added automatically to the menu is a language button with submenu items for each added language.
Cant believe how messy it is adding mod code all the time in different themes to get either a language button, drop down or flag. No other software is this bad ... that put me off SMF 5 years ago and it hasn't improved much.
Languages are automatically added in admin so why can't a menu items for them (in a list under languages). When a new (first) language is added a language menu button should be added with that language as a submenu item. Additional added languages being added to the language menu list.
Kindred:
Language does not belong in the main menu.....
Labradoodle-360:
Kindred is right...and it wouldn't be hard to add yourself. $context['languages'] is populated by getLanguages();, call getLanguages(); in the setupMenuContext(); function, and then use a loop to feed the languages into the menu array where you want.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version