Resources

My Agape try

Your Agape try


Non-Critical RS Update focuses on Plugin Compatibility

Role Scoper 1.0.8 is now available to fix plugin conflicts with Simple Section Navigation, My Category Order, Flutter and Capability Manager.  The SSN and Category Order fixes were accomplished by improving Role Scoper's overall page and term filtering logic.  This is most visible in new RS Options which allow more control over how pages and categories are displayed under visible grandparents when their immediate parents are hidden.

By popular demand, a Role Scoper option now allows you to limit scoped role assignment to blog-wide Editors or to only blog-wide Administrators.

Also included in this release are some improvements to the filtering of unattached uploads in the Media Library.

The full change log:

  • Feature : Option to prevent non-Administrators from assigning or viewing content-specific roles
  • Feature : For front-end Page and Category listings, parent remapping behavior is now adjustable via RS Options
  • Change : When a depth limit is specified for pages/categories listing, default to enforcing that limit based on actual depth prior to parent remap
  • BugFix : Fix compatibility with various custom child_of / depth / exclude / order combinations in pages, categories listing
  • BugFix : Pages listing filter did not honor number, offset arguments
  • BugFix : Terms (categories) listing filter did not apply custom ordering filter with WP 2.8
  • Change : Work around WP bug when page / category listing is generated with child_of arg, but first element in result array is not a direct child
  • Compat : Simple Section Navigation plugin displayed misplaced subpages in some situations
  • Compat : My Category Order plugin
  • Compat : Flutter/FreshPage plugin (disable custom menu indexing if plugin is active)
  • Compat : Capability Manager plugin (automatically re-sync role defs on role creation / deletion)
  • BugFix : When hiding other users' unattached uploads in Media Library, attachment count did not match
  • Change : Blog-wide Editors always see all unattached uploads in Media Library, regardless of option setting

Comments

Comment from pete
Time: October 3, 2009, 1:39 pm

when RS is activated my Users menu tab disappears so I can't edit my profile nor add extra users manually

i'm using 2.8.4 WP and RS Version: 1.0.8

Comment from Kevin
Time: October 3, 2009, 2:33 pm

pete,

That sounds like a plugin conflict. I've already worked around a conflict with the Flutter plugin; apparantly there are others. I'd be interested in seeing a list of what you're running. For now, you can work around it be adding this to your wp-config.php: define( 'SCOPER_DISABLE_MENU_TWEAK', true );

Comment from hannit
Time: October 27, 2009, 9:08 am

Hi, I'm to integrate a theme with role-scoper. I need a way to get a list of users from a specific group (considering I have the group name) Is there an API for this or should I look inside the plugin code. Thanks

Comment from Kevin
Time: October 27, 2009, 12:09 pm

$group = ScoperAdminLib::get_group_by_name( $name );
$members = ScoperAdminLib::get_group_members( $group->ID );

Note that if you have enabled the Role Scoper Option "Assume no Front-end Admin", you will need to precede that code with the following statement:

require_once( 'wp-content/plugins/role-scoper/admin/admin_lib_rs.php' );

Comment from hannit
Time: October 28, 2009, 3:28 am

Got this error: Fatal error: Call to undefined method ScoperAdminLib::get_group_by_name()

Comment from hannit
Time: October 28, 2009, 3:37 am

copied and renamed from groups-support.php Works great, thanks :-)

Comment from Kevin
Time: October 28, 2009, 12:30 pm

Okay, but you shouldn't have to copy and rename the functions. Did you try putting the require_once statement before the function calls?

Comment from hannit
Time: November 3, 2009, 5:15 am

copied it to the admin_lib_rs.phpfile. didn't exist there :-)

Comment from Kevin
Time: November 3, 2009, 12:24 pm

Oh, I see. function get_group_members() has been in admin_lib_rs.php for quite a few versions, but I just put get_group_by_name() there in the 1.1 development code.

Comment from little
Time: December 3, 2009, 6:45 am

I do have 10 or so different pages in my blog with different rights granted to different people. This works perfect. But the problem is: If somebody is editing the page ans saves it, discussions are closed automatically (although I do want to have discussion on the pages). So I have to go to the appropriate page an enable discussions again until the next user is editing the page again. Any idea what to do?

Comment from Joachim
Time: December 7, 2009, 3:16 pm

Hello,

I have a problem similiar to hannits. However in my theme I want to add some groups to pages via. shortcodes.

I have added the following in role_scoper.php

———————————— if (!class_exists( "GroupsShortcode")) { require_once('admin/admin_lib_rs.php');

class GroupsShortcode { function groups_shortcode($atts) { extract(shortcode_atts(array( 'id' => 0, ), $atts));

/*$group = ScoperAdminLib::get_group_by_name( $name );*/ $members = ScoperAdminLib::get_group_members("{$id}");

return "Hello World" . $members; } } // End Class BlogMembersShortcodePluginSeries } if (class_exists("GroupsShortcode")) { $GroupsShortcodeInstance = new GroupsShortcode(); } if (isset($GroupsShortcodeInstance)) { add_shortcode('group',array(&$GroupsShortcodeInstance, 'groups_shortcode')); } ———————————

However this only outputs Array. If i use $members->user_id or $members['user_id'] it outputs nothing (but the Hello World). What am I doing wrong?

Thanks.

Comment from Joachim
Time: December 7, 2009, 6:06 pm

Hi again. Just ignore my previous post, I was a bit foolish and forgot to insert a loop :P I got it working now. Thanks for this great plugin btw. It is just what I needed. Can't wait till 1.1 goes public :)

Write a comment

(But if your comment is a usage question, bug report or feature request, please post it in the Support Forum instead.)