Skip to Content Skip to Menu

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

GJ Autojoin based on group id

  • mjplowcha
  • mjplowcha
  • OFFLINE
  • Posts: 30
  • Thanks: 1
  • Karma: 0
11 years 7 months ago - 11 years 7 months ago #223848 by mjplowcha
GJ Autojoin based on group id was created by mjplowcha
Hello!

I am trying to setup GJ Auto Actions so a group member can auto-join a group if they know the correct group id. In other words, if someone enters 123 in at registration, I want them to join the group with group id 123.

I started by creating a custom field called [cb_groupida] and have that in my registration and profile currently.

I then set my conditional to:
"when [cb_groupid] equal to XXXX"

Now XXXX is supposed to be my group ID variable number which according to the database is located in _groupjive_groups->id

What is the best method to use for XXXX to retrieve the group ID from the database? I just wasn't sure what to put in for the conditional or the best way to type it out.

With that said, the next step would be "when [cb_groupid] equal to xxxx then join group xxxx" instead of auto joining each group. No idea how to do that using auto actions.

Suggestions or better methods of accomplishing this?

Thanks!
Mike P
Last edit: 11 years 7 months ago by mjplowcha.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 7 months ago #223858 by krileon
Replied by krileon on topic GJ Autojoin based on group id
You'd need to setup the joins manually. For example if [cb_groupid] Equal To 123 then Join Group and select the 123 group. There's no way to pass your field to it and have it join them to the related group. I suggest just using the Auto Join field and they can easily select from a dropdown the group(s) they want to join.


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.

  • mjplowcha
  • mjplowcha
  • OFFLINE
  • Posts: 30
  • Thanks: 1
  • Karma: 0
11 years 7 months ago - 11 years 7 months ago #223880 by mjplowcha
Replied by mjplowcha on topic GJ Autojoin based on group id
Yes, I have the group list showing up now, but there is concern about privacy in this particular matter. We don't want to publicly display the majority of our groups. The idea that makes the most sense to me was that they could get an invite code to automatically join the group or at the least plug in the group id as a sort of passcode since it is already unique to the group.

No problem there except that it appears that GJ only has the ability for the site admin to manually set up the autojoin for each group created as you suggested and not any way for a group leader to create a group and instantly invite guests with the exception of:
1)invite 1 person to their group at a time (see my other post)
2)contact the site admin to set up the autojoin groups per group created or 3)Publicly display the group for everyone to join

Would love any more options you might have that I am missing, but so far I have seen that 1) you can't invite a group of people to join a group 2)You can't have a group ID to give to your group members to join (like a secret password or group ID) and 3)everyone can join which is unacceptable in my situation.

Thoughts? I've been working on this site for 2-3 months now. Getting ready to go live soon. Need options...
Last edit: 11 years 7 months ago by mjplowcha.

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

  • mjplowcha
  • mjplowcha
  • OFFLINE
  • Posts: 30
  • Thanks: 1
  • Karma: 0
11 years 7 months ago #223882 by mjplowcha
Replied by mjplowcha on topic GJ Autojoin based on group id
Just a side thought.. would it work if I set it up so the group creator could enter in a custom number during registration / group creation as I have it setup now.

In other words, I have the 'create a new group' setup in my registration. If I add in a field called something like [cb_passcode], could I then have the condition work such as:
[cb_groupida] is equal [cb_passcode] ...

I suppose that still ties up the fact that the site admin needs to manually setup the autojoin for each group though... ugh.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 7 months ago #223926 by krileon
Replied by krileon on topic GJ Autojoin based on group id

Yes, I have the group list showing up now, but there is concern about privacy in this particular matter. We don't want to publicly display the majority of our groups.

You can edit the auto join field and exclude groups, categories, or enable access checks to prevent some groups from showing.

The idea that makes the most sense to me was that they could get an invite code to automatically join the group or at the least plug in the group id as a sort of passcode since it is already unique to the group.

This can somewhat be done except the group invite process matches against their email address instead of an invite code as they can be invited to multiple groups at the same time.

1)invite 1 person to their group at a time (see my other post)

Correct, there's no feature to limit the per group invite count.

2)contact the site admin to set up the autojoin groups per group created

You could setup a CB Auto Actions email to send to the admin everytime a group is created or something of the sort. Could also use RSForms or some other form extension for group owners to fill out that you could then review later and manually setup.

3)Publicly display the group for everyone to join

You can publicly display groups as long as it's not invite type, but users that are not registered can not join groups (they have no info so that'd be impossible for them to).

I suppose that still ties up the fact that the site admin needs to manually setup the autojoin for each group though... ugh.

Correct, you'd still have to manually setup the auto joins. I suggest just using the auto join field and adjusting its parameters so it only shows groups you want it to show. Alternatively is just let users join through GroupJive instead of at registration. You could even redirect them to GJ after first login (see CB > Configuration > Registration).


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