Skip to Content Skip to Menu

Linking invites to specific pages

  • kdave321
  • kdave321
  • ONLINE
  • Posts: 231
  • Thanks: 27
  • Karma: 2
1 month 2 weeks ago #342149 by kdave321
Replied by kdave321 on topic Linking invites to specific pages
OK, I'm not sure of the syntax.   I see the trigger:

 $_PLUGINS->trigger( 'onAfterUserRegistration', [ &$newUser, &$newUser, true ] );

Do I need a new CB field, cb_gj_id, to store the group id in so I can do

$newUser->set( 'cb_gj_id', $cbgroup );

Then in the AutoAction, how do I access that?  [var1_cb_gj_id]?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49734
  • Thanks: 8505
  • Karma: 1465
1 month 2 weeks ago #342155 by krileon
Replied by krileon on topic Linking invites to specific pages
Yes, you'll need a way to pass the group id through so the auto action can do something with it and that should work fine.


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.

  • kdave321
  • kdave321
  • ONLINE
  • Posts: 231
  • Thanks: 27
  • Karma: 2
1 month 2 weeks ago #342157 by kdave321
Replied by kdave321 on topic Linking invites to specific pages
OK, I see my custom registration is setting the new GJ ID field correctly and it shows up in his profile. The guest key user can join a guest key group.

The AutoAction I picked type "CB Groupjive",  condition was cb_gj_id of Active User not empty.

The Action Mode was Join Groups, Groups option "Specific Groups" and set to [var1_cb_gj_id].     Status: Member and User: blank

I turned on debug when it didn't work and tried again which generated the error message: "Action 125 :: CB GroupJive is not installed" ?

Error from components/com_comprofiler/plugin/user/plug_cbautoactions/library/Action/GroupjiveAction.php which simply checks for this file:
components/com_comprofiler/plugin/user/plug_cbgroupjive/cbgroupjive.class.php

, which doesn't exist. Perhaps you want component.cbgroupjive.php instead?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49734
  • Thanks: 8505
  • Karma: 1465
1 month 2 weeks ago #342161 by krileon
Replied by krileon on topic Linking invites to specific pages
Ensure CB GroupJive is up to date and within CB > Plugin Management ensure it's Public and Published.


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.
The following user(s) said Thank You: kdave321

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

  • kdave321
  • kdave321
  • ONLINE
  • Posts: 231
  • Thanks: 27
  • Karma: 2
1 month 1 week ago - 1 month 1 week ago #342206 by kdave321
Replied by kdave321 on topic Linking invites to specific pages
The plugin wasn't public, so that fixed the Auto Action and it works now.  However, I upgraded just the GroupJive and AutoActions components, and now I see I can no longer update users in the backend. It fails with no error message , even if debugging set, and redirects to the Joomla admin dashboard.   I also see it empties the First Name field, front or back, when I try to edit the user.

Update: bizarre. several rounds of cache clearing and checking all fields, and it's now working on the front end,but still the backend is broken. Does not save user changes.
Last edit: 1 month 1 week ago by kdave321.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49734
  • Thanks: 8505
  • Karma: 1465
1 month 6 days ago #342208 by krileon
Replied by krileon on topic Linking invites to specific pages

and redirects to the Joomla admin dashboard

Do you have any auto actions acting on user save? You maybe accidently redirecting backend save. Try unpublishing CB Auto Actions and see if that fixes your issue. Alternatively could be something breaking the form HTML. Do you have any Custom HTML fields? If so try unpublishing them and retrying.

I also see it empties the First Name field, front or back, when I try to edit the user.

This sounds like you've some sort of browser autofill being applied. We already set autocomplete="off", but browser extensions like LastPass for example ignore it.


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