Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Show users online

11 years 1 month ago #233494 by pepperstreet
Replied by pepperstreet on topic Show users online - fake users online status

nant wrote: ... we have nothing like this.


I had some ideas via PMS. One of them was to mark the fake users with a user group or certain field value. Then hide the original online-status and display a fake one instead.

I am aware of the fact, that online-status is no real field/value, but that is not necessary, IMHO.
I thought of CB Conditional to check for a "fake" user... then hide original status, and display a fake status. Should also work for user-lists.

Another possible solution could be CB AutoActions. It might also check for "fake" user type. Then show/hide statuses. Or even alter the "show on profile" property. Or alter the CSS class of online-status by javascript (so no extra fake status field is needed.

Just some rough thoughts.

Please Log in or Create an account to join the conversation.

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
11 years 1 month ago #233495 by mfe13

I had some ideas via PMS. One of them was to mark the fake users with a user group or certain field value. Then hide the original online-status and display a fake one instead.


Hi,;)

Yes, this is exactly what I want. That "fake" are still "really" online.
Why? Because users appear online in several places, in profile, in userslist, in kunena and Tchat. If I just made a change in the online field, this is good for profile and user list, but not for 2 others.
I watched an extension , I expect the service response to my question...

Thanks

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago - 11 years 1 month ago #233522 by krileon
Replied by krileon on topic Show users online - fake users online status
They need to have an active Joomla session to be considered online. I suppose you could login the fake user, which will generate them a session in _session. Next use CRON to constantly keep _session "time" up to date every few hours or however long your session lifetime is configured within Joomla global configuration. This should keep their session alive and thus be considered online all the time.

If you want to do this with CB then you can use CB Auto Actions and its Internal General trigger with the Login action. Next setup CRON to trigger the internal general using its url within CB Auto Actions > Config > Internal. This would just keep logging them in for you. Example as follows.

Type: Login/Logout
Trigger: internalGeneral
User: Specific (supply the fake users user_id in the now displayed input box)
Access: Everybody
Mode: Login
Method: Username
Username: [username]

The above will force login the user everytime you access the internal general URL, which can be setup to be ran by CRON.


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.
Last edit: 11 years 1 month ago by krileon.

Please Log in or Create an account to join the conversation.

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
11 years 1 month ago #233616 by mfe13
Okay, :(
But I don't understand one thing, how do I specify CRON to activate this action in particular ?
Thanks

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233625 by krileon
Replied by krileon on topic Show users online - fake users online status
You need to contact your host for setting up CRON. We can't help you with that as it's host by host based. Some provide a terminal, some provide a nice GUI, I can't say for sure what your host does. The URL to use in CRON is provided within CB Auto Actions > Config > Internal, but you can also just click the link daily/weekly and activate it manually if you wanted.


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 or Create an account to join the conversation.

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
11 years 1 month ago #233628 by mfe13
Okay, so if I understand, I make an Auto Action and then I click manually on the link >Config>Internal, the task should trigger.
If I have 10 Auto Action, 10 will trigger at the same time, right?

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum