• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Simplifying Registration

JayX

Active member
#1
Hi, is it possible in any way to remove the gender and date of birth questions from the registration process?

Thanks.
 

AndyB

Well-known member
#4
Edit the register_form template. Add the comments as shown here:

Code:
<!-- remove gender question -->
<!--   
   <dl class="ctrlUnit">
     <dt>{xen:phrase gender}:</dt>
     <dd>
       <ul>
         <li><label for="ctrl_gender_male"><input type="radio" name="gender" value="male" id="ctrl_gender_male" {xen:checked "{$fields.gender} == 'male'"} /> {xen:phrase male}</label></li>
         <li><label for="ctrl_gender_female"><input type="radio" name="gender" value="female" id="ctrl_gender_female" {xen:checked "{$fields.gender} == 'female'"} /> {xen:phrase female}</label></li>
         <li><label for="ctrl_gender_"><input type="radio" name="gender" value="" id="ctrl_gender_" {xen:checked "!{$fields.gender}"} /> ({xen:phrase unspecified})</label></li>
       </ul>
     </dd>
   </dl>
-->
 

Amaury

Well-known member
#5
Edit the register_form template. Add the comments as shown here:

Code:
<!-- remove gender question -->
<!--  
   <dl class="ctrlUnit">
     <dt>{xen:phrase gender}:</dt>
     <dd>
       <ul>
         <li><label for="ctrl_gender_male"><input type="radio" name="gender" value="male" id="ctrl_gender_male" {xen:checked "{$fields.gender} == 'male'"} /> {xen:phrase male}</label></li>
         <li><label for="ctrl_gender_female"><input type="radio" name="gender" value="female" id="ctrl_gender_female" {xen:checked "{$fields.gender} == 'female'"} /> {xen:phrase female}</label></li>
         <li><label for="ctrl_gender_"><input type="radio" name="gender" value="" id="ctrl_gender_" {xen:checked "!{$fields.gender}"} /> ({xen:phrase unspecified})</label></li>
       </ul>
     </dd>
   </dl>
-->
<xen:comment></xen:comment> would work better. It won't even render then.