Forumlar / Cotonti / Support / seperate register forms

register forms

alphaphoenix
#1 2009-10-18 23:19
Is it possible to create a separate register form for a different group?
Kort
#2 2009-10-19 01:07
You can't belong to a group until you register :)
SED.by - создание сайтов, разработка плагинов и тем для Котонти
Lombi
#3 2009-10-19 01:27
What he meant is to have them register for one group on one page and for another on another page.

Could be done with an additional page that has the login form and an extra field that would be hidden and indicate the special second group, but you would lose the captcha. So for full functionality you'd need to have a custom plugin running for this.
<a href="http://www.domenlo.com">Surreal Art</a>
alphaphoenix
#4 2009-10-19 23:05
Thank you

How would I setup the extra page without the captcha? I tried to do this by renaming the user.register.tpl to user.register2.tpl but this didnt work.
Lombi
#5 2009-10-19 23:09
Just copy the HTML from the registration form and dump it in a page. I'm talking raw HTML, not TPL.
<a href="http://www.domenlo.com">Surreal Art</a>
alphaphoenix
#6 2009-10-20 11:13
How would the hidden field dictate their group? And would the hidden felid be an aspect of the extra fields? Should I also clone the users.register.inc.php and edit it and have the users.php command the new form to use the cloned file? kinda lost here
Kilandor
#7 2009-10-21 07:56
I don't think any of the captcha plugins have a option to disable it for a group, but this would be the easiest way to do so. And wouldn't be to hard.

Thats the best way to do it, you can't just "create" a new page exactly and have it work how your wanting, without removing the hook for the code, but then you may have problems if you upgrade to newer versions.

Your best plan would be to use the auth system to remove the captcha from certain groups (this could only be done by leaving the captcha up), or using a plugin to have a different auth page.

Reason for this is on submission it still has to goto the auth page which is hooked, and still would require a submission on the captcha unless its disabled for a group (by checking the group of the user trying to login)