News:

Wondering if this will always be free?  See why free is better.

Main Menu

Gender on the Memberlist

Started by tyty1234, July 27, 2008, 09:21:53 PM

Previous topic - Next topic

tyty1234

Gender On Memberlist

Original Author: ccbtimewiz
Currently Developed by: tyty1234
Current Version: 1.5
Compatible With: SMF 2.0

Download




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 on Simple Machines, or the support thread 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.

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
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

ccbtimewiz

Updated. Fixed $txt[] strand to read the local gender strand.

Basie


ccbtimewiz


TylTru

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*

ccbtimewiz

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

blouogies20


flapjack

hi

i dont see the gender icons on the list, can you please let me know if i need to put them there manually?

ccbtimewiz

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?

RoarinRow


SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

vegas redbook

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

Rattler

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
You can discuss with people, and sometimes it even makes sense to do so. Forget that when confronted with the cruel facts of life... (inspired by SiGnature™).

tyty1234

This mod is now compatible for any SMF 2.0 version including 2.0 RC2. ;D
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

tyty1234

This is mod is now compatible with SMF 2.0 RC3. :)
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

phyzer

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
Mi foro: (buscando patrocinador)

David8

Is a version for SMF 2.0 RC4 in the works?

tyty1234

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. :)
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

Joker™

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.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Goodman854

Can you make this work in RC5 Cause it doesn't. I tried to fix it my self but no luck.

atomicblue

^ I second that! Apparently, according to a fellow admin at my forum, this doesn't work above RC3. :/

Advertisement: