Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: tyty1234 on July 27, 2008, 09:21:53 PM

Title: Gender on the Memberlist
Post by: tyty1234 on July 27, 2008, 09:21:53 PM
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
Title: Re: Gender on the Memberlist
Post by: ccbtimewiz on July 29, 2008, 03:04:24 PM
Updated. Fixed $txt[] strand to read the local gender strand.
Title: Re: Gender on the Memberlist
Post by: Basie on July 30, 2008, 12:45:10 PM
Excellent mod. Thankyou. :)
Title: Re: Gender on the Memberlist
Post by: ccbtimewiz on July 31, 2008, 12:50:22 PM
Thanks for using it.
Title: Re: Gender on the Memberlist
Post by: 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*
Title: Re: Gender on the Memberlist
Post by: ccbtimewiz on August 04, 2008, 08:07:48 PM
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
Title: Re: Gender on the Memberlist
Post by: blouogies20 on August 05, 2008, 02:39:56 AM
Nice mod!!!!!

Thanks ccbtimewiz
Title: Re: Gender on the Memberlist
Post by: 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?
Title: Re: Gender on the Memberlist
Post by: ccbtimewiz on September 07, 2008, 09:52:47 PM
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?
Title: Re: Gender on the Memberlist
Post by: RoarinRow on September 19, 2008, 01:28:42 PM
Cool mod, thanks!  8)
Title: Re: Gender on the Memberlist
Post by: vegas redbook on December 03, 2008, 08:01:44 PM
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
Title: Re: Gender on the Memberlist
Post by: Rattler on February 02, 2009, 01:22:28 PM
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
Title: Re: Gender on the Memberlist
Post by: tyty1234 on November 26, 2009, 02:51:34 AM
This mod is now compatible for any SMF 2.0 version including 2.0 RC2. ;D
Title: Re: Gender on the Memberlist
Post by: tyty1234 on April 10, 2010, 02:09:34 PM
This is mod is now compatible with SMF 2.0 RC3. :)
Title: Re: Gender on the Memberlist
Post by: phyzer on July 19, 2010, 12:33:55 PM
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
Title: Re: Gender on the Memberlist
Post by: David8 on December 05, 2010, 11:06:31 PM
Is a version for SMF 2.0 RC4 in the works?
Title: Re: Gender on the Memberlist
Post by: tyty1234 on December 13, 2010, 03:39:25 PM
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. :)
Title: Re: Gender on the Memberlist
Post by: 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.

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.
Title: Re: Gender on the Memberlist
Post by: Goodman854 on March 26, 2011, 12:30:19 AM
Can you make this work in RC5 Cause it doesn't. I tried to fix it my self but no luck.
Title: Re: Gender on the Memberlist
Post by: atomicblue on May 17, 2011, 12:10:21 PM
^ I second that! Apparently, according to a fellow admin at my forum, this doesn't work above RC3. :/
Title: Re: Gender on the Memberlist
Post by: tyty1234 on June 16, 2011, 06:03:02 AM
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
Title: Re: Gender on the Memberlist
Post by: tyty1234 on June 23, 2011, 07:30:15 PM
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/).
Title: Re: Gender on the Memberlist
Post by: Siirist on June 25, 2011, 08:05:57 AM
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
Title: Re: Gender on the Memberlist
Post by: mattio41 on September 03, 2011, 08:28:05 AM
I was wondering if this mod can be expanded to have multiple genders. Such as couples. mm, ff, mf, and a few others.
Title: Re: Gender on the Memberlist
Post by: LWillisjr on May 11, 2013, 10:11:10 AM
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.