Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2008-06-24 16:21:14
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Changing User Privileges
tame_privs is a plugin, help included. Haven’t tried it, just browsed the help text. Freelancers are 5, so the mentioned line would hide the article list from them.
BTW, I remembered jmd_dashboard for listing authors’ articles: you can customise its surface at will. You can re-use the code there, and thus freelancers wouldn’t have to leave the admin side :)
Edit: And I remembered it needs a change in its code to be shown to freelancers. Look for:
add_privs('jmd_dashboard', 1);
1 is for publishers. If you want to add privileges, you need to separate them by commas and surround the numbers by simple apostrophes, like so '1,5'
Last edited by uli (2008-06-24 16:32:48)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#14 2008-06-24 16:42:10
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: Changing User Privileges
geoff777 wrote:
The bit I’m not sure how to implement :-
Hide the article list tab with tame_privs (‘admin.list’ => ’1,2,3,’,)
How and where do I change these permissions.
This plugin is very useful but very raw, in fact you need to modify the plugin code to make it work.
I suggest you have a look at the end of the “admin_config.php” file that comes with textpattern where are listed the default roles and permissions (each number represents a role).
Then add to the plugin code the modifications you need based on the commented example provided in the same plugin code.
Offline
Re: Changing User Privileges
Okay I’ve installed and removed Articles for Freelancers (5).
I’m not really happy about users logging in, getting restricted area messages, and then having to navigate to a front side article page.
If Ruud won’t let me use his plugin, I’ll have to leave Freelancers to see each others drafts and hope a future version of Textpattern addresses this problem.
Thanks for everyone’s assistance but the solution suggested has too many drawbacks.
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
#16 2008-06-24 21:30:49
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Changing User Privileges
Seems you haven’t read my #13
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Changing User Privileges
Sorry Uli,
No I hadn’t.. ;-)
I’ve messed around with this for too long today. I need to sleep.
I’ll check out jmd_dashboard tomorrow
Thank you
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline