Thank you, Varun.
The whole issue about the members count is very confusing.
Here is what I have in the members admin section:
All (1,325) | Administrator (3) | Contributor (1,313) | Keymaster (3) | Participant (1,253) | Pending (0)
See how the numbers don’t add together to the “All” number.
After running your code, in the front end “users” section I have now:
Viewing 1 – 20 of 1,735 active members
But when I sort the members alphabetically I get 985 members.
Here is the link to the website: https://onegative.org/members/
Sure, it solves the problem, but for web site like our, people need to browse it as anonymous and then decide whether to register or not.
Closed web sites are for closed communities, and we are widely open community
I know that the plugin can restrict from all and allow only friends, but best for our web site is to show information to all registered users and hide it from anonymous and bots
People are searching in our web site for o-negative blood donors and after they register, they should be able to see the information without becoming friends.
It is a matter of urgency and the minutes count.
I know the plugin which you suggest, but that doesn’t work with our type of community.