Skip to Content Skip to Menu

How to set up a Groupjive category as group chat

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
3 years 10 months ago #322398 by timstohr
Hi Kyle,
I wanted to set up a single category of Groupjive as a group chat (set each group as Invite Only, increase the auto load to every 5 seconds, disable comments, disable following) however I need to program Auto Action Stream that it excludes category 15 (I will turn off Auto-load in every stream apart from category 15), same with the following button system action.

Then I would need to create an AA Stream only for any group within the category 15 (where I will enable Auto Load, which has been set to 5 seconds in main Auto Action parameters).

It all hinges on selecting according to category (ie condition). I have no idea how to do that. Could you help me?

Thanks

Tim

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 10 months ago #322411 by krileon
Just as a forewarning streams are not meant to be like chat. Their HTTP payloads and processing times are not designed for that. At any rate the below is how you can accomplish this.

Make 2 copies of the system action "CB Groupjive - Stream". Now unpublish the system action. Next for one of the copies add the following condition.

Conditions
Field: Custom > Value
Custom Value: [var2_category]
Operator: Equal To
Value: 15
Action
Stream: Comments
Asset: groupjive.group.[var2_id]

I suggest using a comment stream for this otherwise your "chat" activity is going to show up on the recent activity page, profile pages, etc.. Now for the other one add the following condition.

Field: Custom > Value
Custom Value: [var2_category]
Operator: Not Equal To
Value: 15


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.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
3 years 10 months ago #322422 by timstohr
Thanks for the warning, I was aware of that.

It is just an inbetween solution and I am hoping that the users will not use the groupchats as much. I am basically throwing loads of computing power at it in the hope that it will work at least while there are not thousands of people using the website (if we ever get to that level).

That brings me another idea. How can I limit the maximum amount of people in groups of category 15?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 10 months ago #322427 by krileon

That brings me another idea. How can I limit the maximum amount of people in groups of category 15?

There are no join limits for groups. You'd have to create your own solution using CB Auto Actions to block future join attempts.


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.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
3 years 10 months ago #322451 by timstohr
Hi, it is far from perfect but that is not what I was expecting anyway since GJ is not built for live group chat.

I have a problem though in that the Auto Load seems to duplicate the messages. It is shown once on clicking on POST and then once (I presume) when it autoloads it.



Would be cool if you could fix that!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 10 months ago #322470 by krileon
It should already be protecting against that. Have added a bug ticket to see if there's a regression in the API that caused the check to fail, but it's possible your very high frequency of updating maybe causing the issue since it again is not designed for chat.

forge.joomlapolis.com/issues/8342


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.

Moderators: beatnantkrileon
Powered by Kunena Forum