Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-02-05 10:18:16

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

User Level Names

Hello

Would it be possible to move the user level names into the admin so that they can be editable?

I know I can edit them in txp_admin.php, but i don’t want to as:

a) Not sure if it would effect anything… I don’t think it would as the levels are referenced by a number (I think).
b) I would most definitely overwrite on an upgrade :)

$levels = array(
		1 => gTxt('publisher'),
		2 => gTxt('managing_editor'),
		3 => gTxt('copy_editor'),
		4 => gTxt('staff_writer'),
		5 => gTxt('freelancer'),
		6 => gTxt('designer'),
		0 => gTxt('none')
);

Just a thought, or am I being too picky?

Offline

#2 2011-02-05 10:28:33

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,448
Website GitHub

Re: User Level Names

tye wrote:

Would it be possible to move the user level names into the admin so that they can be editable? …or am I being too picky?

Not picky at all. A review (and expansion) of the user management system is on me list for TXP 5.x. In the meantime you should be able to use the wet_babble plugin to make the changes you are after.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2011-02-05 14:16:53

douglgm
Member
From: Bristol
Registered: 2006-08-23
Posts: 182
Website

Re: User Level Names

Personally it would be nice to be able to grant each permission on a more granular level, rather than ratcheting up the pre-defined groups… I have users who want to be able to do everything with images, files, and articles (theirs and others), but I don’t want them to have access to anything else! Like forms etc…

Offline

#4 2011-02-05 14:27:58

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,448
Website GitHub

Re: User Level Names

douglgm wrote:

it would be nice to be able to grant each permission on a more granular level

We plan to allow you to define your own groups. Actually, to qualify this it is planned to open up the core to allow plugins to allow you to define your own groups. A subtle distinction, but I think the core 6 (7?) levels are fine for most applications so the ability to augment them is an extension and therefore better served by user management plugins or simple level renaming / reassigment plugins.

Not sure if the ability to alter the existing groups is a good idea or not. There’s quite a bit of in-built dependency on the ‘level 1 = admin’ group so to start tinkering with this is perhaps a one way ticket to support hasslesville. But at very minimum you (via a plugin) should be permitted to alter the names more easily because sometimes ‘Publisher’ simply confuses clients (for example, in a book shop web site, the publisher is the book’s copyright holder and ‘shopkeeper’ might be a better name for the admin role).

I reserve the right to change my mind, but that’s the plan right now!

Last edited by Bloke (2011-02-05 14:28:51)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2011-02-05 21:13:56

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: User Level Names

Thanks Stef :)

I was just thinking – what about the registration email also/ :)

Offline

#6 2011-02-05 21:26:28

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,448
Website GitHub

Re: User Level Names

tye wrote:

I was just thinking – what about the registration email also/ :)

You mean altering / customising it? I’d like to review a lot of this stuff and make alterations where it makes sense. That’s probably one area: is it not in the lang table (I’ve never looked)?

Certainly some of the admin side notifications contain the wrong info under multi-site installations, but I think Spark/Plug will enable us to tackle these fairly easily.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#7 2011-02-07 00:58:50

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: User Level Names

Yes – you are right Stef – I should be able to change all these with wet_babble :) – Thanks

Offline

Board footer

Powered by FluxBB