The Serendipity Handbook

You can now read the (german) handbook here: PDF - https://github.com/s9y/Book (LaTeX source).

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Development "Logged in as (deprecated user level)"

Discussion corner for Developers of Serendipity.
User avatar
Don Chambers
Regular
 
Posts: 3077
Joined: Mon Feb 13, 2006 3:40 am
Location: Chicago, IL, USA

Postby Don Chambers » Fri Dec 18, 2009 6:50 pm

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>

User avatar
garvinhicking
Core Developer
 
Posts: 28954
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Sat Dec 19, 2009 5:13 pm

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/

User avatar
Don Chambers
Regular
 
Posts: 3077
Joined: Mon Feb 13, 2006 3:40 am
Location: Chicago, IL, USA

Postby Don Chambers » Sat Dec 19, 2009 6:15 pm

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)".

User avatar
garvinhicking
Core Developer
 
Posts: 28954
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Sun Dec 20, 2009 1:55 pm

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/

User avatar
Don Chambers
Regular
 
Posts: 3077
Joined: Mon Feb 13, 2006 3:40 am
Location: Chicago, IL, USA

Postby Don Chambers » Mon Dec 21, 2009 7:32 pm

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.

User avatar
Timbalu
Regular
 
Posts: 2565
Joined: Sun May 02, 2004 3:04 pm

Postby Timbalu » Mon Mar 21, 2011 8:21 pm

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



Return to Development

Who is online

Users browsing this forum: Google [Bot] and 1 guest