Notifications
Clear all

[Solved] Mix between display of user profiles and setting in user role permissions

3 Posts
2 Users
0 Reactions
108 Views
Posts: 8
Topic starter
(@helge)
Active Member
Joined: 1 month ago

Hi.

I'm administrating a small website where I have integrated wpForo. I have noticed a strange behaviour in wpForo display of user profiles. The contents is different depending on the setting of what I guess is: Controlpanel - can edit members (my version is Danish: Kontrolpanel - kan redigere medlemmer). It is the top right permission. When the option is selected I do see About me information when a user profile is displayed. But when option is deselected I don't see About me information in the user profile. When the option is selected I'm also able to edit the user. I only want to able to see About me and not be allowed to edit the user.


2 Replies
1 Reply
wpForo Support
Moderator
(@wpforo-support)
Joined: 4 months ago

Member
Posts: 52

@helge,
In wpForo, the 'Dashboard - Can edit member' permission affects the visibility of 'About Me' and other profile information. Members cannot see other users' 'About Me' details unless this permission is enabled for their usergroup, which is not recommended for regular members as it grants editing rights.

To allow viewing the 'About Me' information without granting editing permissions, wpForo restricts profile information display to users who have one or more approved posts by default. This is a spam prevention measure.

If you want to disable this restriction and allow all users to view 'About Me' fields regardless of post count or editing permissions, you can add the following PHP snippet to your site:

add_filter( 'wpforo_profile_field_displaying_restriction', '__return_false' );

This will let members see the 'About Me' section without needing the 'Can edit member' permission.

References:
https://wpforo.com/community/how-to-and-troubleshooting-2/issue-with-profile-fields-not-showing-to-others/
https://wpforo.com/community/how-to-and-troubleshooting-2/enable-member-profile-editing/


Posts: 8
Topic starter
(@helge)
Active Member
Joined: 1 month ago

Great thank you. I have tested and it works as expected. I noticed that the references does mention spam, which isn't an issue for me. The access to wpForo is limited to login users and I know all the users.