Page 1 of 1

Assigning edit privs by page

PostPosted: May 18th, 2011, 2:36 pm
by airpilot
Greetings Jason, Cristian and all:

I'm webmaster of a WordPress/ BuddyPress/ S2Member CMS website (not a blogsite) and I've got a problem I can't seem to resolve.

I wish to allow certain members of our website, presently level S1 members, to have one or the other of the following:

1. Edit access to one or two pages that all other S1 members are only allowed to read.
2. Read-only access to one or two pages that otherwise require S3 or S4 level for edit access.

Note that neither of these are attempts to restrict access by any member - only to add specific edit or read privileges to specific pages for specific members.

I tried a plug-in called Role Scoper to get this granularity of privilege assignment, but Role Scoper crashes my website. Can S2Member provide this type of role assignment? If so, is there any source of information that provides more basic information than the S2Member API / Scripting info in the plug-in? I'm not a php programmer, and am really looking for a simple solution (short code?) for these specific requirements.

Thanks,

Airpilot

Re: Assigning edit privs by page

PostPosted: May 18th, 2011, 11:35 pm
by Cristián Lávaque
I'm sorry, but changing editing capabilities is not something s2Member currently does. :|

That said, you can change that capability for an s2Member level (e.g. level 3) using the User Role Editor plugin. http://wordpress.org/extend/plugins/user-role-editor/

viewtopic.php?f=4&p=9026#p9026
viewtopic.php?f=4&p=13058#p13058

I hope that helps. :)

Re: Assigning edit privs by page

PostPosted: May 19th, 2011, 6:07 am
by airpilot
Hi Cristian:

Yes, it does, thanks. In the meantime, I found out why Role Scoper was crashing my website - not enough php memory! So, having fixed that, I'm presently using Role Scoper to manage write access to specific pages. I still like the idea of configuring Author and Editor to access pages more to my liking. Do you have any idea whether the Role Scoper and Role Editor plug-ins conflict with each other in any way?

Thanks for your assistance!

Airpilot

Re: Assigning edit privs by page

PostPosted: May 19th, 2011, 11:00 am
by Cristián Lávaque
You're welcome. :)

No, I have no idea how they play together. The User Role Editor developer appears to be helpful, though, so I'm sure that if you found a conflict and told him about it, he may try to solve it. The Role Scoper developer seems to be on the ball too, now that I read about the plugin.

Re: Assigning edit privs by page

PostPosted: May 19th, 2011, 11:19 am
by airpilot
Thanks. For now, I'll rely on Role Scoper. If I read the Role Editor site correctly, it appears that it modifies roles assigned to S2Member levels 0 - 3, rather than WP roles subscriber - editor. Is this accurate? This may make a difference in functionality, as Role Scoper modifies WP roles, and does not modify S2M levels.

If I activate both plug-ins, I'll report back on how they play together.

Airpilot

Re: Assigning edit privs by page

PostPosted: May 19th, 2011, 11:26 am
by Cristián Lávaque
User Role Editor lets you work with every WordPress role, including those created and used by s2Member.

Yeah, please let us know how they work together. Role Scoper certainly looks interesting.

Re: Assigning edit privs by page

PostPosted: May 19th, 2011, 9:07 pm
by airpilot
Hi Cristian:

Role Scoper and User Role Editor work together in my WP/BP/S2Member environment. Together, they give a whole lot of flexibility for page privs, user and page restrictions, and role assignments and even new role definitions. I haven't begun to define all the possibilities using both plug-ins, but if/when they interact, they do so proactively as far as I can see thus far.

Thanks for the URE suggestion - I've got more than I need by way of role definition now.

Airpilot

Re: Assigning edit privs by page

PostPosted: May 19th, 2011, 9:09 pm
by Cristián Lávaque
That is awesome! Thanks for reporting back on that! :)

Re: Assigning edit privs by page

PostPosted: May 19th, 2011, 10:47 pm
by airpilot
Anytime, Cristian. There'll likely be more questions as I delve deeper, thanks.

Airpilot