Skip to Content Skip to Menu

CB Invite

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
4 years 5 months ago #318222 by activha
Replied by activha on topic CB Invite

As for your affiliation you'd have to implement that yourself using CB Auto Actions acting on the invites_onAfterAcceptInvite trigger.

You mean that with an autoaction and this trigger I could only set a query autoaction like this
Code:
Trigger: invites_onAfterAcceptInvite Condition: [cb_refid] > 0 Action : INSERT INTO `#__affiliate_tracker_accounts` (`user_id`,`parent_id`,`address`,`zipcode`,`city`,`state`,`country`,`phone`,`company`) VALUES ('[var2_user_id]','[cb_refid]','[var2_cb_address]','[var2_cb_zipcode]','[var2_cb_city]','[var2_cb_state]','[var2_cb_pays]','[var2_cb_phone]','[var2_cb_company]')

And CB would take care of all checks regarding the DB and existing new user fields ?
That's better as it would only show the plain urls whatever happens

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 #318234 by krileon
Replied by krileon on topic CB Invite
Yes, your query should work fine as well as your condition. You'll need to adjust the User parameter as follows though otherwise Automatic detection will favor the user object of the user accepting the invite.

User: Specific
User IDs: [var1_user_id]

This will set the main substitution user to the user who sent the invite allowing your condition to work. The alternative would be to try using the new nested substitution functionality to get cb_refid for your condition. Example as follows.

[cb:userdata field="cb_refid" user="[var1_user_id]" /]


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: activha

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

Moderators: beatnantkrileon
Powered by Kunena Forum