Navigating the user preferences can be a bit difficult at times, especially for new users. This theme component allows to add several important setting links in the user pages and add custom user menu profile tab…
User pages menu links
This menu button is places in the user profile control buttons section.
Clicking on the menu item it will redirect to the desired field. To achieve this I’ve added an id attribute for each field which is same value as the [data-setting-name] attribute. So now we can use this as an anchor. Like: /u/username/preferences/profile#user-bio
You can inspect these with right click the setting title and check the id. In this case the setting value should be user-username. This setting is and optional field so leave it empty will redirect to page, not setting.
But I think we could go further, with the concept of altering the core/standard focus of the Avatar menu from Notifications (with a profile afterthought) to Profile + Notifications (what I think it should be). We do already have a Profile tab, but this isn’t very prominent:
Utilise the existing Profile tab on the Avatar menu
Put that tab up the top (i.e. where the edit icon for the quick profile links is now)
Allow the admin to customise the Profile tab’s menu
I guess the easy way would be to simply hide the existing Profile tab and recreate it using the TC. The Logout button is the only tricky bit, and might require a bit of code (there is an existing TC for that). The Online and Pause notifications bit are a bit fancy too.
Maybe it would be easier to shuffle the Tab and add / subtract from it though. What do you think?
That is a pretty damn good way to sort it! Keeps it clean and simple.
However, I would (quite strongly) prefer it all rolled into the one Profile tab, as Summary and Activity are both firmly Profile links too - and this ends up splitting the links relating to the user into two tabs a bit unnecessarily.
You can find in OP and you can also inspect it with right click the setting title and check it here the id. In this case the setting value should be user-username but I think I will make it optional field so that will be possible to redirect to page without adding setting.
I like that page-plan, because for that I use. Well, profile picture is another story.
I was afraiding that right click thingy Just because I work almost totally with words, I haven’t used my laptop since last may, I reckon. But no can do, it’s just and only my choise. I have a console on iPad, though. I just didn’t know what to looking for. Now I know. Thanks!
I’ve changed the buttons padding, use smaller font size to preferences sub items etc… so the items are less height then before and also I made it scrollable this tab content. I merge this now with some update…
This update hide the default Profile tab and adds a custom Profile tab in user menu with the ability to adds custom items under Preferences item and also can be adds custom items places before the Log Out button.
Custom Profile tab in user menu
Controlled by enabled_user_menu_tab setting.
hide default profile tab in user menu
adds custom profile tab in user menu to the top
the tab icon is changeable with the user_menu_tab_icon setting
adds custom items under preferences button
these items changeable with the profile_menu_preference_items setting
adds custom extra items before log out button
these items changeable with the profile_menu_extra_items setting
Settings
profile_menu_preference_items and profile_menu_extra_items the icon field is optional now.
profile_links and profile_menu_preference_items the setting field is optional now, which means it can adds links to redirect to page, not setting.