#################################################################
## MOD Title: Gender In memberlist
## MOD Author: morpheus2matrix <
morpheus2matrix@hotmail.com>
http://morpheus.phpbb.biz
##
## MOD Description: With this mod, the gender appear in the memberlist.
##
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 1 minute
##
## Files To Edit: memberlist.php
## templates/subSilver/memberlist_body.tpl
##
## Included Files: N/A
##
## License:
http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check:
http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at
http://www.phpbb.com/mods/
##############################################################
## Author Notes: N/A
##############################################################
##
## Informations : Ce mod a été testé et remit en page par l'equipe mod de phpBB.biz
##
## Vous en trouverez la derniere version a cette adresse :
##
http://forum.phpbb.biz/viewtopic.php?t=90616
##
## Le support se trouve a cette adresse :
##
http://forum.phpbb.biz/viewtopic.php?p=969890
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
'L_JOINED' => $lang['Joined'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_GENDER' => $lang['Gender'],
#
#-----[ FIND ]------------------------------------------
#
user_posts, user_regdate, user_from
#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_website, user_email,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
user_gender,
#
#-----[ FIND ]------------------------------------------
#
$posts = ( $row['user_posts'] ) ? $row['user_posts'] : 0;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$gender_image = '';
#
#-----[ FIND ]------------------------------------------
#
$www = ( $row['user_website'] ) ? '<a href="' . $row['user_website'] . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( !empty($row['user_gender']))
{
switch ($row['user_gender'])
{
case 1 : $gender_image = "<img src=\"" . $images['icon_minigender_male'] . "\" alt=\"".$lang['Male']."\" title=\"".$lang['Male']. "\" border=\"0\" />"; break;
case 2 : $gender_image = "<img src=\"" . $images['icon_minigender_female'] . "\" alt=\"".$lang['Female']. "\" title=\"".$lang['Female']. "\" border=\"0\" />"; break;
default : $gender_image="";
}
}
#
#-----[ FIND ]------------------------------------------
#
'POSTS' => $posts,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'POSTER_GENDER' => $gender_image,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/memberlist_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<th class="thTop" nowrap="nowrap">{L_USERNAME}</th>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<th class="thTop" nowrap="nowrap">{L_GENDER}</th>
#
#-----[ FIND ]------------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center"><span class="gen"><a href="{memberrow.U_VIEWPROFILE}" class="gen">{memberrow.USERNAME}</a></span></td>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POSTER_GENDER}</span></td>
#
#-----[ FIND ]------------------------------------------
#
<td class="catbottom" colspan="8" height="28"> </td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td class="catbottom" colspan="9" height="28"> </td>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
#