| Kit Fenderson-Peters ( @ 2008-05-14 10:28:00 |
Adding genders
I have one very good friend who considers themself to be neither male or female gendered, and who does not care to list themself as "unspecified". And it seems to me that it's a good thing to support more genders than just "Male", "Female", and "Unspecified". So I'm adding it to Inksome. But I have a problem. I modify the requisite section in /manage/profile/index.bml:
And
And I add the requisite bits in lj/htdocs/manage/profile/index.bml.text:
Note there that I added ".gender.other" and ".gender.none".
So then I thought that maybe it was lj/htdocs/editinfo.bml.txt that I needed to fiddle, adding:
But that didn't do it either. So I'm stumped. Any ideas?
I have one very good friend who considers themself to be neither male or female gendered, and who does not care to list themself as "unspecified". And it seems to me that it's a good thing to support more genders than just "Male", "Female", and "Unspecified". So I'm adding it to Inksome. But I have a problem. I modify the requisite section in /manage/profile/index.bml:
# gender
$ret .= "<tr><td class="field_name">$ML{'.fn.gender'}</td><td>";
$ret .= LJ::html_select({ 'name' => 'gender', 'selected' => $u->{'gender'} },
'U' => $ML{'.gender.unspecified'},
'M' => $ML{'.gender.male'},
'F' => $ML{'.gender.female'},
'O' => $ML{'.gender.other'}, # ADDED
'N' => $ML{'.gender.none'} # ADDED
);
$ret .= "</td></tr>\n";
And
# opts
$POST{'opt_showmutualfriends'} = $POST{'opt_showmutualfriends'} ? 1 : 0;
$POST{'opt_hidefriendofs'} = $POST{'opt_hidefriendofs'} ? 0 : 1;
$POST{'opt_showschools'} = 'N' unless $POST{'opt_showschools'} =~ m/^(N|R|Y|F)$/;
$POST{'gender'} = 'U' unless $POST{'gender'} =~ m/^[UONMF]$/; # MODIFIED
And I add the requisite bits in lj/htdocs/manage/profile/index.bml.text:
.friendof=Show other users who have friended you, but you have not friended
.gender.other=Other
.gender.none=None
.gender.female=Female
.gender.male=Male
.gender.unspecified=(Unspecified)
Note there that I added ".gender.other" and ".gender.none".
So then I thought that maybe it was lj/htdocs/editinfo.bml.txt that I needed to fiddle, adding:
.gender.other=Other
.gender.none=None
But that didn't do it either. So I'm stumped. Any ideas?