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

Can I Add a Gender Option i.e. couple?

Discussion in 'XenForo Questions and Support' started by rickvr, Oct 28, 2010.

  1. rickvr

    rickvr Member

    I would like to have the option of couple for gender. I can edit files so just tell me what needs to be modified.
     
    Blandt likes this.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Search the templates for "gender". I find these templates:

    Admin CP -> Appearance -> Templates
    > account_personal_details
    > member_view
    > message_user_info
    > register_form


    Search for "female" in the files and you will find some code you need to change. I found these:

    library/XenForo/DataWriter/User.php
    library/XenForo/Template/Helper/Core.php
    library/XenForo/ControllerPublic/Register.php
    library/XenForo/Install/Data/MySql.php

    And you will need to change the definition of the xf_user.gender field in the database.
     
  3. rickvr

    rickvr Member

    Thanks Jake! If anyone else wants to do this, you also need to add genertic avatars for couple as well in the styles directory under avatars for your style.
     

Share This Page