MobileHacks
New Member
Description:
Gender Bit shows gender symbol next to username in postbits. See "prerequisite" and "one-time configuration" below.
Features:
* Fully uses plugins so there is no need to customize any templates
* Makes use of the built-in User Profile Field system
* Configurable through vBulletin Options
* Includes a number of male-or-female symbol sets to choose from
* Easily enable/disable the gender symbols in various places
o Postbits, private messages, announcements etc
o Memberlist
o Profile pages
* Version 1.0.2 and above: Now also takes care of default profile pictures and friends' avatars by showing default male/female avatar accordingly
* Version 1.0.2 and above: Exposes a globally-scoped function genderbit_getgender for other mods and plugins to make use (refer change logs below for details)
* New in 1.1.0: Support for the third gender type ...
Prerequisite:
A custom user profile field designated for members' gender must be manually created in user profile field manager. If your forum does not already have one and you have no idea how to create it, please read included README.txt for instructions.
One-time configuration:
1. Upload the includes and images folders (inside the zipped upload folder) to your vbulletin directory (usually /forum). The folders should end up as /forum/includes and /forum/images respectively.
2. Import the product XML in AdminCP product manager. Then, head straight to the option page for Gender Bit under vBulletin Options.
3. Configure the "User profile field name" to be the name of the user profile field. Usually it is in the form of 'fieldX' where X is a number.
4. Also configure the "Field value: Male" and "Field value: Female" to be the value(s) of the profile field when a member selects "Male" or "Female" respectively. If there are multiple values that refer to male (or female), separate them using pipe characters, example: Boy|Gentleman
5. Lastly configure the other options to your likings.
6. Save and the gender symbol will appear in postbits for members who have set their gender profile field.
Changelogs:
Version 1.0
- Initial version
Version 1.0.1
- Replaced align="absmiddle" with CSS to pass XHTML validation
- Extra image sets for male/female with a new option in vB Options to choose which set to use
Version 1.0.2
- Fixed php errors in private messages and a few other places
- New: Option to show gender symbol in memberlist
- New: Gender Bit can now take care of default profile pictures and friends' avatar to show default male/female avatar
- New: Exposes a globally-scoped function genderbit_getgender($registry, $userinfo, $unknown='') that returns 'male', 'female' or $unknown. The three parameters are:
* $registry: the vbulletin core object, usually $vbulletin but may be $this->registry in some vb classes
* $userinfo: the userinfo array, which usually holds 'userid' and 'username'
* $unknown: string to return if $userinfo does not contain gender information. Default to empty string
Version 1.1.0
- Major revamps.
- Added: a lots more places where the gender symbols will appear, with options to turn each one of them on/off in vBulletin Options
- Added: the third gender for those who think two genders are not enough.
- Changed: Gender Bit will only look for the images in forumdir/images/misc by default unless overridden in vBulletin Options.
- Starting from this version, the handling of gender-aware default avatars and profile pictures have been separated into an extension product named "Gender Bit Extension". Gender Bit does NOT require Gender Bit Extension to operate but Gender Bit Extension REQUIRES Gender Bit.
Note: Should also work in vB 3.6.x, but I haven't done any testing in that vB version.
Troubleshooting (aka why aren't the symbols/images showing?)
Step 1:
In { AdminCP > vBulletin Options > Gendet Bit } check if you have configured "Field value: Male" and "Field value: Female" to match what your members would choose if they are male or female. If in your forum/language "Shalabadaba" means "male" and "Shubidubidu" means "female", enter Field value: Male = "Shalabadaba" and Field value: Female = "Shubidubidu". Just overwrite the default "Male" and "Female" in the textboxes.
Step 2 (version 1.1.0 and above):
Still in { AdminCP > vBulletin Options > Gendet Bit }. Try setting Gender symbols image set = "Text/Font" to see if the symbols appear. If it does then you forgot to upload the images into ALL /images/misc folders for ALL STYLES installed in your forum.
Step 3:
From your showthread pages, find the following part (page navigation):
Right-click on the down-pointing arrow and select "Properties" from the popup menu. Check the path to the file, usually in the form of "http://www.yoursite.net/forum/images/misc/menu_open.gif". The bolded part is the path of the misc images folder for your current style. If it says "http://www.yoursite.net/forum/images/yuppie/v4/misc/menu_open.gif" then upload the gender images into forum/images/yuppie/v4/misc/
Gender Bit shows gender symbol next to username in postbits. See "prerequisite" and "one-time configuration" below.
Features:
* Fully uses plugins so there is no need to customize any templates
* Makes use of the built-in User Profile Field system
* Configurable through vBulletin Options
* Includes a number of male-or-female symbol sets to choose from
* Easily enable/disable the gender symbols in various places
o Postbits, private messages, announcements etc
o Memberlist
o Profile pages
* Version 1.0.2 and above: Now also takes care of default profile pictures and friends' avatars by showing default male/female avatar accordingly
* Version 1.0.2 and above: Exposes a globally-scoped function genderbit_getgender for other mods and plugins to make use (refer change logs below for details)
* New in 1.1.0: Support for the third gender type ...
Prerequisite:
A custom user profile field designated for members' gender must be manually created in user profile field manager. If your forum does not already have one and you have no idea how to create it, please read included README.txt for instructions.
One-time configuration:
1. Upload the includes and images folders (inside the zipped upload folder) to your vbulletin directory (usually /forum). The folders should end up as /forum/includes and /forum/images respectively.
2. Import the product XML in AdminCP product manager. Then, head straight to the option page for Gender Bit under vBulletin Options.
3. Configure the "User profile field name" to be the name of the user profile field. Usually it is in the form of 'fieldX' where X is a number.
4. Also configure the "Field value: Male" and "Field value: Female" to be the value(s) of the profile field when a member selects "Male" or "Female" respectively. If there are multiple values that refer to male (or female), separate them using pipe characters, example: Boy|Gentleman
5. Lastly configure the other options to your likings.
6. Save and the gender symbol will appear in postbits for members who have set their gender profile field.
Changelogs:
Version 1.0
- Initial version
Version 1.0.1
- Replaced align="absmiddle" with CSS to pass XHTML validation
- Extra image sets for male/female with a new option in vB Options to choose which set to use
Version 1.0.2
- Fixed php errors in private messages and a few other places
- New: Option to show gender symbol in memberlist
- New: Gender Bit can now take care of default profile pictures and friends' avatar to show default male/female avatar
- New: Exposes a globally-scoped function genderbit_getgender($registry, $userinfo, $unknown='') that returns 'male', 'female' or $unknown. The three parameters are:
* $registry: the vbulletin core object, usually $vbulletin but may be $this->registry in some vb classes
* $userinfo: the userinfo array, which usually holds 'userid' and 'username'
* $unknown: string to return if $userinfo does not contain gender information. Default to empty string
Version 1.1.0
- Major revamps.
- Added: a lots more places where the gender symbols will appear, with options to turn each one of them on/off in vBulletin Options
- Added: the third gender for those who think two genders are not enough.
- Changed: Gender Bit will only look for the images in forumdir/images/misc by default unless overridden in vBulletin Options.
- Starting from this version, the handling of gender-aware default avatars and profile pictures have been separated into an extension product named "Gender Bit Extension". Gender Bit does NOT require Gender Bit Extension to operate but Gender Bit Extension REQUIRES Gender Bit.
Note: Should also work in vB 3.6.x, but I haven't done any testing in that vB version.
Troubleshooting (aka why aren't the symbols/images showing?)
Step 1:
In { AdminCP > vBulletin Options > Gendet Bit } check if you have configured "Field value: Male" and "Field value: Female" to match what your members would choose if they are male or female. If in your forum/language "Shalabadaba" means "male" and "Shubidubidu" means "female", enter Field value: Male = "Shalabadaba" and Field value: Female = "Shubidubidu". Just overwrite the default "Male" and "Female" in the textboxes.
Step 2 (version 1.1.0 and above):
Still in { AdminCP > vBulletin Options > Gendet Bit }. Try setting Gender symbols image set = "Text/Font" to see if the symbols appear. If it does then you forgot to upload the images into ALL /images/misc folders for ALL STYLES installed in your forum.
Step 3:
From your showthread pages, find the following part (page navigation):
Right-click on the down-pointing arrow and select "Properties" from the popup menu. Check the path to the file, usually in the form of "http://www.yoursite.net/forum/images/misc/menu_open.gif". The bolded part is the path of the misc images folder for your current style. If it says "http://www.yoursite.net/forum/images/yuppie/v4/misc/menu_open.gif" then upload the gender images into forum/images/yuppie/v4/misc/