Topic: [Release] Genders

Allows users to choose their gender from a custom list.

You can change the genders list on Administration » Settings » Features » User genders

Users can change their gender on Profile » Identity

Download Link: http://punbb.informer.com/unofficial/pu … enders.zip

If you find any bugs or have any tips, please post them here.

Updates

  • 1.0: First release

Re: [Release] Genders

I installed out of curiosity, it works great.

3

Re: [Release] Genders

Could you add Male and Female to be changed in language file?

Possible bug.
If i use special characters in o_genders (in our country we have Male = Moški and Female = Ženska) the gender field in user profile doesn't show.

4 (edited by User33 2008-12-24 22:36)

Re: [Release] Genders

It does show...
http://i247.photobucket.com/albums/gg135/garcia-t/it-shows.png

and I chose to use a text area for the genders because it lets you do something cool like Digg does:
http://i247.photobucket.com/albums/gg135/garcia-t/digg-cool.png

5

Re: [Release] Genders

Aha...my mistake about special chars. It works now. Tnx

6 (edited by sonofsinner 2008-12-25 11:35)

Re: [Release] Genders

Many thanks, thats quick.

One question, can i replace male/female text with male/female image?

7 (edited by User33 2008-12-25 14:10)

Re: [Release] Genders

You can... but you'd have to disable HTML encoding, which prevents XSS attacks.

8

Re: [Release] Genders

Hi, i think there should be

if ($forum_user['gender'] == forum_htmlencode($temp))

instead of

if ($forum_user['gender'] == $temp)

on line 141.
Otherwise the male gender is selected by default.

Re: [Release] Genders

@pdvor: It works OK.

10

Re: [Release] Genders

Ok, sorry. I was wrong. I've found out that the male is selected by default only if i am editing some user profile as administrator.