HiddenSanctum wrote: Evil - Great job! An excellent vote from me.
I did have the same typo as a previous poster where only the last post's gender was showing up. In case anyone else has the same problem, when working in viewtopic.php where it says:
#
#-----[ FIND ]------------------------------------------
#
}
$template->pparse('body');
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Gender MOD
if ( $board_config['gender_display'] )
{
$template->assign_block_vars('postrow.switch_gender_display', array());
}
// Gender MOD
pay particular attention to the } located here:
#
#-----[ FIND ]------------------------------------------
#
}
$template->pparse('body');
#
#-----[ BEFORE, ADD ]------------------------------------------
#
Anyway, good job! Keep up the great work!
Code: Select all
#
#-----[ FIND ]------------------------------------------
#
$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies'])
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Gender MOD ------------------------------------------------------------
//-- add
$user_gender = ( isset($HTTP_POST_VARS['user_gender']) ) ? intval( $HTTP_POST_VARS['user_gender'] ) : 0;
//-- fin mod : Gender MOD --------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Gender MOD ------------------------------------------------------------
//-- add
$user_gender = ( isset($HTTP_POST_VARS['user_gender']) ) ? intval( $HTTP_POST_VARS['user_gender'] ) : $userdata['user_gender'];
//-- fin mod : Gender MOD --------------------------------------------------------
Code: Select all
$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies'])
mogster wrote: LOLZ to the "not specified"
Code: Select all
## Author Notes:
## Before creating this MOD i tried to contact niels about his.
## I intended to continue supporting it, and getting it into the
## MODDB. But it was impossible to contact him, so i simply started
## my own. I may be reinventing the wheel, but what's so bad about
## differen't types of wheels?