Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Show groups membership in user list

UserPost

3:03 pm
February 23, 2009


Daisy

Member

posts 35

1

I'd love to see any groups or RS roles a user is assigned to on the user list screen along with the WP role. It would make it much easier to find users that either need to be deleted or that need to have a rs role or group added.


5:58 pm
February 23, 2009


Kevin

Admin

posts 2502

2

The updated development snapshot will do this, if you perform the following hack on wp-admin/includes/template.php (I will put in a wp-trac request for it):

in function user_row, add:

  break;
default:
  $attributes = "$class$style";
  $r .= "<td $attributes>" . apply_filters('manage_users_custom_column', $column_name, $user_object->ID) . "</td>";

right after:

$r .= "</td>";

6:50 pm
February 23, 2009


Daisy

Member

posts 35

3

Excellent. this will be worth the hack just to get my users cleaned up.

8:45 pm
February 24, 2009


Kevin

Admin

posts 2502

4

It looks like the WP team has already added this to the code base.

I see that my own hack was not structured correctly. Sorry about the confusion, but beginning with Role Scoper rc9.9224, you'll need to change it to:

break;
default:
  $attributes = "$class$style";
  $r .= "<td>" . apply_filters('manage_users_custom_column', '', $column_name, $user_object->ID) . "</td>";

5:54 pm
March 11, 2009


Daisy

Member

posts 35

5

I see now that the error that I reported in the support forum is due to not making this adjustment. I had noticed that the groups had stopped displaying but had not pursued the reason. Unfortunately when I changed the template.php code it now simply displays "manage_users_custom_column" on every row.

7:39 pm
March 11, 2009


Kevin

Admin

posts 2502

6

The error was in this published WP hack, not in the Role Scoper code. I had transposed 'manage_users_custom_column' and ".

Please re-copy into template.php and try again.

8:16 pm
March 11, 2009


Daisy

Member

posts 35

7

Worked like a charm, thanks!

7:06 pm
April 21, 2009


Daisy

Member

posts 35

8

Kevin,

Did this feature go away? I checked my WP core hack and it's stil there but the groups are not displaying in the user list.

7:15 pm
April 21, 2009


Daisy

Member

posts 35

9

Found my answer here: http://agapetry.net/forum/role-scoper/error-log-enties/page-1/

Just needed to remove the WP version checking code that was added later.

7:27 pm
April 21, 2009


Kevin

Admin

posts 2502

10

Daisy said:

Found my answer here: http://agapetry.net/forum/role-scoper/error-log-enties/page-1/

Just needed to remove the WP version checking code that was added later.


Better yet, add the following code to your wp-config.php. Then you won't have to re-hack Role Scoper with each version update.

define( 'scoper_users_custom_column', true );

7:28 pm
April 21, 2009


Daisy

Member

posts 35

11

I do love to avoid hacking, thanks for the tip!


About the Agapetry forum

Currently Online:

13 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1244

Posts: 5649

Members:

There are 1254 members

There are 1 guests


Kevin has made 2502 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin