Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-03-27 01:33:33

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

Limit which sections a user can post

Is it possible to limit which sections, via privileges, a backend user can post to?

Offline

#2 2009-03-27 01:45:01

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Limit which sections a user can post

It’s not very elegant but I did this with an homemade plugin which – throught jquery – removes some sections from the sections drop down menu in the “write “ tab – only when specific users are logged in.

Offline

#3 2009-03-27 02:00:41

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

Re: Limit which sections a user can post

Are you planning on releasing it at all?

Or do you want to share how you did it?

Offline

#4 2009-03-27 02:55:44

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Limit which sections a user can post

I think you can hide sections from users that aren’t “publisher” privs
with sed_section_fields “treat as static section” feature.

That might be a hammer where you need a wrench – but I thought I mention it just in case.

:)

Offline

#5 2009-03-27 03:09:07

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

Re: Limit which sections a user can post

Thanks Tom… I’ll take a look :)

Offline

#6 2009-03-27 10:01:09

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Limit which sections a user can post

Tye,
before I try to extrapolate just the functions you need from my garbled all-in-one plugin (I have this bad habit to make an unique plugin for each site I build – so it may take some time) can you clarify if you need to hide some sections based on the user, or if sed section fields is sufficient?
As Tom pointed out, the latter hides sections from all users that aren’t “publisher” while my raw pseudo-plugin lets you specify which sections to hide for a specific user.

Offline

#7 2009-03-27 10:16:31

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

Re: Limit which sections a user can post

Sorry redbot – I managed to get this one working with sed section fields :) (Thanks Tom)

But if you do ever find the time to un-garble (you obviously haven’t seen my code if you think yours is garbled :)) your plugin – it would be absolutely superb.

If there was more control than sed section fields, and if it works with categories too, it would be hands down an absolute god send and I think I would have to buy you a beer… or recruit as many people as possible to donate to the cause :)

Thanks for the offer though :)

Offline

#8 2009-03-27 10:32:19

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Limit which sections a user can post

tye wrote:

Sorry redbot – I managed to get this one working with sed section fields :) (Thanks Tom)

Don’t be sorry, that’s a good news!
1) For you because you can use a very nice and more solid plugin (which I use a lot also)
2) For me, because theese are very busy days and I have just a few free time at my disposal

And for what concerns my plugin I’ll rather write a tutorial to explain how to make your own jquery-based-admin-tweak plugin (maybe).

Last edited by redbot (2009-03-27 10:33:36)

Offline

#9 2009-03-27 10:40:14

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

Re: Limit which sections a user can post

redbot wrote:

I’ll rather write a tutorial to explain how to make your own jquery-based-admin-tweak plugin (maybe).

Sounds good – I’ve been meaning to give jquery a good look over – so far I’ve just used plugins I’ve found & a small bit of code which nabrown78 kindly shared :)

Offline

Board footer

Powered by FluxBB