Skip to Content Skip to Menu

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

[SOLVED] Auto Action TYPE CODE - PHP , onAfterUserRegistration: NO EFFECT, Why? The use of Type connection?

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago - 11 years 6 months ago #225890 by krileon
The direction determines who is sending the connection requests. Either "Users" to the "User" or "User" to the "Users".

You need to set "Users" to a comma separated list of user ids you want the user to connect to (it states this directly in the parameters description). For example my user id is 62 then I'd supply 62 to "Users". So in this case the user being registered will connect to "Users".

You need to have Connections enabled within CB > Configuration > Connections as well as have CB Connections plugin enabled within CB > Plugin Management.


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: 11 years 6 months ago by krileon.

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

  • syl999
  • syl999
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
11 years 6 months ago - 11 years 6 months ago #226049 by syl999
Thanks you for your answer. :)

I have try...hm,
Maybe what I would like had bad explains (or maybe I stlill do not understand).

SImply, what I would like to have (the 5th):

1. A new person come on the website.
2. He clics on "registration"
3. He puts his informations in the CB Form.
4. Clics "registrated".
5. And directly (automatically), he is connected on the website (he doesn't need to login).


The solution is in your precedent message for that...?




EDIT:

THAT'S OK I DON'T FIND HOW CONNECT WITH AUTOACTION,
BUT MY PRBLEM IS SOLVED (used another plugin + autoaction redirection)



Thanks.
Last edit: 11 years 6 months ago by syl999.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #226122 by krileon
If you want "5." then just use the after registration trigger in a Connections action with CB Auto Actions. What trigger you use is entirely up to you.


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.

  • syl999
  • syl999
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
11 years 6 months ago #226132 by syl999
thanks for answer.

(I made that, but didn't work, don't know why).
But I find a solution so that's ok... in a way you can put that post "solved"

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

Moderators: beatnantkrileon
Powered by Kunena Forum