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

XF 1.5 How to remove the user field of location, occupation and home page from personal details page?

Discussion in 'XenForo Questions and Support' started by msibm, Jan 13, 2016.

  1. msibm

    msibm Member

  2. msibm

    msibm Member

    And how to not display the items of gender and date of birth in the register page?
  3. msibm

    msibm Member

    I have created some custom fields, so don't need the default fields such as location, gender, etc..
  4. James

    James Well-Known Member

    You can't easily remove the defaults.
  5. Dakota Storm

    Dakota Storm Well-Known Member

    You'd have to edit the templates, or create a template modification.
  6. msibm

    msibm Member

    Can't disable the function of all about date of birth in the whole forum?
  7. msibm

    msibm Member

    Should these codes be deleted from the template of account_personal_details?

        <xen:hook name="account_personal_details_biometrics">
            <dl class="ctrlUnit">
                <dt><label>{xen:phrase gender}:</label></dt>
                        <li><label for="ctrl_gender_male"><input type="radio" name="gender" value="male" id="ctrl_gender_male" {xen:checked "{$visitor.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 "{$visitor.gender} == 'female'"}  /> {xen:phrase female}</label></li>
                        <li><label for="ctrl_gender_"><input type="radio" name="gender" value="" id="ctrl_gender_" {xen:checked "{$visitor.gender} == ''"}  /> ({xen:phrase unspecified})</label></li>
            <dl class="ctrlUnit OptOut">
                <dt>{xen:phrase date_of_birth}:</dt>
                    <xen:if is="{$visitor.dob_day} && {$visitor.dob_month} && {$visitor.dob_year}">
                        {xen:date $birthday.timeStamp, $birthday.format}
                        <p class="explain">{xen:phrase once_your_birthday_has_been_entered_it_cannot_be_changed}</p>
                    <xen:else />
                        <xen:include template="helper_birthday_input">
                            <xen:map from="$visitor" to="$user" />
            <xen:include template="account_privacy_dob" />
  8. msibm

    msibm Member


Share This Page