Skip to Content Skip to Menu

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

Auto-Action: possible to generate email when registering ?

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 1 month ago #233565 by dotcom22
I tested your suggestion with PHP eval and PHP create_function but I get this error message:

Method Not Implemented
POST to /administrator/index.php not supported.

Anymore suggestion please ?

Oh, I see; you're making fake email addresses and not aliases.


Yes my main goal is just to be able to register special user (in fact is old person who don't have any email address). They will never login and are not supposed receive message. I need that for let true and normal user see these special user and make some task with them in unconventional way.

I know is a request a little bit crazy and is not your fault if Joomla do not allow registration without email. Of course in 2013 everybody are supposed to have an email address but not old person.

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233583 by krileon
Enable debug mode and maximum error reporting in Joomla global configuration (always have both enabled when testing) to expose any errors. Could be a typo in the code or your host may not allow create_function, etc.. You may also need to declare the post global as follows, but normally you shouldn't have to.

Code:
global $_POST; $_POST['email'] = '[firstname]+[user_id]@cb.invalid';


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 1 month ago #233615 by dotcom22
I enabled Debug but without result because the error remain and I can't see anything in the debug console.

I'm, hosted on Joomlapolis so I presume is a restriction in the host. I opened a ticket for ask. Meanwhile if you have another suggestion..

thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233624 by krileon
Both debug mode and maximum error reporting need to be configured. If they both are not set you won't see many errors. Once you've ensured both are set retry. As you're on JP hosting through navigate to your Virtualmin then click Logs and Reports followed by Apache Error Log and see if any errors are present.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 1 month ago #234358 by dotcom22
hello

Beat have implemented today an exception in the server who allow me now to add your suggested Code action. Unfortunately I still unable to create the fake email address and to register user without need to provide email.

I tried to setup the Code Action with PHP (create_function) and PHP (eval) and I tried with 3 different triggers:

onBeforeUserRegistration
onStartSaveUserRegistration
onBeforeRegisterForm

..but I get always the error message who ask to provide an email address. I tried also to make "not required" email field but this don't change nothing.

I hope you have some more suggestion... :S

thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #234359 by krileon
Try the onStartSaveUserRegistration trigger. It happens before any of the user object processing begins.


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