User Roles to Display function in v. 2.1.3
-
Hi all, It seems that with version 2.1.3 the “User Roles to Display” function in the “Menner directory” no longer works properly. in the corresponding member directory, all users are displayed, even if specific roles are selected.
Thanks for your attention.
Lion
-
The problem reported above is solved but 2 things remain:
1) In member grid “edit profile” button is also visible on the member tab of which the user cannot edit the profile. Although clicking on the profile opens it in read-only profile. However, it is not a good thing.
2) In member directory – Search oprion – Choose filter(s) meta to enable
Only the default fields are visible in the frontend only if the user is logged in.
If user is logged out custom fields are not visible.Hi @lion73
1) Please make sure that you use default members-grid.php or members-list.php template files.
2) Please check the custom fields privacy settings https://www.screencast.com/t/BNMFh6EQM
Let me know,
Thanks!Ho nsinelnikov,
1) Sure I use default member-grid.phpAbout this I would like to ask you one thing.
Before member’s name in grid, I need to display the title (e.g. Mr., Mrs., etc).
Up to version 2.1.2 it was enough to add before {{{user.display_name_html}}}
{{{user.title}}} where title is Title metakey and everything worked properly.
In version 2.1.3 this no longer works. Why?2) Privacy settings for customized fields is set to “Only visible to profile owner and prifile roles”.
But, if the member directory is for example MANAGER where all managers are displayed, if manager role in “Administrative Permissions – Can edit these user roles only” is set to change only the “employee” role and not “manager”, in the manager list the manager user should see the Edit Profile button only in his tab.nsinelnikov are you there?
Hi @lion73
Sorry for the delay, there was a lot of staff with preparing 2.1.4 release.
1) Please make sure that you add ‘title’ to the user object response from AJAX.
function add_user_title( $data, $user_id, $directory_data ) {
$data[‘title’] = get_user_meta( $user_id, ‘title’, true );
return $data;
}
add_filter( ‘um_ajax_get_members_data’, ‘add_user_title’, 10, 3 );2) Could you clarify the 2nd issue? Some screenshots or links will be very helpful. Unfortunately, I don’t fully understand the connection between Edit Profile in the member directory and fields’ privacy settings.
Let me know,
RegardsHi @lion73
Sorry for the late response. We were busy trying to catch up with the support backlogs and fixing bugs.
Could you please check the latest version and see if you’re still encountering the issues.
Feel free to re-open this thread if there’s any question that may come up.
Regards,
Hi @lion73
Sorry for the delay, I didn’t see your message above without mention.
You could share some links with screenshots via some services like screencast, etc.Let me know,
Thanks!Hi nsinelnikov,
“2) Privacy settings for customized fields is set to “Only visible to profile owner and prifile roles”.
But, if the member directory is for example MANAGER where all managers are displayed, if manager role in “Administrative Permissions – Can edit these user roles only” is set to change only the “employee” role and not “manager”, in the manager list the manager user should see the Edit Profile button only in his tab.”Hi Nsinelnikov, I have version 2.1.5
PROBLEM NOT SOLVED
1) In member grid “edit profile” button is also visible on the member tab of which the user cannot edit the profile. Although clicking on the profile opens it in read-only profile. However, it is not a good thing.PROBLEM NOT SOLVED
2) In member directory – Search oprion – Choose filter(s) meta to enable
Only the default fields (eg Name and Surname) are visible in the frontend only if the user is logged in.
If user is logged out custom fields are not visible if fields are not set “visible to everyone”. For fields like Name and Surname this doesn’t happen
- The topic ‘User Roles to Display function in v. 2.1.3’ is closed to new replies.