Skip to main content
Topic: Linktree and Dropmenu arrows.. (Read 16162 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Linktree and Dropmenu arrows..

Reply #60

I'd rename "staff" to "manage" and "personal" with the members display name  8)
Apart from that I love it  :) It's modern and way better organized.
Thorsten "TE" Eurich
------------------------

Re: Linktree and Dropmenu arrows..

Reply #61

You can do that on your site. You have access to the admin language string editor. ;)

My 2c: I'd prefer "Staff" and "Personal". I don't need my name on the tab, and it would feel weird. Sorta like talking to yourself or something. Kinda nutty. I'd be thinking "No I'm not there. I'm here and looking at that imposter which is only button but thinks it's me". :D

Personal fits better IMO, because it's my personal stuff (Pm's and profile).

Or, we could use the title I suggested back at SMF once: My Shiznit instead of My Messages.

BTW, current array code looks like this:

Code: [Select]
	// All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
$buttons = array(

'logout' => array(
'title' => $txt['logout'],
'href' => $scripturl . '?action=logout;%1$s=%2$s',
'show' => !$user_info['is_guest'],
'sub_buttons' => array(
),
),
'home' => array(
'title' => $txt['community'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),
'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),
'calendar' => array(
'title' => $txt['calendar'],
'href' => $scripturl . '?action=calendar',
'show' => $context['allow_calendar'],
'sub_buttons' => array(
'view' => array(
'title' => $txt['calendar_menu'],
'href' => $scripturl . '?action=calendar',
'show' => allowedTo('calendar_post'),
),
'post' => array(
'title' => $txt['calendar_post_event'],
'href' => $scripturl . '?action=calendar;sa=post',
'show' => allowedTo('calendar_post'),
'is_last' => true,
),
),
),
'memberlist' => array(
'title' => $txt['members_title'],
'href' => $scripturl . '?action=memberlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
'mlist_view' => array(
'title' => $txt['mlist_menu_view'],
'href' => $scripturl . '?action=memberlist',
'show' => true,
),
'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=memberlist;sa=search',
'show' => true,
'is_last' => true,
),
),
),
),
),

'admin' => array(
'title' => /*$context['allow_admin'] ? $txt['admin'] : $txt['moderate']*/'Staff',
'href' => $context['allow_admin'] ? $scripturl . '?action=admin' : $scripturl . '?action=moderate',
'show' => $context['allow_moderation_center'],
'sub_buttons' => array(
'admin_center' => array(
'title' => $txt['admin_center'],
'href' => $scripturl . '?action=admin',
'show' => $context['allow_admin'],
),
'featuresettings' => array(
'title' => $txt['modSettings_title'],
'href' => $scripturl . '?action=admin;area=featuresettings',
'show' => allowedTo('admin_forum'),
),
'packages' => array(
'title' => $txt['package'],
'href' => $scripturl . '?action=admin;area=packages',
'show' => allowedTo('admin_forum'),
),
'permissions' => array(
'title' => $txt['edit_permissions'],
'href' => $scripturl . '?action=admin;area=permissions',
'show' => allowedTo('manage_permissions'),
),
'errorlog' => array(
'title' => $txt['errlog'],
'href' => $scripturl . '?action=admin;area=logs;sa=errorlog;desc',
'show' => allowedTo('admin_forum') && !empty($modSettings['enableErrorLogging']),
),
'moderate_sub' => array(
'title' => $txt['moderate'],
'href' => $scripturl . '?action=moderate',
'show' => $context['allow_admin'],
'is_last' => true,
'sub_buttons' => array(
'reports' => array(
'title' => $txt['mc_reported_posts'],
'href' => $scripturl . '?action=moderate;area=reports',
'show' => !empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1',
'is_last' => true,
),
'modlog' => array(
'title' => $txt['modlog_view'],
'href' => $scripturl . '?action=moderate;area=modlog',
'show' => !empty($modSettings['modlog_enabled']) && !empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1',
),
'attachments' => array(
'title' => $txt['mc_unapproved_attachments'],
'href' => $scripturl . '?action=moderate;area=attachmod;sa=attachments',
'show' => $modSettings['postmod_active'] && !empty($user_info['mod_cache']['ap']),
),
'poststopics' => array(
'title' => $txt['mc_unapproved_poststopics'],
'href' => $scripturl . '?action=moderate;area=postmod;sa=posts',
'show' => $modSettings['postmod_active'] && !empty($user_info['mod_cache']['ap']),
),
'postbyemail' => array(
'title' => $txt['mc_emailerror'],
'href' => $scripturl . '?action=admin;area=maillist;sa=emaillist',
'show' => !empty($modSettings['maillist_enabled']) && allowedTo('approve_emails'),
),
),
),
'moderate' => array(
'title' => $txt['moderate'],
'href' => $scripturl . '?action=moderate',
'show' => !$context['allow_admin'],
),
'reports' => array(
'title' => $txt['mc_reported_posts'],
'href' => $scripturl . '?action=moderate;area=reports',
'show' => !$context['allow_admin'] && !empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1',
),
'modlog' => array(
'title' => $txt['modlog_view'],
'href' => $scripturl . '?action=moderate;area=modlog',
'show' => !$context['allow_admin'] && !empty($modSettings['modlog_enabled']) && !empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1',
),
'attachments' => array(
'title' => $txt['mc_unapproved_attachments'],
'href' => $scripturl . '?action=moderate;area=attachmod;sa=attachments',
'show' => !$context['allow_admin'] && $modSettings['postmod_active'] && !empty($user_info['mod_cache']['ap']),
),
'poststopics' => array(
'title' => $txt['mc_unapproved_poststopics'],
'href' => $scripturl . '?action=moderate;area=postmod;sa=posts',
'show' => !$context['allow_admin'] && $modSettings['postmod_active'] && !empty($user_info['mod_cache']['ap']),
),
'postbyemail' => array(
'title' => $txt['mc_emailerror'],
'href' => $scripturl . '?action=admin;area=maillist;sa=emaillist',
'show' => !$context['allow_admin'] && !empty($modSettings['maillist_enabled']) && allowedTo('approve_emails'),
),
),
),

'pm' => array(
'title' => 'Personal'/*$txt['pm_short']*/,
'href' => $context['allow_pm'] ? $scripturl . '?action=pm' : $scripturl . '?action=profile',
'show' => $context['allow_pm'] || $context['allow_edit_profile'],
'sub_buttons' => array(
'pm_read' => array(
'title' => $txt['pm_menu_read'],
'href' => $scripturl . '?action=pm',
'show' => allowedTo('pm_read'),
),
'pm_send' => array(
'title' => $txt['pm_menu_send'],
'href' => $scripturl . '?action=pm;sa=send',
'show' => allowedTo('pm_send'),
'is_last' => true,
),
'profile' => array(
'title' => $txt['profile'],
'href' => $scripturl . '?action=profile',
'show' => $context['allow_edit_profile'],
'sub_buttons' => array(
'account' => array(
'title' => $txt['account'],
'href' => $scripturl . '?action=profile;area=account',
'show' => allowedTo(array('profile_identity_any', 'profile_identity_own', 'manage_membergroups')),
),
'profile' => array(
'title' => $txt['forumprofile'],
'href' => $scripturl . '?action=profile;area=forumprofile',
'show' => allowedTo(array('profile_extra_any', 'profile_extra_own')),
'is_last' => true,
),
'theme' => array(
'title' => $txt['theme'],
'href' => $scripturl . '?action=profile;area=theme',
'show' => allowedTo(array('profile_extra_any', 'profile_extra_own', 'profile_extra_any')),
),
),
),
),
),

'unread' => array(
'title' => /*$txt['view_unread_category']*/'New Posts',
'href' => $scripturl . '?action=unread',
'show' => !$user_info['is_guest'],
'sub_buttons' => array(
),
),

'updated' => array(
'title' => $txt['view_replies_category'],
'href' => $scripturl . '?action=unreadreplies',
'show' => !$user_info['is_guest'],
'sub_buttons' => array(
),
),

'login' => array(
'title' => $txt['login'],
'href' => $scripturl . '?action=login',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
),

'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'] && $context['can_register'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),

);

There are a few stray details to clean up, but it's basically sorted.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Linktree and Dropmenu arrows..

Reply #62

I'd  associate staff with a staff page or something similar.. How about "control" or "control panel"?
Thorsten "TE" Eurich
------------------------

 

Re: Linktree and Dropmenu arrows..

Reply #63

Well you can call yours whatever you like, and so can any other admin, so as long as it's clear and not insane I think just about any name is fine for default.

I associate staff with the "staff room", which is what we used to call the private staff boards (and we called them staff boards too, and so do other sites I've been on), so it works for me. Control sounds a bit too megalomanic for my taste. I'm not too worried about it all though. Hey ho.

Anyway speaking of staff page, I had thought that the staff tab (if labelled as such for ordinary member view) would be a handy place to have links to contact form, staff page, etc. Those aren't standard features now, but would be easy to implement and are potentially useful and popular. Admins and mods wouldn't really need to see those pages straight from a tab, so it could make the one tab do three different and useful things, depending on who is looking at it.

Anyway, sleep. Later. :)
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Linktree and Dropmenu arrows..

Reply #64

The problem with that, Bloc, is that either the mod author has to go out of their way to do what is otherwise a simple enough task or there needs to be a menu editor. Writing a good menu editor is actually very difficult, as evidenced by the multiple attempts thus far with varying levels of success...

And we all know how much mod authors love doing things that they don't feel they should have to do...

Re: Linktree and Dropmenu arrows..

Reply #65

Oh don't get me wrong, I am not so keen on a full-blown editor myself. But I see some choice must be there, for admins or mods as it may be. I believe the way is to split up the menu, like suggested in this topic, for my part i already split it up into a not-forum part and pure-forum part(located around the username).

But I revised this and think I will limit the menu around username/welcome text to just the personal ones, like pm, profile,replies and so on, with a forum submenu containg the other forum parts in the main menu.

What Elkarte will do is of course up to the guys here. :D