"Logged in as (deprecated user level)"

Discussion corner for Developers of Serendipity.
Post Reply
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

"Logged in as (deprecated user level)"

Post by Don Chambers »

Something else I never noticed... the admin page is showing the user level (standard editor, chief editor, administrator) together with the user name.. This should either be the group they belong to (which could be more than one) or nothing at all:

Code: Select all

                <td colspan="2" id="serendipityAdminInfopane">
                    {if $admin_vars.is_logged_in}
                        <span>{$admin_vars.self_info}</span>
                    {/if}
                </td>
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: "Logged in as (deprecated user level)"

Post by garvinhicking »

Hi!

The userlevel is still used by some plugins, most importantly staticpages. I often log into installation where it's important to me to see my core userlevel attribute...?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: "Logged in as (deprecated user level)"

Post by Don Chambers »

It might be used by "some" plugins, but user level has virtually no meaning in the core. In addition, it is very confusing to see this otherwise meaningless user level info. For instance, lets say I am assigned to a user group named "premium". When logged in, I see "logged in as Don (Standard editor)".
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: "Logged in as (deprecated user level)"

Post by garvinhicking »

Hi!

I can understand the want for adding groups there, but maybe we will get layout issues when people are members of many groups? The benefit of userlevels is that they only span a maximum of two words...

Maybe we could use a mouseover thing, like shown group names, with a "title" empty link attribute that reveals the userlevel?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: "Logged in as (deprecated user level)"

Post by Don Chambers »

I'm open to anything. The problem I have with user levels is that a default installation creates groups Administrator, Chief Editor, and Standard Editor... these exactly match the old user levels. So what appears to be your member group is actually a near meaningless user level.

Maybe it should just be the user level, and nothing further? As an alternative, or in addition to this, perhaps we could show user levels and group memberships on the admin sign-on page.. something like:
Welcome Back, John.
Group Membership(s): Administrator, Premium
User Level could be added to that, but I think it is confusing especially since it is not really used except by a few old plugins, and we are not even sure about that.
=Don=
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: "Logged in as (deprecated user level)"

Post by Timbalu »

Don Chambers wrote:I think it is confusing especially since it is not really used except by a few old plugins, and we are not even sure about that.
I beg you pardon, Sir!!! ;-)
['serendipityUserlevel'] is a need!
I have three plugin under control which are old by name, but younger than ever!

"Well, here we are again, old lovie....By gum, they look younger than ever, love, younger than ever...hey, hey, hey".
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply