MyBB Community Forums

Full Version: Gender Based Rank
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
As the title suggests i wish to add a rank based on a members gender but cant figure it out. does anyone know a plugin solution or code ect.
What do you mean please elaborate in more details.
(2014-06-04, 12:14 PM)marcus123 Wrote: [ -> ]What do you mean please elaborate in more details.

I think the OP wants to use ranks, but the names of the rank generally is different for males and females (think King / Queen, etc).
You probably could do what you need with http://community.mybb.com/thread-31860.html
(2014-06-04, 02:55 PM)Ace700 Wrote: [ -> ]You probably could do what you need with http://community.mybb.com/thread-31860.html

He would still need the information that MyBB uses for the genders. I'm not sure what it is code-wise, but maybe it's something like
$mybb->$userfields['fid3'] == "Male"
The gender is stored in the "_userfields" table and in the "fid3" column.
You don't need a plugin for this, just open postbit_author_user and add there:
<img class="gender{$post['fid3']}" src="images/{$post['fid3']}.png" title="{$post['fid3']}" alt="{$post['fid3']}" />

Switch fid3 to fidX where X is the profile field's ID (you can check it in ACP, it's default 3).

Then upload Male.png, Female.png and Other.png to images folder.

And lastly add this to global.css:
.gender, .genderUndisclosed {
   display: none;
}

This will work only if your profile field options are named exactly Male, Female, Other and Undisclosed. If you have other words, change them in the steps specified above.

EDIT:
@down, oh, ignore this post then. I don't really know what's the point of this.
(2014-06-05, 05:30 AM)Destroy666 Wrote: [ -> ]You don't need a plugin for this, just open postbit_author_user and add there:
<img class="gender{$post['fid3']}" src="images/{$post['fid3']}.png" title="{$post['fid3']}" alt="{$post['fid3']}" />

Switch fid3 to fidX where X is the profile field's ID (you can check it in ACP, it's default 3).

Then upload Male.png, Female.png and Other.png to images folder.

And lastly add this to global.css:
.gender, .genderUndisclosed {
   display: none;
}

This will work only if your profile field options are named exactly Male, Female, Other and Undisclosed. If you have other words, change them in the steps specified above.

The OP wants to use gender-based user titles (some call it ranks in other software). For example: let's say a user, who's gender is set as female, would reach a post count of 1000 to obtain the user title "Queen" while at the same time a user who is male would obtain the user title "King" at post count 1000.