PHP validation error reporting in step by step registration

9 years 1 week ago #262905 by Freshpage
I am using a step by step registration. On the last step, when the person enters a username which is already in use, an error message is placed in the system output area, and the steps go back to the first step.

The error message is "The username '<username>' is already in use."

This is a problem, because people are reporting that they think the data they have entered has been lost. Some click the browser back button, which leads to more problems.

So my question is two parts:

1) Is there a way to improve this, so that the previously viewed tab is opened when there is a PHP validation error.
2) If not, where do I change the text string for the error message, so that I can try to guide users to do the right thing? I have looked in the following places but can't find it:
  • /components/com_comprofiler/plugin/language/cbpaidsubscriptions-en-gb
  • /components/com_comprofiler/plugin/language/en-gb/language.php
  • The Joomla language override in the Joomla admin (Extensions->Language Manager->Overrides->New)

Thanks very much for any help

Please Log in to join the conversation.

9 years 1 week ago #262912 by krileon

1) Is there a way to improve this, so that the previously viewed tab is opened when there is a PHP validation error.

The step by step registration display doesn't currently keep track of the step they were previously on. It's possible though and have added a feature ticket to enable it, but will need to thoroughly test to ensure it won't display a disabled tab when doing this.

forge.joomlapolis.com/issues/5245

2) If not, where do I change the text string for the error message, so that I can try to guide users to do the right thing? I have looked in the following places but can't find it:

I recommend just enabling ajax checking for the username then the validation will be browser side in addition to PHP side and they'll be informed their username is already in use before they even submit the registration form. You can enable this by setting "Ajax Username Checker" to "Yes" within CB > Configuration > Registration.


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

Please Log in to join the conversation.

9 years 1 week ago #262913 by Freshpage
OK, thank you

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.375 seconds

Facebook Twitter LinkedIn