Skip to Content Skip to Menu

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

[SOLVED] Creating lists in Groupjive when users join a group

  • LineMine
  • LineMine
  • OFFLINE
  • Posts: 160
  • Thanks: 22
  • Karma: 6
8 years 5 months ago - 8 years 5 months ago #281674 by LineMine
Hi
I would like to create mailing lists based on the categories I'm building in Groupjive. I would prefer this to be an automated process, probably using CB Auto actions, is my guess? I can see there is a trigger available in Auto actions, when a user joins a group, and I'm wondering if I can set up a sequence which automatically adds the user to a CB userlist which corresponds to the category of the group they have just joined? This seems to me to be the tricky part, linking the list to the group category.

I could then just copy users in different list into mailing lists in Acymailing, for example.

Thanks.
Last edit: 8 years 5 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 5 months ago - 8 years 5 months ago #281690 by krileon
Using CB Auto Actions and the AcyMailing action you can subscribe them to a newsletter when they join a group. This would be done for example using the below usage.

Group Join:
Global
Triggers: gj_onAfterJoinGroup
Type: Usergroups
User: Automatic
Access: Everybody
Conditions
1: [var2_id] Equal To GROUP_ID_HERE

Group Leave:
Global
Triggers: gj_onAfterLeaveGroup
Type: Usergroups
User: Automatic
Access: Everybody
Conditions
1: [var2_id] Equal To GROUP_ID_HERE

If you want it to act on any group join simply remove the conditions.

If you want a CB userlist with all users in a specific group that's doable using the Advanced filter within the usergroup and simply querying for it. Example advanced filter as follows.

Code:
( SELECT COUNT(*) FROM `#__groupjive_users` AS gu WHERE gu.`user_id` = u.`id` AND gu.`status` >= 1 AND gu.`group` = GROUP_ID_HERE ) >= 1


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: 8 years 5 months ago by krileon.
The following user(s) said Thank You: LineMine

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

  • LineMine
  • LineMine
  • OFFLINE
  • Posts: 160
  • Thanks: 22
  • Karma: 6
8 years 5 months ago - 8 years 5 months ago #281695 by LineMine
I can see how this would work group by group, but is it possible to set this up using Groupjive categories somehow? What I really want is to subscribe all the users in all the groups in a particular category to the same list; for example, say you have a category called "Footballers" and there are groups A, B and C in it. Then, if a user joins group A, and /or group B, they will go on a list for Footballers, and the same for any user joining groups in that category?

Thank you again.
Last edit: 8 years 5 months ago by LineMine.

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

Moderators: beatnantkrileon
Powered by Kunena Forum