×

Error

Please login first

userlist filter on online status

8 years 11 months ago #265243 by gtrennert
userlist filter on online status was created by gtrennert
Hello,
I wonder if there is a way to give the user the choice to select online users or not
I have seen this old post

there is some code proposed :

ONLINE ONLY:
[code:1]
( ( SELECT MAX( s.time ) FROM #__session AS s WHERE s.userid = u.id AND s.guest = 0 ) IS NOT NULL )
[/code:1]

OFFLINE ONLY:
[code:1]
( ( SELECT MAX( s.time ) FROM #__session AS s WHERE s.userid = u.id AND s.guest = 0 ) IS NULL )
[/code:1]


So my question do you think that this always could work on cb 2.0.9

What I'm missing in this code is : where is the user choice to show online or offline users ?

Please Log in to join the conversation.

8 years 11 months ago #265252 by krileon
Replied by krileon on topic userlist filter on online status
That'll probably still work fine. You have to create 2 userlists. 1 showing online and 1 showing offline and then they can choose from the lists.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

8 years 11 months ago #265257 by gtrennert
Replied by gtrennert on topic userlist filter on online status
Customer does not accept 2 lists - so there is really no way to do this kind of thing in one list ?

Please Log in to join the conversation.

8 years 11 months ago #265259 by krileon
Replied by krileon on topic userlist filter on online status
I suppose you could create a field and try using a substitution IF statement to determine if online or offline should be showing. Aside from that, no there's no other solution.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.226 seconds

Facebook Twitter LinkedIn