Foren / Cotonti / Support / Extra Registration Fields

fraze
#1 6. April 2012, 20:28

I've done some searching, but unfortunately can't find anything specific.

Is there an easy way to add extra fields on the registration page?  The extra user fields you can enter from the admin section only appear to work on the profile page.

thanks

GHengeveld
#2 6. April 2012, 20:45

You can do this:

<input type="text" name="ruserfirstname">

Where 'firstname' is the name of the extra field.

fraze
#3 6. April 2012, 20:53

ok, will that enter them into the database after registration?

Trustmaster
#4 7. April 2012, 06:39

They do work on registration page. Make sure you use proper tags in users.register.tpl, e.g. {USERS_REGISTER_FIRSTNAME}.

May the Source be with you!
fraze
#5 8. April 2012, 09:52

unfortunately that doesnt appear to work on my genoa installation...ive added {users_register_firstname} and {users_register_lastname} to my registration form but when it loads in a browsser the area is just blank.

Trustmaster
#6 8. April 2012, 11:51

Tags are case-sensitive.

May the Source be with you!
fraze
#7 8. April 2012, 17:46

sorry - i did put them in uppercase, just typed it lowercase here for speed.

Trustmaster
#8 8. April 2012, 19:06

Hmm, I couldn't reproduce it:

Admin / Users / Extrafields

users.register.tpl:

XML/XHTML
1
2
3
4
5
6
7
8
<tr>
    <td>{USERS_REGISTER_FIRSTNAME_TITLE}</td>
    <td>{USERS_REGISTER_FIRSTNAME}</td>
</tr>
<tr>
    <td>{USERS_REGISTER_LASTNAME_TITLE}</td>
    <td>{USERS_REGISTER_LASTNAME}</td>
</tr>

Results

May the Source be with you!