0

I created a views block which displays users which are online. I would like to give a user a choice to be able to appear offline (i.e not be listed in the block) when he/she is online.

Thank you in anticipation.

1 Answer 1

3

Assuming Drupal 7, you can go to /admin/config/people/accounts/fields, attach a Boolean field to user accounts to allow the user to select their preference, then filter on that user field in your view to exclude those who opt out.

3
  • Please, do you know if there is a way using views, to make the Boolean field appear as an attachment to the original block? In this way users can choose to appear offline without going to there user account page. Thanks.
    – seyi
    Jun 4, 2013 at 16:32
  • This is another good question. Please post it as a separate question.
    – Triskelion
    Jun 4, 2013 at 16:35
  • Okay, will do so.
    – seyi
    Jun 4, 2013 at 16:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.