    
##
## Installation Level: Intermediate
## Installation Time:  1 Minute
## Files To Edit:
##      viewtopic.php 
##      language/lang_english/lang_main.php 
##      language/lang_russian/lang_main.php 
##      templates/default/tpl_config.php
##      templates/default/viewtopic.tpl
## Included Files:
##      root/templates/default/images/icon_male.gif 
##      root/templates/default/images/icon_female.gif 
#
# 
#-----[ COPY ]------------------------------------------------ 
# 
copy root/templates/default/images/icon_female.gif to templates/default/images/icon_female.gif
copy root/templates/default/images/icon_male.gif to templates/default/images/icon_male.gif

# 
#-----[ OPEN ]------------------------------------------------ 
# 
viewtopic.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
//
// Go ahead and pull all data for this topic
//
$sql = "
	SELECT

# 
#-----[ IN-LINE FIND ]---------------------------------------- 
# 
u.user_opt,

# 
#-----[ IN-LINE , ADD ]--------------------------------- 
# 
 u.user_gender,

# 
#-----[ FIND ]------------------------------------------------ 
# 
	//
	// Generate ranks, set them to empty string initially.
	//
	$poster_rank = $rank_image = '';

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

$gender_image = '';

# 
#-----[ FIND ]------------------------------------------------ 
# 
	// Buttons
	$pm_btn = '';
    
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

// Start add - Gender MOD 
switch ($postrow[$i]['user_gender']) 
{ 
  case 1 : $gender_image = " <img src=\"" . $images['icon_male'] . "\" alt=\"" . $lang['GENDER'].  ":".$lang['Male']."\" title=\"" .$lang['Male']. "\" border=\"0\" />"; break;
  case 2 : $gender_image = " <img src=\"" . $images['icon_female'] . "\" alt=\"" . $lang['GENDER'].  ":".$lang['Female']."\" title=\"" .$lang['Female']. "\" border=\"0\" />"; break;
  default : $gender_image=""; 
} 
// End add - Gender MOD
    
# 
#-----[ FIND ]------------------------------------------------ 
# 
		'POSTER_RANK'        => $poster_rank,

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

'POSTER_GENDER' => $gender_image,

# 
#-----[ OPEN ]------------------------------------------------ 
# 
templates/default/viewtopic.tpl

# 
#-----[ FIND ]------------------------------------------------ 
# 
		<!-- IF postrow.POSTER_AVATAR --><p class="avatar">{postrow.POSTER_AVATAR}</p><!-- ENDIF -->

# 
#-----[ AFTER, ADD ]---------------------------------- 
# 
		<!-- IF postrow.POSTER_GENDER --><p><em>{L_GENDER}:</em>{postrow.POSTER_GENDER}</p><!-- ENDIF -->
		
# 
#-----[ OPEN ]------------------------------------------------ 
# 
templates/default/tpl_config.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
$images['progress_bar_full']	 = $_main .'progress_bar_full.gif';

# 
#-----[ AFTER, ADD ]----------------------------------------- 
#

$images['icon_male']	       = $_main .'icon_male.gif';
$images['icon_female']	       = $_main .'icon_female.gif';

# 
#-----[ OPEN ]------------------------------------------------ 
# 
language/lang_russian/lang_main.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
  

# 
#-----[ AFTER, ADD ]----------------------------------------- 
#

$lang['Male'] = '';
$lang['Female'] = '';

# 
#-----[ OPEN ]------------------------------------------------ 
# 
language/lang_english/lang_main.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
  

# 
#-----[ AFTER, ADD ]----------------------------------------- 
#

$lang['Male'] = 'Male';
$lang['Female'] = 'Female';