2014-06-04, 10:50 AM
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.
(2014-06-04, 12:14 PM)marcus123 Wrote: [ -> ]What do you mean please elaborate in more details.
(2014-06-04, 02:55 PM)Ace700 Wrote: [ -> ]You probably could do what you need with http://community.mybb.com/thread-31860.html
$mybb->$userfields['fid3'] == "Male"
The gender is stored in the "_userfields" table and in the "fid3" column.<img class="gender{$post['fid3']}" src="images/{$post['fid3']}.png" title="{$post['fid3']}" alt="{$post['fid3']}" />
.gender, .genderUndisclosed {
display: none;
}
(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.