• 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?

Jake Bunce

XenForo moderator
Staff member
#2
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
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.