Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2009-01-08 14:06:51
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_privs: edit user level privileges
Version 0.2 is out (updated first post).
A new privilege was added: ‘Can see all articles’. If unchecked a user can see only own articles, either in the “articles” tab as in the recent articles in the “write” tab.
This feature requires jquery (which is shipped with txp from version 4.05) though the plugin should work with earlier versions too, provided you don’t uncheck the “show all articles” field.
As this feature is based on jquery and it’s aimed primarly at improving usability it’s use is not encouraged if you want to maintain a total privacy on other authors’ articles because a simple ‘disable javascript’ will show them all…
Anyway if you combine this feature with “Can edit published articles” set to “no” in the worst scenario a particularly smart user can see other’s articles but can in no way edit them.
Offline
#17 2009-04-24 19:22:12
- insidertravels
- Member
- Registered: 2009-02-26
- Posts: 10
Re: bot_privs: edit user level privileges
Is there a plugin that allows you to add new user levels to the existing ones and edit those privileges as well? I would like to use it with ign_password_protect to show/hide pieces of content (i.e. downloads) according to member level.
Offline
#18 2009-04-24 19:32:09
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_privs: edit user level privileges
insidertravels wrote:
Is there a plugin that allows you to add new user levels to the existing ones and edit those privileges as well? I would like to use it with ign_password_protect to show/hide pieces of content (i.e. downloads) according to member level.
Unfortunately no, I don’t think. I was about to (try to) add this feature but then I gave up due to the lack of free time and to the fact that actually I will never need more than six different user levels.
Offline
#19 2009-08-30 14:34:14
- Gerich
- Member
- Registered: 2009-08-30
- Posts: 35
Re: bot_privs: edit user level privileges
In new textpattern 4.2.0 there where added the few new lines:
‘image’ => ’1,2,3,4, 6’,
‘image.edit’ => ’1,2,3, 6’,
‘image.edit.own’ => ’1,2,3,4, 6’,
‘image.delete’ => ’1,2’,
‘image.delete.own’ => ’1,2,3,4, 6’,
… and some others.
Is author of the plugin can update it and add to it new settings?
Offline
#20 2009-08-30 15:27:00
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_privs: edit user level privileges
Gerich wrote:
…Is author of the plugin can update it and add to it new settings?
Thank you for noticing Gerich.
I’ll update the plugin as soon as I have some free time
Last edited by redbot (2009-08-30 15:27:39)
Offline
#21 2009-09-01 18:23:44
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_privs: edit user level privileges
Plugin updated to work with Txp v. 4.2.0 (see first post for download).
Changes v0.3
- This version works only with Txp 4.2.0. – for previous versions use v. 0.2.
- More privileges are added following the changes in admin_config.php
- I’ve removed the sloppy “can see all articles” feature added by me in v. 0.2. If you need such functionality use this plugin by Variaas instead
Last edited by redbot (2009-09-01 18:24:31)
Offline
#22 2009-09-02 00:06:23
- Gerich
- Member
- Registered: 2009-08-30
- Posts: 35
Re: bot_privs: edit user level privileges
redbot wrote:
I’ve removed the sloppy “can see all articles” feature added by me in v. 0.2. If you need such functionality use this plugin by Variaas instead
Why do you did that? That was important setting in my situation. Well, I have installed plugin asv_auth_articles, but it’s working not properly. I have an error message in the article listing tab:
Notice: Undefined variable: article_list_pageby in C:\AppServ\www\textpattern\lib\txplib_misc.php(594) : eval()’d code on line 317
Can you taking back that setting? Please!
Offline
Re: bot_privs: edit user level privileges
Gerich wrote:
I have an error message in the article listing tab:
Notice: Undefined variable: article_list_pageby in C:\AppServ\www\textpattern\lib\txplib_misc.php(594) : eval()’d code on line 317
It probably suffices to enter the “Articles” tab and change the “View [XX] per page” dropdown to any value once.
Offline
#24 2009-09-02 11:12:59
- Gerich
- Member
- Registered: 2009-08-30
- Posts: 35
Re: bot_privs: edit user level privileges
wet wrote:
It probably suffices to enter the “Articles” tab and change the “View [XX] per page” dropdown to any value once.
Yes, it’s solved the problem, thanks for helping!
Offline
#25 2009-09-02 15:27:40
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_privs: edit user level privileges
Gerich wrote:
Why do you did that? That was important setting in my situation.
Gerish, That “feature” was wrongly designed because it didn’t take into account pagination.
Let’s make an example.
1) set the “View [XX] per page” dropdown to, say, 100
2) suppose the total number of articles is 150
2) suppose you wrote 50 articles.
In this situation you’ll see a different number of articles depending in the sort criteria used in that page.
So, for example, if articles are ordered cronologically, you could see only 30 articles in the first page and 20 on the second page but if they are ordered alphabetically you could then see 5 articles in the first page and 45 on the second page… The plugin works ok only if total articles are less than 100.
I hope this was clear enough.
It seems you managed to make asv_auth_articles work. I reccommend you use it, but if you really, really need my old feature I can post here a modified (and terribly awful) version of my plugin which adds new 4.2.0 previleges still mantaining the old code.
Last edited by redbot (2009-09-02 15:28:43)
Offline
Re: bot_privs: edit user level privileges
Is it possible to include an option to hide the individual bot_privs tab from some users? At the moment you can hide the entire extensions tab, but sometimes this is a bit too drastic.
I edited the add privs line in the plugin (add_privs('bot_privs_tab', '1');), but it would be nice if the plugin did this through the interface.
Also: A feature request: Can one change/rename/add/delete user groups through the plugin?
Offline
#27 2009-09-04 18:20:43
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_privs: edit user level privileges
dl33 wrote:
Is it possible to include an option to hide the individual bot_privs tab from some users? At the moment you can hide the entire extensions tab, but sometimes this is a bit too drastic.
I edited the add privs line in the plugin (add_privs('bot_privs_tab', '1');), but it would be nice if the plugin did this through the interface.
Yes, it is possible but I don’t think I’ll do it as I’ve decided this plugin will only deal with permissions hardcoded in admin_config.php.
That said, you can very easily customize the plugin by yourself adding just one line and reinstalling it.
I’ll show you how soon but before I must correct a bug I discovered just while I was examinating your request (@##!!)
Also: A feature request: Can one change/rename/add/delete user groups through the plugin?
I’ll think about it but, again, you can easily achieve this using the great plugin wet_babble
Last edited by redbot (2009-09-04 18:21:09)
Offline
#28 2009-09-04 19:34:20
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_privs: edit user level privileges
All
Download last version 0.3.1. which fixes a bug with the new privileges added by txp 4.2.0
dl33
I said:
you can very easily customize the plugin by yourself adding just one line and reinstalling it.
Oops sorry that’s not true. I wrote this plugin many months ago and I forgot some of the problems I faced at the time.
Now I remember there was a problem with dots (notation used by privileges in admin_config.php) and underscores (notation used with function names). So, to make it short, I’m sorry but I think the best way (at least for now) is to directly modify the code, as you are already doing.
Last edited by redbot (2009-09-05 01:20:03)
Offline
#29 2009-10-04 20:51:00
- Gerich
- Member
- Registered: 2009-08-30
- Posts: 35
Re: bot_privs: edit user level privileges
Is it possible to add in plugin options for categories?
For example:
User can create new image (or article) category – Yes/No
User can edit only his categories – Yes/No
User can delete categories – Yes/No
…
and other options.
Offline
#30 2009-10-04 22:30:53
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_privs: edit user level privileges
Hi Gerich,
I’m sorry but this is not possible, at least with this plugin. This plugin provides an interface for managing standard textpattern privileges without changing txp code. As you can see from my link , the permissions that you need are not specified in /textpattern/lib/admin_config.php so it would require a specific plugin which, as far as I know, still doesn’t exists. Maybe you can try to post a request here.
Offline