Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: devang - marraskuu 30, 2005, 04:58:16 IP

Otsikko: Add more fields
Kirjoitti: devang - marraskuu 30, 2005, 04:58:16 IP

Hi All,

I need to add a few more fields to member registrtion form. I have this php, that I saw somewhere on the forum, but I have no idea as to where do I put this within register.php.

</tr><tr>
                     <td width="40%">
                         <b>Recruiter Name Required:</b>
                     </td>
                      <td>
                          <input type="text" name="default_options[Recruiter_Name]" size="30" />
                      </td>
                      </tr><tr>
                      <td width="40%">
                        <b>In Game Name Required:</b>
                     </td>
                      <td>
                         <input type="text" name="default_options[In_Game_Name]" size="30" />
                      </td>
                      </tr><tr>
                      <td width="40%">
                        <b>UBI Name Required:</b>
                     </td>
                      <td>
                         <input type="text" name="default_options[UBI_Name]" size="30" />
                      </td>

This, i guess, is just one field ' Recruiter name'. Once I understand how this works, is it possible to add 3-4 more fields to registration form in a similar manner?

Thanks in advance.
Otsikko: Re: Add more fields
Kirjoitti: Fizzy - marraskuu 30, 2005, 05:22:38 IP
Hi,

It doesn't go in register.php

Try looking in Themes/default/Register.template.php

:)