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

XF 1.1 How to add a conditional to User Titles

Discussion in 'Styling and Customization Questions' started by Vicki, Jul 14, 2013.

  1. Vicki

    Vicki Active Member

    I'd like to give our site users' a little unique user titles based on their gender. I'm wondering if anyone could give some advice about how to implement it. I guess some template edits shall take care of it ...

    Say, I'd like to do it based on the default XF Trophy User Titles.

    The defaults are:
    - New Member
    - Member
    - Active Member
    - Well-Known Member

    For simplicity, just assume I'd like to name the female member as "F", and the male member as "M".

    So, if the user is a new female member, her title would then be: "New F" ;
    If the user is a new male member, his title would then be: "New M";

    By same logic,
    female member -> "F" ;
    female active member -> "Active F";
    female well-known member -> "Well-Known F";

    male member -> "M";
    male active member -> "Active M";
    male well-known member -> "Well-Known M";

    How to implement something like this?

    Thanks so much in advance!
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can do all of that with user group promotions.
  3. Vicki

    Vicki Active Member

    I took a look at the user group promotions, still not sure how it is related to Trophy User Titles?

    Which template takes care of the Trophy User Titles?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Create the user group promotions based on your criteria and set a title for the user group, checking the user title override radio button.
    Vicki likes this.
  5. Vicki

    Vicki Active Member

    Thanks Brogan!

Share This Page