Skip to Content Skip to Menu

trying to remove the category in group view

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
6 years 1 day ago #308092 by timstohr
Hi Kyle,
I know this is possible but I do not know how. I would like to make it so that when a user joins a group, he is made automatically Connections with all the users inside a group.
Conversely when the user leaves that group, he is automatically undoing all the connections with the members of that group.

Any easy way how to do that?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
6 years 1 day ago #308105 by krileon
Replied by krileon on topic trying to remove the category in group view
You'd need to use CB Auto Actions for that then have to set User to Custom then implement the necessary code for it to grab every user in that group. It'd then loop the auto action through the resulting array of users with your action. It maybe also doable with a database query by just using an INSERT IGNORE SELECT. Basically an insert query that ignores errors based off the results of a select query (which would just be to grab every user in a group). Don't really recommend doing this though as it doesn't seam very necessary to force connections like that.


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