Thanks for such a quick reply.
The gender field is now mandatory (upon registration), but it was wise of you to point out that not all members have filled out their gender yet
Can you please put all three options together, I.E. Male/Female/Otherwise?
I also wish that you can expend on it and show how to assemble it with
this MOD for the benefit of all of us PHP illiterates.
Many thanks.
Quote:
Originally Posted by GameWizard
You should have a profile field that has Male and Female and you can place this where your avatar/profile picture code should appear:
Code:
<if condition="$userinfo[field12]==Male">
Male Picture
<else />
Female Picture
</if>
This assumes that everyone has selected either one or the other. If some members have no selected either field, you should use the the code below, otherwise you may have males that haven't selected a gender show up as a female:
Code:
<if condition="$userinfo[field12]==Male">
Male Picture
</if>
<if condition="$userinfo[field12]==Female">
Female Picture
</if>
|