Skip to Content Skip to Menu

CB Invite

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
4 years 5 months ago #318206 by activha
CB Invite was created by activha
Can you tell me if it's possible to add a query to the invite link in order to link the new user both by connections and affiliation ?

Where can I append a cb field for instance ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48435
  • Thanks: 8275
  • Karma: 1443
4 years 5 months ago #318208 by krileon
Replied by krileon on topic CB Invite
CB Invites can already connect users. You can enable this within CB Invites > Parameters > Invites using the "Connection" parameter. As for your affiliation you'd have to implement that yourself using CB Auto Actions acting on the invites_onAfterAcceptInvite trigger. The variables for this trigger are as follows.

Code:
$_PLUGINS->trigger( 'invites_onAfterAcceptInvite', array( $this, $user ) );

var1 being the invite object and var2 being the user accepting the invite.


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.

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
4 years 5 months ago #318209 by activha
Replied by activha on topic CB Invite
Wouldn't be easier to only append &[cb_refid] to the existing link as we already have the affiliation tracking system installed ? (where [cb_refid] is a query field)

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48435
  • Thanks: 8275
  • Karma: 1443
4 years 5 months ago - 4 years 5 months ago #318211 by krileon
Replied by krileon on topic CB Invite
We don't provide APIs for just extending URLs like that. I guess you can try forcing it in the email if you wanted though by modifying the language string and adding that to the [register] substitution URL. That would just pass it to the registration page and the accept invite behavior would have no idea it exists, but as long as you do the affiliate tracking on the registration landing page it should be fine otherwise you need to pass the value off to the form in a hidden input so it'll exist in the POST data.

I'm not really sure why you need that though. That's a field value from the user sending the invite. The trigger I provided you above contains the from user_id in the invite object and the entire recipient user object as var2. You can have your auto action build based off the from user_id so you've access to substitutions from both user objects if you wanted.


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: 4 years 5 months ago by krileon.

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

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
4 years 5 months ago #318212 by activha
Replied by activha on topic CB Invite
Thanks , that'll do :-)
Did you forecast to add social networks import in link with CB Connect for instance ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48435
  • Thanks: 8275
  • Karma: 1443
4 years 5 months ago #318214 by krileon
Replied by krileon on topic CB Invite

Did you forecast to add social networks import in link with CB Connect for instance ?

Not quite sure yet. CB Connect is basically just for easier registration and login. Outside of that scope, for privacy and performance, it does not communicate with those social networks. It doesn't load or use their JS API and I've written our own PHP API from the ground up for communicating with those social networks. It maybe possible to do some sort of import functionality with the PHP API after an additional permissions check. I'm just not entirely sure it's worth the effort as "invite X to join Y site" is pretty much a dead feature these days. At any rate have added a feature ticket to review further for a future release.

forge.joomlapolis.com/issues/7972


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