Public Profile
Permalink
Is there a way to allow each registered user to choose whether or not they are listed in the public profile pages? I guess it would also make them not searchable in that same area...
Basically the idea is that if you WANT to interact with other members you can, but if you want to be kept "hidden" that is also possible.
Any thoughts?
Basically the idea is that if you WANT to interact with other members you can, but if you want to be kept "hidden" that is also possible.
Any thoughts?
that isn't hard to do, you just need to create a new user attribute and have it filter users
how do you "filter users?"
Maybe a little late response but in case it can help anyone:
Make an User Attribute in the Dasboard/ Users & Groups/ User Attributes, for example a checkbox named 'profile', which should be checked if you want to display the page.
In the single_pages/profile/view.php, place the content of the file in an if:
if ($profile->getAttribute('profile')) {
// …content of the view.php
}
else {
// display error message or something
}
do the same for displaying search results in single_pages/members.php, in the foreach:
foreach($users as $user) {
if ($user->getAttribute('profile')) {
//....
… and don't forget to add the closing } after <?php }
Make an User Attribute in the Dasboard/ Users & Groups/ User Attributes, for example a checkbox named 'profile', which should be checked if you want to display the page.
In the single_pages/profile/view.php, place the content of the file in an if:
if ($profile->getAttribute('profile')) {
// …content of the view.php
}
else {
// display error message or something
}
do the same for displaying search results in single_pages/members.php, in the foreach:
foreach($users as $user) {
if ($user->getAttribute('profile')) {
//....
… and don't forget to add the closing } after <?php }