Resources

My Agape try

Your Agape try


Role Scoper 1.0.7 Fixes Role Metagroups, QTranslate Compatibility

A few more bug / compatibility fixes, prompted by user reports, warrant another Role Scoper release.  The main problem was that, since WordPress 2.8, the settings cache for new users was stored without metagroup membership.  That means if you assign content-specific roles based on a user's WordPress role, newly created users would not be credited with those content-specific roles until their profile was modified or the Role Scoper cache was flushed or deactivated.

Other changes pertain to compatibility with the QTranslate plugin, and visiblity of other users' unattached file uploads in the Media Library.

The full change log:

  • BugFix : With WP 2.8, new users were not credited for membership in WP Role metagroup until profile edit / cache flush
  • Change : Exclude role metagroups from groups column in users list (to reduce clutter)
  • Feature : Option for whether non-administrators can see unattached uploads from other users
  • Change : By default, non-administrators see only their own unattached uploads in Media Library
  • Compat : Disable caching of pages, categories listing if QTranslate plugin is active
  • Change : remap get_pages exclude argument to exclude_tree if called with depth=1
  • Change : remap get_terms exclude argument to exclude_tree if called with depth=1
  • Change : more descriptive error message when another plugin prevents RS initialization

7 Responses to “Role Scoper 1.0.7 Fixes Role Metagroups, QTranslate Compatibility”

Comment from DyasonHat
Time: August 11, 2009, 3:40 am

Hi there,

Great plugin, I've got a clash though between Role Scoper and WP GEO. When ever I activate Role Scoper I lose the Pins on the google maps of posts, the place where the pins would have been are still active; ie when you hover over you still get a tool tip and can click it, it's just the pins that are hidden for some reason.

Cheers DyasonHat.

Comment from Kevin
Time: August 11, 2009, 10:54 am

Dyson,

Since WP GEO stores those images in an uploads subdirectory, you will need to be sure not to manually attach them to a post/page that has read restrictions. Also, be sure not to define SCOPER_BLOCK_UNATTACHED_UPLOADS. If you need that setting, move the WP-Geo marker files out of uploads and change WP-Geo code accordingly.

Comment from .fay
Time: August 12, 2009, 12:48 pm

Hi !

Great plugin ! unfortunately i can not use it cause of lot of problems with worpdress upgrde.

Please I have a question, I’m trying to let some normal users (with Author Role) to moderate all the blog comments (and not only theirs)

Since I can’t use your plugin, I’m trying to do it by my self. I read http://codex.wordpress.org/Roles_and_Capabilities and I thought that I just have to do something like :

$user_object = new WP_User($userID); $user_object->add_cap(’moderate_comments’);

I check the usermeta table in database and I find that effectively the given user has a new metakey blogtest_capabilities : a:2:{s:6:”author”;b:1;s:17:”moderate_comments”;b:1;}

But when i log with my given user, it seems to not work and the user still can’t moderate other comments ?

Have I miss something ? May be I have to create a new Role that extend Author role and add the moderate_comments capability ?

Best regards

Comment from Kevin
Time: August 13, 2009, 12:14 am

.fay,

What do you mean by "problems with WordPress upgrade" do you have? Upgrading Role Scoper, other plugins, or WordPress itself?

As for comment moderation permissions, I haven't looked at that code lately but WordPress may also require the post to be editable to that user (which would require them to have the edit_others_posts capability - effectively an upgrade to the Editor role for posts). At this moment I'm not sure, but it would be worth experimenting in that direction.

Comment from .fay
Time: August 13, 2009, 5:10 am

Oh thank you a lot Kevin !

Effectively the user requires to have the edit_others_posts capability, I realize that I didn't read http://codex.wordpress.org/Roles_and_Capabilities that much :) Now it's working like a charm :)

Concerning my wordpress problems, It's not related to your plugin but to my project restrictions. We have relatively a big running blog with 100+ users and I don't have permission to install every plugin I want especially when the plugin is an extraordinary pearl that does lot of nice things more then our need :)

I will use your plugin for sure in a real CMS-like website, but since I just wanted to let some users to moderate comments, I liked to do it just using small piece of code and it was also the opportunity to know more about wordpress

Thank you again

Best regards

Comment from kristarella
Time: August 17, 2009, 2:39 am

Just to let you know, this plugin breaks the function of Simple Section Navigation. Causing only one or two pages to be listed on a parent page and no pages listed on child or grandchild pages. The only thing I can see that might cause that is the remap of get_pages, but I'm not sure.

Comment from Kevin
Time: August 17, 2009, 4:05 pm

kristarella,

The Simple Section plugin conflict is fixed in the Role Scoper Development Snapshot (1.0.8-rc1). This will be released as a stable version soon.

Leave a Reply