krileon wrote:
You need to use only onCPayUserStateChange trigger. What you're wanting will not happen when you click to select a plan though. It will happen after the subscription has become completely active (e.g. after they're registered). I'm still unsure if even this will work though as GJ hasn't gotten its CB 2.x upgrade yet.Did that, but it did not seem to work. I used both onCPayAfterPlanSelected and onCPayUserStateChange ...
krileon wrote:
Yes, it's possible to add a user to a GJ group using a query, but none of the GJ triggers or integrations that depend on those triggers will fire.Quick question - - is it possible to use the cbsubsSQL plugin to accomplish what I'm trying to do i.e. add the user to a group depending upon plan chosen?
INSERT IGNORE INTO `#__groupjive_users` ( `user_id`, `group`, `date`, `status` ) VALUES ( '[user_id]', GROUP_ID_HERE, NOW(), 1 )
The above would add them to GROUP_ID_HERE as an active user of the group.
Please Log in to join the conversation.
No, using SQL to insert their user into a GJ group won't break the forum access behavior as that's handled dynamically. None of the core functionality of GJ depends on those triggers so as long as you don't depend on them with CB Auto Actions or some other plugin it should be fine.Assuming the SQL query you've mentioned above works (I'll copy and paste verbatim and change the group ID to what it needs to be), would they then be able to access their own forums, or does that fall under the category of "but none of the GJ triggers or integrations that depend on those triggers"?
For existing subscribers you'll need to manually add them to the GJ groups or wait for them to renew as it's only going to affect new subscriptions.Edit: Also, would I need to resign the user(s) up in order for them to be added, or would entering in the SQL query and then clicking "apply" or "save" do this anyway?
Please Log in to join the conversation.
Please Log in to join the conversation.