Gender On Memberlist
Original Author: ccbtimewiz (http://wwww.simplemachines.org/community/index.php?action=profile;u=111571)
Currently Developed by: tyty1234 (http://www.simplemachines.org/community/index.php?action=profile;u=159909)
Current Version: 1.5
Compatible With: SMF 2.0
Download (http://custom.simplemachines.org/mods/index.php?mod=1301)
Summary
This is a modification that will add member gender to the memberlist. You can also sort by male/female or female/male.
Members with no gender get stacked in the middle if you sort by gender, however.
Need Help?
There are two places where you can get help. The support thread (http://www.simplemachines.org/community/index.php?topic=252102.0) on Simple Machines, or the support thread (http://www.tytyweb.net/forum/mod-support/gender-on-memberlist/) on tytyweb.
Installation
This mod should be installed using the Package Manager. No manual edits should be necessary, but if it comes to that resort, please use the Package Parser (http://www.tytyweb.net/smf/package-parser/).
Changelog
What's new in this version?
Released for SMF 2.0
Dropped 1.1.x support. Do NOT use this version for SMF 1.1.x
Updated. Fixed $txt[] strand to read the local gender strand.
Excellent mod. Thankyou. :)
Thanks for using it.
Every now and then I come across a mod that seems like it should be standard-feature in SMF... then my mind wages a battle over "features vs. bloat" >.>
Nonetheless, this is one of those mods that seems like it should be built in. It is an excellent utility XD
PS: ... No, this is MAAAAAADNEEEEESSS!!! *kicks Leonidas into a pit of sharks*
Quote from: TylTru on July 31, 2008, 08:30:51 PM
Every now and then I come across a mod that seems like it should be standard-feature in SMF... then my mind wages a battle over "features vs. bloat" >.>
Nonetheless, this is one of those mods that seems like it should be built in. It is an excellent utility XD
PS: ... No, this is MAAAAAADNEEEEESSS!!! *kicks Leonidas into a pit of sharks*
Lol, 300 would have been sooo much less epic if that really happened. :P
Nice mod!!!!!
Thanks ccbtimewiz
hi
i dont see the gender icons on the list, can you please let me know if i need to put them there manually?
Quote from: flapjack on September 07, 2008, 09:48:00 PM
hi
i dont see the gender icons on the list, can you please let me know if i need to put them there manually?
Link to site? What do you see there? Are you using a theme that has a custom memberlist.template.php file?
Cool mod, thanks! 8)
I can't seem to get it to work. I am using the default core theme because most mods do not seem to work in other themes. I would like for this to work. please help!
Thanks,
:D
Cool Mod! Should be inbuilt, IMHO.
While it said : Not tested for your version it installed and runs flawlessly on 1.1.7 (mod laden unfresh install).
Thx!
Kind regards,
Rattler
This mod is now compatible for any SMF 2.0 version including 2.0 RC2. ;D
This is mod is now compatible with SMF 2.0 RC3. :)
Quote from: tyty1234 on April 10, 2010, 02:09:34 PM
This is mod is now compatible with SMF 2.0 RC3. :)
thanks for that :D
Is a version for SMF 2.0 RC4 in the works?
Quote from: David8 on December 05, 2010, 11:06:31 PM
Is a version for SMF 2.0 RC4 in the works?
I've been on a really long hiatus, if I find the time again some time this week, I will work on an update. :)
I was trying to make this column permission based. Right now I was trying that gender column is only visible to admins, but the problem is column is shown for other members also without showing any gender icons.
Here are the edits i made so far
In themes\Default\Memberlist.template.php
Actually code:
<td class="windowbg" align="center">', $member['gender']['image'], '</td>';
<td class="windowbg lefttext">', $member['link'], '</td>
Modified it to
';
if($context['user']['is_admin'])
echo '
<td class="windowbg" align="center">', $member['gender']['image'], '</td>';
echo'
<td class="windowbg lefttext">', $member['link'], '</td>
In Sources\Memberlist.php
Actual code:
'gender' => array(
'label' => $txt['gender'],
'width' => '20'
),
Modified it to:
'gender' => (!empty($context['user']['is_admin'])) ?
array(
'label' => $txt['gender'],
'width' => '20'
) :
array(
'label' => '',
'width' => ''
),
Now have a look at the pic attached, all columns have shifted to left for normal members as gender column is still showing up.
Can you make this work in RC5 Cause it doesn't. I tried to fix it my self but no luck.
^ I second that! Apparently, according to a fellow admin at my forum, this doesn't work above RC3. :/
Hey guys,
I want to apologize for not updating the mod periodically and addressing your errors. I've been real busy and it's been so long since I coded for SMF, but with the release of SMF 2.0, the mod will need to be updated. Before I do that however, if you guys would go here (http://www.tytyweb.net/forum/mod-support/gender-on-memberlist/) to report some bugs or errors that you found in the mod so that I can fix those bugs and errors and the next version of this mod can be bug-free and is working smoothly. I promise that I will do my best to update and fix the mod in a timely manner as I have a little free time on my hands.
Thanks,
tyty1234
Version 1.5 has been released! It supports SMF 2.0, but no longer supports SMF 1.1.x forums. Please refer to the OP for what's new in this version. This mod, along with the other mods that I wrote are also available on my site (http://www.tytyweb.net/forum/mod-support/).
Quote from: Jokerâ„¢ on January 18, 2011, 05:32:02 AM
I was trying to make this column permission based. Right now I was trying that gender column is only visible to admins, but the problem is column is shown for other members also without showing any gender icons.
The codes removed to shorten post.
Hello,
Before I install, here's my situation.
I have a forum with males, females, and some members have alters that may be the opposite gender of the body (which are registered ONLY by a staff member). Is it possible/recommended to require gender selection during registration and ONLY have male or female as an option?
Thanks,
Cloud
I was wondering if this mod can be expanded to have multiple genders. Such as couples. mm, ff, mf, and a few others.
I know this is an older thread but seems the appropriate place for my question.
We are just now trying to add the "Gender on Memberlist" feature to our forum. I've researched it here and keep getting directed back to the "Gender on Memberlist" mod that was last updated for SMF 2.0. I've tried to install it but it seems incompatible with SMF 2.0.4, and even if I simulate it for SMF 2.0 there is a conflict with another mod.
Is there a simple way to add the GENDER field to the memberslist page? I just want to add and be able to sort on this.