Advanced registration

Ajax user registration forn chek, accepting terms of use

Plug-in for user registration form check with Ajax. Users can see registration errors without page reboot. Also allows to output the requirement to user to accept a registration terms before form sending.

Easy localisation with the the lang - files. Included: english, russian

Installation:
- copy "an_adv_registration" folder from archive into "plugins" folder on your server.
- Correct registration form in the users.register.tpl, form header:
 

<form name="register" id="register" action="{USERS_REGISTER_SEND}" method="post">

(important: name="register" id="register" )

- In the same file place next tags:
{USERS_REGISTER_USER_MSG} - the message about login is outputs here.
{USERS_REGISTER_EMAIL_MSG} - here message about e-mail
{USERS_REGISTER_PASSWORD_MSG} - here message about password
{USERS_REGISTER_PASSWORDREPEAT_MSG} - here message about password confirm
{USERS_REGISTER_TERMS_CHK} - registration terms
{USERS_REGISTER_TERMS_MSG} - registration terms message
{USERS_REGISTER_SEND_MSG} - Send Form preloader. You can place it before
 

<input type="submit" value="{PHP.L.Submit}" />

You can find the sample of the users.register.tpl file this in archive.
Not minifed JS file also included.

- Install plugin in the administrator panel
 


Плагин для проверки формы регистрации при помощи Ajax. Позволяет вывести ошибки при регистрации без перезагрузки страницы. Также позволяет вывести требование принять условия регистрации перед отправкой формы.

Локализуется при помощи lang - файлов. Включены: русский, english

Установка:
- Скопировать папку an_adv_registration из архива в папку plugins на сервере.
- Поправить форму регистрации в файле users.register.tpl, строку заголовка формы указать такой:

<form name="register" id="register" action="{USERS_REGISTER_SEND}" method="post">

(важно: name="register" id="register" )

- В этом же файле расставить теги:
{USERS_REGISTER_USER_MSG} - сюда выводится сообщение для имени пользователя.
{USERS_REGISTER_EMAIL_MSG} - сюда для e-mail
{USERS_REGISTER_PASSWORD_MSG} - cюда для пароля
{USERS_REGISTER_PASSWORDREPEAT_MSG} - cюда для подтверждения пароля
{USERS_REGISTER_TERMS_CHK} - Строка для принятия условий регистрации
{USERS_REGISTER_TERMS_MSG} - сообщение для строки принятия условий
{USERS_REGISTER_SEND_MSG} - прелодер после нажатия кнопки "Отправить". Можно поставить перед

<input type="submit" value="{PHP.L.Submit}" />

Образец файла users.register.tpl приложен в архив.
Также приложена не минифицированная версия JS файла
 

forum topic here


1. Alex300  18.11.2009 18:13
P.S. If you have jQuery UI.dialog installed on your site, terms of use displays with it. If you have not jQuery UI.dialog, registration terms of use displays through simple popup browser window.
======================
Совсем забыл указать:
Если у Вас установлен jQuery UI.dialog, то для отображения правил регистрации используется он. Если нет, то правила регистрации отображаются через обычное popup окно браузера.
2. CorpQuid  04.12.2009 06:04
Are we able to set the min requirements for the fields through this plugin?

Such as min password length and char type?
3. Alex300  19.12.2009 20:55
No.
This version of the plug-in does not allow to make it.
4. foxhound  13.03.2010 21:26
When you do not add an email while registering you get all kind of php error messages on top of the page.

Warning: mb_strpos() [function.mb-strpos]: Empty delimiter in /home/armaholi/public_html/testers/armaholictest/system/core/users/users.register.inc.php  on line 88
Warning: mb_strpos() [function.mb-strpos]: Empty delimiter in /home/armaholi/public_html/testers/armaholictest/system/core/users/users.register.inc.php on line 88

Warning: mb_strpos() [function.mb-strpos]: Empty delimiter in /home/armaholi/public_html/testers/armaholictest/system/core/users/users.register.inc.php on line 88

Warning: mb_strpos() [function.mb-strpos]: Empty delimiter in /home/armaholi/public_html/testers/armaholictest/system/core/users/users.register.inc.php on line 88

Can you fix that?
5. Alex300  13.03.2010 22:29
I have no this error on my site. http://portal30.ru/ (but it on Russian)
If you do not add an email while registering, you'll see error: "You have to input your e-mail"
Добавление комментариев доступно только зарегистрированным пользователям