==README for Gender Add-on==
Release date: October 21, 2005.
Latest update: May 20, 2026.
miniBB version: 3.3 and up
Author: Paul Puzyrev (minibb.com).

With this add-on (the principles of it are built-in miniBB) you may specify Gender in user's Profile. It will be displayed as dropdown option for choosing, and shown in every user's post in postings list. By default, solution uses 'user_custom3' field in USERS table. You may add another field in database's table (for example, 'user_customgender'), define it in $dbUserSheme and replace to it in add-on's functions below.

==INSTALLATION==

***** Copy img/icon_gender_1.svg, img/icon_gender_2.svg icons to your /img/ folder of forums. These icons will indicate user's gender.

***** Copy templates/addon_gender_userform.html to your forum/templates folder (contains an HTML code which will be generated in the Profile).

***** Add 'user_custom3' field to $userInfoInPosts array in setup_options.php:

$userInfoInPosts=array('user_custom3');

NB: If there are already some fields defined, separate them by comma:

$userInfoInPosts=array('user_custom1', 'user_custom2', 'user_custom3');

***** Paste the code provided in bb_plugins.code.txt, in bb_plugins.php. This part will generate HTML for Profile page and Topic page, where the Gender status will be displayed. On the Profile page, there will be used a word; on Topic page, there will be used an icon. Modify output generated by parseUserInfo_user_custom3() function to achieve custom results.

***** Paste the code provided in bb_plugins_user.code.txt, in bb_plugins_user.php

***** In templates/main_posts_cell.html, right after the `authorIcon` <img> code, paste the following code:

{$userInfo_user_custom3[$poster_id]}

(this will place the Gender icon right beneath the "author" icon on the left)

***** Under templates/user_dataform.html paste:

{$genderForm}

It will indicate the dropdown option, taken from addon_gender_userform.html template.

***** Paste to your language pack the code located under lang/eng.code.txt (or related language), translate if necessary.

In case if you are using other custom fields, the numerical index in '14' may be changed for any kind of other custom field correspondingly to the index rules described in the article:

https://www.minibb.com/new_profile_field.html

==FINALLY==
Enjoy using miniBB! Our forums will help you more:
https://www.minibb.com/forums/