ZenphotoCMS Forum
How to enable error message or thanks message on register form - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: How to enable error message or thanks message on register form (/thread-5438.html)



How to enable error message or thanks message on register form - zham - 06-07-2009

I've enable register_user plugin and created register.php with below script

but after registration is done there is no thanks message OR error message show up, It's back to login page.
How to enable this message? How to show up below error message on register_form?

switch ($notify) {
case 'exists':
echo gettext('The user ID you chose is already in use.');
break;
case 'mismatch':
echo gettext('Your passwords did not match.');
break;
case 'incomplete':
echo gettext('You have not filled in all the fields.');
break;
case 'notverified':
echo gettext('Invalid verification link.');
break;
case 'invalidemail':
echo gettext('Enter a valid email address.');
break;
case 'invalidcaptcha':
echo gettext('The captcha you entered was not correct.');
break;

Thanks
Zham




How to enable error message or thanks message on register form - acrylian - 06-07-2009

You need to enter the thanks message instead of the NULL like ``as documentated.




How to enable error message or thanks message on register form - zham - 06-07-2009

Thank you for the prompt respond... but it wasn't help... the thanks message still not show up... I've follow your advice... but after click submit button, it's go back to login screen... no thanks message OR error message

Is it something that I do not know about PHP scripting or there is a bugs?




How to enable error message or thanks message on register form - sbillard - 06-07-2009

First off, if you are seeing an error message, then the registration was not successful so you will not get a Thank-you message. If there are no errors you will see a message regarding an e-mail that verifies the submitted email address. Registration is not complete (and acknowledged with a thank you) until this verification has happened.