Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Search for Users & Search for Groups not working?

UserPost

1:14 pm
August 18, 2011


mdwstco

Member

posts 2

1

Hello! First and foremost, your plugin is amazing!

I was wondering if I found some kind of a bug… and I don't think the forum had anything related to this topic yet. I am developing a website that requires constant updating of Role Groups. When I go to Users > Role Groups to create a new group, there is a section to add the group members by typing in the username. No matter what I type in, or even if I type in the exact username that exists, it displays all the users in the search result box. This is also the case when you're in one of the user profile and search for groups. The "Use jQuery selection UI" option is selected in the Options (by default setting). I discovered that by deselecting this, the checklist UI works great. I like that you have provided the different UI options for this plugin, and wanted to let you know of this issue that I'm having (especially since the search/results interface is the default setting, and that's the one that is not working).

I'm testing on a fresh installation of the latest Wordpress 3.2.1 and Role Scoper 1.3.45. The only plugins that I'm using is Members and Import Users from CSV, both of which are deactivated after using them to add Roles and Users.

Relating to this, I was wondering if there is a way to search users using their first name or last name, instead of their user names. 

Thank you!

6:34 pm
August 18, 2011


mdwstco

Member

posts 2

2

I since figured out that, editting line 332 of agent_checklist_rs.php to the following allows search based on the display name (I believe the agent->display_name works for groups but not for users. Also the conditional statement wasn't working to separate groups and users):

$agent_display_name = ( ( ROLE_BASIS_GROUPS == $role_basis ) ) ? $agent->display_name : get_userdata($id)->display_name;

1:28 pm
August 23, 2011


Kevin

Admin

posts 2503

3

The required change to fix User Search with the jQuery UI enabled is line 12 in role-scoper/admin/user_query_rs.php :

$search = new WP_User_Query( 'search=*' . $_GET['rs_user_search'] . '*' );

That will be included in the next RS release.

4:23 pm
August 23, 2011


Kevin

Admin

posts 2503

4

I just updated the Role Scoper development code to fix this.


About the Agapetry forum

Currently Online:

15 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1249

Posts: 5659

Members:

There are 1261 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin