![]() |
|
Mod Options |
![]() |
|||||||||||
Gender Bit: Show gender symbol next to username in postbits and many other places
![]() Developer Last Online: Jul 2014 ![]() ![]() ![]() This modification is in the archives.
My first public mod. Please be kind to me
![]() Description: Gender Bit shows gender symbol next to username in postbits. See "prerequisite" and "Installation guide" below. Features:
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. Download guide:
Installation guide:
Same as installation, with the only difference is to tick the "Overwrite" checkbox when importing the product xml). Also, you would need to check the options page (Admin CP > vBulletin Options > Gender Bit) for any new settings. Uninstallation guide: To uninstall simply uninstall the product from AdminCP product manager. Optionally delete the images and xml files: /images/misc/gender_*.gif /images/misc/unknown_*.gif /includes/xml/bitfield_genderbit*.xml 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:
- 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/ Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
Comments |
#2
|
|||
|
|||
First post reserved!
My first public mod (although I've created a number of mods used only on my site). Please be kind to me ![]() No members have liked this post.
|
#3
|
|||
|
|||
Cool mod! installed!
![]() No members have liked this post.
|
#4
|
|||
|
|||
I just realized that in the normal postbit template (non-legacy), both options in the "Gender bit location in postbit" setting give the same result but if the forum uses postbit_legacy, the result will be different. I only tested it on postbit_legacy so I was not aware that that particular setting doesn't do much difference in normal postbit. All is good though.
No members have liked this post.
|
#5
|
|||
|
|||
Ive just installed previous version by peterska yesterday, but i might look into your code aswell, thanks.
__________________
StylWolny.pl - Polskie Forum Dyskusyjne | guziki,wieszaki,producent guzików,producent wieszaków,guziki poliestrowe - Bonetti No members have liked this post.
|
#6
|
||||
|
||||
I can't seem to install it....
__________________
To right the countless wrongs of our days. We shine this light of true redemption. That this place would become a paradise. What a wonderful world such would be....
No members have liked this post.
|
#7
|
|||
|
|||
Did you import the included product-genderbit.xml file in AdminCP > Plugins & Products > Manage Products ?
Did you create a custom user profile page for members' gender using AdminCP > User Profile Fields > Add New User Profile Field ? Did you configure Gender Bit to use that custom user profile field in Admin CP > vBulletin Options > vBulletin Options > Gender Bit ? No members have liked this post.
|
#8
|
||||
|
||||
thank you.. installed
![]() No members have liked this post.
|
#9
|
|||
|
|||
anyone got images for a dark based forum?
![]() No members have liked this post.
|
#10
|
|||
|
|||
Version 1.0.1 comes with a few image sets to choose from. Re-download the package above and install+upload. "Pixel Precision", "Japanese Kanji", "Bee & Flower" and "Toilet Sign" sets should look okay in dark-styled forum. Test for me please?
No members have liked this post.
|
#11
|
|||
|
|||
i want to know formats like .swf or flv will work using this hack ?
No members have liked this post.
|
#12
|
|||
|
|||
What are you going to do with the .swf or .flv?
No members have liked this post.
|
#13
|
|||
|
|||
I dont understand what i have to write in the Profile Field bit....
__________________
www.wildmums.com No members have liked this post.
|
#14
|
|||
|
|||
Please refer to the second screenshot and see if it helps you, otherwise read on.
First, do you already have a User Profile Field for gender (look in AdminCP > User Profile Fields > User Profile Field Manager). If you don't, create one by going to AdminCP > User Profile Fields > Add New User Profile Field. Select Profile Field Type = Single-selection Menu and click 'Continue'. On the next page put title, descriptions etc, but for the Options box, enter 'male' and 'female' text in your forum language. Save the new user profile field. Back in User Profile Field Manager, find the user profile field for gender that you created. Look at its 'Name' column, there should be 'fieldX' written there (where X is a number). In my forum it is 'field5' but it might be different in yours. Now go to AdminCP > vBulletin Options > vBulletin Options > Gender Bit and enter the 'fieldX' in the "User profile field name". Also configure the 'male' and 'female' values to match the texts you entered in the 'Options' box when creating the user profile field. That said, this addon will only give useful outputs if your members update the gender profile field. No members have liked this post.
|
#15
|
|||
|
|||
Version 1.0.2 is up with many changes (see change logs)
A special note to other coders, version 1.0.2 exposes a globally-scoped function (refer changelogs) that your mod/plugin can call to get the user gender so that it is possible to build upon this mod. One nice idea for mod is the gender-aware phrase system that many have requested in this forum. Maybe I should stop looking at the code or else I won't stop adding features ... ![]() No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 08:52.