PDA

View Full Version : User title by gender


o0Hubba0o
08-05-2006, 06:05 AM
Nothing came up in a search so I was wondering if anyone knows of or could make me this hack. Or point me in the right direction with some conditionals to use. What I want is the user ranks that are based on posts to be gender specific.

As a quick example, let's say at 500 posts the title changes too Duke. I don't mind it as that, but thought it would be cool if the female members could have it be Duchess in stead, or emperor and emperess, or prince and princess etc.

Anyone help my out with that?

Murty
08-05-2006, 06:12 AM
Yeah that is actually something you can do without using a hack or anything.
Presuming your gender is done with additional usergroups. You just need to create the ranks you want, then set promotions.

If you want i can go into more detail, but its pretty straight forward.

o0Hubba0o
08-05-2006, 06:50 PM
I have gender as profile option right now, but I'll look into what you said and see what I can come up with, thanks.

Kirk Y
08-05-2006, 08:12 PM
Or you could use an if condition via templates.

JD210
08-13-2006, 08:45 AM
I'm just learning the conditionals, so how would I use them in templates for different titles based upon gender?

Kirk Y
08-13-2006, 04:20 PM
<if condition="$post[fieldX] == 'Male'">I'm a real boy!</if>
<if condition="$post[fieldX] == 'Female'">I'm a real girl!</if>

Change fieldX to the field number of your profile option.