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?

  • syl999
  • syl999
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
11 years 6 months ago - 11 years 6 months ago #225625 by syl999
Hello everybody :)

On my website, a cb registration form:
With autoaction plugin, Auto Action type 'email' or 'redirect' (onAfterUserRegistration), for example, works good.

But doesn't work with an auto action type 'Code'.
I have a php code I would like to run after the user registration.
The type Code is for that (I suppose).

- Why doesn't work?
Correct syntax is or no need the <?php ...the code... ?> .. ?
Documentary somewhere?

- Second question: Is it possible to force the user automatically to become connected after registration? (with auto action type Connection?)




(sorry for my english, french is my mother language)
Last edit: 11 years 6 months ago by krileon.

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 #225670 by krileon
You don't need opening and closing php tags. You just start adding valid PHP to it. It's also subject to other configuration. For example you could have a invalid conditional. Also if your PHP is invalid or your host is blocking "eval" and/or "create_function" it of course won't work. Ensure debug mode and maximum error reporting at set within Joomla global configuration during testing to expose errors. Please provide a screenshot of your auto action.

- Second question: Is it possible to force the user automatically to become connected after registration? (with auto action type Connection?)

Yes, that's one of the features of the Connection action type.


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 - 11 years 6 months ago #225818 by syl999
Thanks for your answer.

FOr php code, that's ok now, good.


For Connection Type, I am trying...

My joomla have different user group. For exemple "reparator" is the id 13.
Is it that id necessary in the user requierd field?

I try, but can't make the AUtomatic Connection works...

I join a printscreen, thanks to explain me what to do to make it works.(?)


Attachments:
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 #225828 by krileon
You need to supply the User ID of the user you want the registered user to connect to. Not their Usergroup ID. You can find a users User ID within CB > User Management under the ID column to the far right.


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 - 11 years 6 months ago #225842 by syl999
Simply the id of a user, I understand.
Last edit: 11 years 6 months ago by syl999.

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 #225843 by syl999
So... A new registrated person will be connected on the user id account...?

difficult to understand the mecanism of that.

(I try with a existing id user, but not seem to work...)

DIrection : user to users --> What does it means?
Last edit: 11 years 6 months ago by syl999.

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

Moderators: beatnantkrileon
Powered by Kunena Forum