$email = ' ';
}
$www_url = $profiledata['user_website'] ? $profiledata['user_website'] : '';
$www_img = $profiledata['user_website'] ? '<a href="' . $profiledata['user_website'] . '" target="_blank"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" /></a>' : '&nbsp;';
$www = $profiledata['user_website'] ? '<a href="' . $profiledata['user_website'] . '" target="_blank">' . $profiledata['user_website'] . '</a>' : '&nbsp;';
$user_sn_im_array = get_user_sn_im_array();
$im_links_array = array();
foreach ($user_sn_im_array as $k => $v) {
    $im_links_array[$k] = $v['alt_name'];
}
$im_links_array['chat'] = 'id';
$all_ims = array();
foreach ($im_links_array as $im_k => $im_v) {
    $all_ims[$im_k] = array('plain' => '&nbsp;', 'icon' => '', 'img' => '&nbsp;', 'url' => '');
    if (!empty($profiledata['user_' . $im_v])) {
        $all_ims[$im_k] = array('plain' => build_im_link($im_k, $profiledata, false, false, false, false, false), 'icon' => build_im_link($im_k, $profiledata, 'icon', true, false, $user_online_status, false), 'img' => build_im_link($im_k, $profiledata, 'icon_tpl', true, false, false, false), 'url' => build_im_link($im_k, $profiledata, false, false, true, false, false));
    }
}
$aim_img = $all_ims['aim']['img'];
$aim = $all_ims['aim']['plain'];
$aim_url = $all_ims['aim']['url'];
$icq_status_img = !empty($profiledata['user_icq']) ? '<a href="http://wwp.icq.com/' . $profiledata['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $profiledata['user_icq'] . '&amp;img=5" width="18" height="18" /></a>' : '&nbsp;';
$icq_img = $all_ims['icq']['img'];
$icq = $all_ims['icq']['plain'];
$icq_url = $all_ims['icq']['url'];
$msn_img = $all_ims['msn']['img'];
$msn = $all_ims['msn']['plain'];
$msn = $msn_img;
$msn_url = $all_ims['msn']['url'];
$skype_img = $all_ims['skype']['img'];
$skype = $all_ims['skype']['plain'];
Example #2
0
		$social_im_icon_type = !empty($images['common_social_images_vt']) ? 'icon' : 'icon_tpl_vt';
		$all_ims = array();
		foreach ($im_links_array as $im_k => $im_v)
		{
			$all_ims[$im_k] = array(
				'plain' => '',
				'img' => '',
				'url' => ''
			);
			if (!empty($postrow[$i]['user_' . $im_v]))
			{
				$all_ims[$im_k] = array(
					'plain' => build_im_link($im_k, $postrow[$i], false, false, false, false, false),
					'img' => build_im_link($im_k, $postrow[$i], $social_im_icon_type, true, false, false, false),
					'url' => build_im_link($im_k, $postrow[$i], false, false, true, false, false)
				);
			}
		}

		$aim_img = $all_ims['aim']['img'];
		$aim = $all_ims['aim']['plain'];
		$aim_url = $all_ims['aim']['url'];

		$icq_status_img = (!empty($postrow[$i]['user_icq'])) ? '<a href="http://wwp.icq.com/' . $postrow[$i]['user_icq'] . '#pager" rel="nofollow"><img src="http://web.icq.com/whitepages/online?icq=' . $postrow[$i]['user_icq'] . '&amp;img=5" width="18" height="18" /></a>' : '';
		$icq_img = $all_ims['icq']['img'];
		$icq = $all_ims['icq']['plain'];
		$icq_url = $all_ims['icq']['url'];

		$msn_img = $all_ims['msn']['img'];
		$msn = $all_ims['msn']['plain'];
Example #3
0
 function cms_block_random_user()
 {
     global $db, $cache, $config, $template, $images, $user, $lang, $block_id, $cms_config_vars;
     // Mighty Gorgon - Multiple Ranks - BEGIN
     @(include_once IP_ROOT_PATH . 'includes/functions_users.' . PHP_EXT);
     $ranks_array = $cache->obtain_ranks(false);
     // Mighty Gorgon - Multiple Ranks - END
     $sql = "SELECT u.*\n\t\t\tFROM " . USERS_TABLE . " u\n\t\t\tWHERE (u.user_id <> " . ANONYMOUS . ")\n\t\t\tORDER BY RAND()\n\t\t\tLIMIT 1";
     $result = $db->sql_query($sql);
     if ($row = $db->sql_fetchrow($result)) {
         $user_id = $row['user_id'];
         $username = colorize_username($row['user_id'], $row['username'], $row['user_color'], $row['user_active']);
         $username_simple = $row['username'];
         $user_pics = $row['user_personal_pics_count'];
         $posts = $row['user_posts'] ? $row['user_posts'] : 0;
         $poster_avatar = user_get_avatar($row['user_id'], $row['user_level'], $row['user_avatar'], $row['user_avatar_type'], $row['user_allowavatar']);
         $poster_posts = $row['user_id'] != ANONYMOUS ? $lang['Posts'] . ': ' . $row['user_posts'] : '';
         $poster_from = $row['user_from'] && $row['user_id'] != ANONYMOUS ? $lang['Location'] . ': ' . $row['user_from'] : '';
         $poster_from_flag = $row['user_from_flag'] && $row['user_id'] != ANONYMOUS ? '<img src="images/flags/' . $row['user_from_flag'] . '" alt="' . $row['user_from_flag'] . '" title="' . $row['user_from'] . '" />' : '';
         $poster_joined = $row['user_id'] != ANONYMOUS ? $lang['Joined'] . ': ' . create_date($lang['JOINED_DATE_FORMAT'], $row['user_regdate'], $config['board_timezone']) : '';
         $poster_age = '';
         $poster_birthday = '';
         if ($row['user_birthday'] != 999999) {
             $this_year = create_date('Y', time(), $config['board_timezone']);
             $this_date = create_date('md', time(), $config['board_timezone']);
             $poster_birthday = realdate('d/m/Y', $row['user_birthday']);
             $poster_age = $this_year - realdate('Y', $row['user_birthday']);
             if ($this_date < $poster_birthday) {
                 $poster_age--;
             }
             $poster_age = $lang['Age'] . ': ' . $poster_age . ' (' . $poster_birthday . ')<br />';
         }
         // Mighty Gorgon - Multiple Ranks - BEGIN
         $user_ranks = generate_ranks($row, $ranks_array);
         if ($user_ranks['rank_01_html'] == '' && $user_ranks['rank_01_img_html'] == '' && $user_ranks['rank_02_html'] == '' && $user_ranks['rank_02_img_html'] == '' && $user_ranks['rank_03_html'] == '' && $user_ranks['rank_03_img_html'] == '' && $user_ranks['rank_04_html'] == '' && $user_ranks['rank_04_img_html'] == '' && $user_ranks['rank_05_html'] == '' && $user_ranks['rank_05_img_html'] == '') {
             $user_ranks['rank_01_html'] = '&nbsp;';
         }
         // Mighty Gorgon - Multiple Ranks - END
         $profile_url = append_sid(CMS_PAGE_PROFILE . '?mode=viewprofile&amp;' . POST_USERS_URL . '=' . $user_id);
         $profile_img = '<a href="' . $profile_url . '"><img src="' . $images['icon_profile'] . '" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" /></a>';
         $profile = '<a href="' . $profile_url . '">' . $lang['Profile'] . '</a>';
         $profile_link = '<a href="' . $profile_url . '">' . $lang['SEE_MORE_DETAILS'] . '</a>';
         $pm_url = append_sid(CMS_PAGE_PRIVMSG . '?mode=post&amp;' . POST_USERS_URL . '=' . $user_id);
         $pm_img = '<a href="' . $pm_url . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" /></a>';
         $pm = '<a href="' . $pm_url . '">' . $lang['PM'] . '</a>';
         // Start add - Gender MOD
         switch ($row['user_gender']) {
             case 1:
                 $gender_image = '<img src="' . $images['icon_minigender_male'] . '" alt="' . $lang['Gender'] . ': ' . $lang['Male'] . '" title="' . $lang['Gender'] . ': ' . $lang['Male'] . '" />';
                 break;
             case 2:
                 $gender_image = '<img src="' . $images['icon_minigender_female'] . '" alt="' . $lang['Gender'] . ': ' . $lang['Female'] . '" title="' . $lang['Gender'] . ': ' . $lang['Female'] . '" />';
                 break;
             default:
                 $gender_image = '';
         }
         // End add - Gender MOD
         if (!empty($row['user_allow_viewemail']) || $user->data['user_level'] == ADMIN) {
             $email_uri = $config['board_email_form'] ? append_sid(CMS_PAGE_PROFILE . '?mode=email&amp;' . POST_USERS_URL . '=' . $user_id) : 'mailto:' . $row['user_email'];
             $email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" /></a>';
             $email = '<a href="' . $email_uri . '">' . $lang['Email'] . '</a>';
         } else {
             $email_img = '';
             $email = '';
         }
         $www_img = $row['user_website'] ? '<a href="' . $row['user_website'] . '" target="_blank"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" /></a>' : '';
         $www = $row['user_website'] ? '<a href="' . $row['user_website'] . '" target="_blank">' . $lang['Website'] . '</a>' : '';
         $user_sn_im_array = get_user_sn_im_array();
         $im_links_array = array();
         foreach ($user_sn_im_array as $k => $v) {
             $im_links_array[$k] = $v['alt_name'];
         }
         $im_links_array['chat'] = 'id';
         $all_ims = array();
         foreach ($im_links_array as $im_k => $im_v) {
             $all_ims[$im_k] = array('plain' => '', 'img' => '', 'url' => '');
             if (!empty($row['user_' . $im_v])) {
                 $all_ims[$im_k] = array('plain' => build_im_link($im_k, $row, false, false, false, false, false), 'img' => build_im_link($im_k, $row, 'icon_tpl_vt', true, false, false, false), 'url' => build_im_link($im_k, $row, false, false, true, false, false));
             }
         }
         $aim_img = $all_ims['aim']['img'];
         $aim = $all_ims['aim']['plain'];
         $aim_url = $all_ims['aim']['url'];
         $icq_status_img = !empty($row['user_icq']) ? '<a href="http://wwp.icq.com/' . $row['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $row['user_icq'] . '&amp;img=5" width="18" height="18" /></a>' : '';
         $icq_img = $all_ims['icq']['img'];
         $icq = $all_ims['icq']['plain'];
         $icq_url = $all_ims['icq']['url'];
         $msn_img = $all_ims['msn']['img'];
         $msn = $all_ims['msn']['plain'];
         $msn_url = $all_ims['msn']['url'];
         $skype_img = $all_ims['skype']['img'];
         $skype = $all_ims['skype']['plain'];
         $skype_url = $all_ims['skype']['url'];
         $yahoo_img = $all_ims['yahoo']['img'];
         $yahoo = $all_ims['yahoo']['plain'];
         $yahoo_url = $all_ims['yahoo']['url'];
         if (!empty($config['plugins']['album']['enabled']) && $row['user_personal_pics_count'] > 0) {
             $album_img = $row['user_personal_pics_count'] ? '<a href="album.' . PHP_EXT . '?user_id=' . $row['user_id'] . '"><img src="' . $images['icon_album'] . '" alt="' . $lang['Show_Personal_Gallery'] . '" title="' . $lang['Show_Personal_Gallery'] . '" /></a>' : '';
             $album = $row['user_personal_pics_count'] ? '<a href="album.' . PHP_EXT . '?user_id=' . $row['user_id'] . '">' . $lang['Show_Personal_Gallery'] . '</a>' : '';
         } else {
             $album_img = '';
             $album = '';
         }
         // ONLINE / OFFLINE - BEGIN
         if ($user->data['user_level'] == ADMIN || $user->data['user_id'] == $user_id || $row['user_allow_viewonline']) {
             if ($row['user_session_time'] >= time() - $config['online_time']) {
                 $online_status_img = '<a href="' . append_sid(CMS_PAGE_VIEWONLINE) . '"><img src="' . $images['icon_online2'] . '" alt="' . $lang['Online'] . '" title="' . $lang['Online'] . '" /></a>';
             } else {
                 $online_status_img = '<img src="' . $images['icon_offline2'] . '" alt="' . $lang['Offline'] . '" title="' . $lang['Offline'] . '" />';
             }
         } else {
             $online_status_img = '<a href="' . append_sid(CMS_PAGE_VIEWONLINE) . '"><img src="' . $images['icon_hidden2'] . '" alt="' . $lang['Hidden'] . '" title="' . $lang['Hidden'] . '" /></a>';
         }
         // ONLINE / OFFLINE - END
         $template->assign_block_vars('random_user', array('L_POSTS' => $lang['Posts'], 'USERNAME' => $username, 'POSTS' => $posts, 'U_VIEWPOSTER' => append_sid(CMS_PAGE_PROFILE . '?mode=viewprofile&amp;' . POST_USERS_URL . '=' . $user_id), 'U_VIEWPOSTS' => append_sid(CMS_PAGE_SEARCH . '?search_author=' . urlencode(ip_utf8_decode($username_simple)) . '&amp;showresults=posts'), 'POSTER_AGE' => $poster_age, 'POSTER_BIRTHDAY' => $poster_birthday, 'USER_RANK_01' => $user_ranks['rank_01_html'], 'USER_RANK_01_IMG' => $user_ranks['rank_01_img_html'], 'USER_RANK_02' => $user_ranks['rank_02_html'], 'USER_RANK_02_IMG' => $user_ranks['rank_02_img_html'], 'USER_RANK_03' => $user_ranks['rank_03_html'], 'USER_RANK_03_IMG' => $user_ranks['rank_03_img_html'], 'USER_RANK_04' => $user_ranks['rank_04_html'], 'USER_RANK_04_IMG' => $user_ranks['rank_04_img_html'], 'USER_RANK_05' => $user_ranks['rank_05_html'], 'USER_RANK_05_IMG' => $user_ranks['rank_05_img_html'], 'POSTER_GENDER' => $gender_image, 'POSTER_JOINED' => $poster_joined, 'POSTER_POSTS' => $poster_posts, 'POSTER_FROM' => $poster_from, 'POSTER_FROM_FLAG' => $poster_from_flag, 'POSTER_AVATAR' => $poster_avatar, 'PROFILE_IMG' => $profile_img, 'PROFILE' => $profile, 'PROFILE_LINK' => $profile_link, 'PM_IMG' => $pm_img, 'PM' => $pm, 'EMAIL_IMG' => !$user->data['session_logged_in'] ? '' : $email_img, 'EMAIL' => $email, 'WWW_IMG' => $www_img, 'WWW' => $www, 'ICQ_STATUS_IMG' => $icq_status_img, 'ICQ_IMG' => $icq_img, 'ICQ' => $icq, 'AIM_IMG' => $aim_img, 'AIM' => $aim, 'MSN_IMG' => $msn_img, 'MSN' => $msn, 'YIM_IMG' => $yahoo_img, 'YIM' => $yahoo, 'SKYPE_IMG' => $skype_img, 'SKYPE' => $skype, 'POSTER_ONLINE_STATUS_IMG' => $online_status_img));
     }
     $db->sql_freeresult($result);
 }
Example #4
0
function generate_user_info(&$row, $date_format = false, $is_moderator = false)
{
    global $config, $lang, $images, $user;
    $date_format = $date_format == false ? $lang['JOINED_DATE_FORMAT'] : $date_format;
    $info_array = array('avatar', 'first_name', 'last_name', 'from', 'posts', 'joined', 'gender', 'flag', 'style', 'age', 'birthday', 'avatar', 'profile_url', 'profile_img', 'profile', 'pm_url', 'pm_img', 'pm', 'search_url', 'search_img', 'search', 'ip_url', 'ip_img', 'ip', 'email_url', 'email_img', 'email', 'www_url', 'www_img', 'www', 'online_status_url', 'online_status_class', 'online_status_img', 'online_status');
    $user_sn_im_array = get_user_sn_im_array();
    foreach ($user_sn_im_array as $k => $v) {
        $info_array[] = $k;
        $info_array[] = $k . '_img';
        $info_array[] = $k . '_url';
    }
    // Initialize everything...
    $user_info = array();
    for ($i = 0; $i < sizeof($info_array); $i++) {
        $user_info[$info_array[$i]] = '';
    }
    $user_info['from'] = !empty($row['user_from']) ? $row['user_from'] : '&nbsp;';
    $user_info['joined'] = create_date($date_format, $row['user_regdate'], $config['board_timezone']);
    $user_info['posts'] = $row['user_posts'] ? $row['user_posts'] : 0;
    $user_info['style'] = $row['style_name'] ? $row['style_name'] : '';
    $user_info['avatar'] = user_get_avatar($row['user_id'], $row['user_level'], $row['user_avatar'], $row['user_avatar_type'], $row['user_allowavatar']);
    if (empty($user->data['user_id']) || $user->data['user_id'] == ANONYMOUS) {
        if (!empty($row['user_viewemail'])) {
            $user_info['email_img'] = '<img src="' . $images['icon_email'] . '" alt="' . $lang['Hidden_email'] . '" title="' . $lang['Hidden_email'] . '" />';
        } else {
            $user_info['email_img'] = '&nbsp;';
        }
        $user_info['email'] = '&nbsp;';
    } elseif (!empty($row['user_allow_viewemail']) || $is_moderator || $user->data['user_level'] == ADMIN) {
        $user_info['email_url'] = $config['board_email_form'] ? append_sid(CMS_PAGE_PROFILE . '?mode=email&amp;' . POST_USERS_URL . '=' . $row['user_id']) : 'mailto:' . $row['user_email'];
        $user_info['email_img'] = '<a href="' . $user_info['email_url'] . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" /></a>';
        $user_info['email'] = '<a href="' . $user_info['email_url'] . '">' . $lang['Send_email'] . '</a>';
    } else {
        $user_info['email_img'] = '&nbsp;';
        $user_info['email'] = '&nbsp;';
    }
    if (isset($row['ct_last_used_ip']) && $user->data['user_level'] == ADMIN) {
        $user_info['ip_url'] = 'http://www.nic.com/cgi-bin/whois.cgi?query=' . htmlspecialchars(urlencode($row['ct_last_used_ip']));
        $user_info['ip_img'] = '<a href="' . $user_info['ip_url'] . '" target="_blank"><img src="' . $images['icon_ip2'] . '" alt="' . $lang['View_IP'] . ' (' . htmlspecialchars($row['ct_last_used_ip']) . ')" title="' . $lang['View_IP'] . ' (' . htmlspecialchars($row['ct_last_used_ip']) . ')" /></a>';
        $user_info['ip'] = '<a href="' . $user_info['ip_url'] . '">' . $lang['View_IP'] . '</a>';
    }
    $user_info['profile_url'] = append_sid(CMS_PAGE_PROFILE . '?mode=viewprofile&amp;' . POST_USERS_URL . '=' . $row['user_id']);
    $user_info['profile_img'] = '<a href="' . $user_info['profile_url'] . '"><img src="' . $images['icon_profile'] . '" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" /></a>';
    $user_info['profile'] = '<a href="' . $user_info['profile_url'] . '">' . $lang['Read_profile'] . '</a>';
    $user_info['pm_url'] = append_sid(CMS_PAGE_PRIVMSG . '?mode=post&amp;' . POST_USERS_URL . '=' . $row['user_id']);
    $user_info['pm_img'] = '<a href="' . $user_info['pm_url'] . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" /></a>';
    $user_info['pm'] = '<a href="' . $user_info['pm_url'] . '">' . $lang['Send_private_message'] . '</a>';
    $user_info['search_url'] = append_sid(CMS_PAGE_SEARCH . '?search_author=' . urlencode($username) . '&amp;showresults=posts');
    $user_info['search_img'] = '<a href="' . $search_url . '"><img src="' . $images['icon_search'] . '" alt="' . sprintf($lang['Search_user_posts'], $username) . '" title="' . sprintf($lang['Search_user_posts'], $username) . '" /></a>';
    $user_info['search'] = '<a href="' . $search_url . '">' . sprintf($lang['Search_user_posts'], $username) . '</a>';
    $user_info['www_img'] = !empty($row['user_website']) ? '<a href="' . $row['user_website'] . '" target="_blank"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" /></a>' : '';
    $user_info['www'] = !empty($row['user_website']) ? '<a href="' . $row['user_website'] . '" target="_blank">' . $lang['Visit_website'] . '</a>' : '';
    $user_info['www_url'] = !empty($row['user_website']) ? $row['user_website'] : '';
    $user_sn_im_array = get_user_sn_im_array();
    $im_links_array = array();
    foreach ($user_sn_im_array as $k => $v) {
        $im_links_array[$k] = $v['alt_name'];
    }
    $im_links_array['chat'] = 'id';
    $all_ims = array();
    foreach ($im_links_array as $im_k => $im_v) {
        $all_ims[$im_k] = array('plain' => '', 'img' => '', 'url' => '');
        if (!empty($row['user_' . $im_v])) {
            $all_ims[$im_k] = array('plain' => build_im_link($im_k, $row, false, false, false, false, false), 'img' => build_im_link($im_k, $row, 'icon_tpl_vt', true, false, false, false), 'url' => build_im_link($im_k, $row, false, false, true, false, false));
        }
        $user_info[$im_k . '_img'] = $all_ims[$im_k]['img'];
        $user_info[$im_k] = $all_ims[$im_k]['plain'];
        $user_info[$im_k . '_url'] = $all_ims[$im_k]['url'];
    }
    $user_info['icq_status_img'] = !empty($row['user_icq']) ? '<a href="http://wwp.icq.com/' . $row['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $row['user_icq'] . '&amp;img=5" width="18" height="18" /></a>' : '';
    // ONLINE / OFFLINE - BEGIN
    $user_info['online_status_url'] = append_sid(CMS_PAGE_VIEWONLINE);
    // Start as offline...
    $user_info['online_status_img'] = '<img src="' . $images['icon_offline2'] . '" alt="' . $lang['Offline'] . '" title="' . $lang['Offline'] . '" />';
    $user_info['online_status_lang'] = $lang['Offline'];
    $user_info['online_status_class'] = 'offline';
    if ($row['user_session_time'] >= time() - $config['online_time']) {
        if (!empty($row['user_allow_viewonline'])) {
            $user_info['online_status_img'] = '<a href="' . $user_info['online_status_url'] . '"><img src="' . $images['icon_online2'] . '" alt="' . $lang['Online'] . '" title="' . $lang['Online'] . '" /></a>';
            $user_info['online_status_lang'] = $lang['Online'];
            $user_info['online_status_class'] = 'online';
        } elseif (isset($row['user_allow_viewonline']) && empty($row['user_allow_viewonline']) && ($user->data['user_level'] == ADMIN || $user->data['user_id'] == $user_id)) {
            $user_info['online_status_img'] = '<a href="' . $user_info['online_status_url'] . '"><img src="' . $images['icon_hidden2'] . '" alt="' . $lang['Hidden'] . '" title="' . $lang['Hidden'] . '" /></a>';
            $user_info['online_status_lang'] = $lang['Hidden'];
            $user_info['online_status_class'] = 'hidden';
        }
    }
    // ONLINE / OFFLINE - END
    // GENDER - BEGIN
    $user_info['gender'] = '';
    if (isset($row['user_gender'])) {
        switch ($row['user_gender']) {
            case 1:
                $user_info['gender'] = '<img src="' . $images['icon_minigender_male'] . '" alt="' . $lang['Gender'] . ': ' . $lang['Male'] . '" title="' . $lang['Gender'] . ': ' . $lang['Male'] . '" />';
                break;
            case 2:
                $user_info['gender'] = '<img src="' . $images['icon_minigender_female'] . '" alt="' . $lang['Gender'] . ': ' . $lang['Female'] . '" title="' . $lang['Gender'] . ': ' . $lang['Female'] . '" />';
                break;
            default:
                $user_info['gender'] = '';
                break;
        }
    }
    // GENDER - END
    if (isset($row['user_birthday_y'])) {
        $time_now = time();
        $b_year = create_date('Y', $time_now, $config['board_timezone']);
        $user_info['age'] = '(' . (intval($b_year) - intval($row['user_birthday_y'])) . ')';
    }
    /*
    	$template->assign_vars(array(
    		'L_USER_PROFILE' => $lang['Profile'],
    		'L_PM' => $lang['Private_Message'],
    		'L_EMAIL' => $lang['Email'],
    		'L_POSTS' => $lang['Posts'],
    		'L_CONTACTS' => $lang['User_Contacts'],
    		'L_WEBSITE' => $lang['Website'],
    		'L_FROM' => $lang['Location'],
    		'L_ONLINE_STATUS' => $lang['Online_status'],
    
    		'FROM' => $user_info['from'],
    		'JOINED' => $user_info['joined'],
    		'POSTS' => $user_info['posts'],
    		'AVATAR_IMG' => $user_info['avatar'],
    		'AGE' => $user_info['age'],
    		'GENDER' => $user_info['gender'],
    		'STYLE' => $user_info['style'],
    		'PROFILE_URL' => $user_info['profile_url'],
    		'PROFILE_IMG' => $user_info['profile_img'],
    		'PROFILE' => $user_info['profile'],
    		'PM_URL' => $user_info['pm_url'],
    		'PM_IMG' => $user_info['pm_img'],
    		'PM' => $user_info['pm'],
    		'SEARCH_URL' => $user_info['search_url'],
    		'SEARCH_IMG' => $user_info['search_img'],
    		'SEARCH' => $user_info['search'],
    		'IP_URL' => $user_info['ip_url'],
    		'IP_IMG' => $user_info['ip_img'],
    		'IP' => $user_info['ip'],
    		'EMAIL_URL' => $user_info['email_url'],
    		'EMAIL_IMG' => $user_info['email_img'],
    		'EMAIL' => $user_info['email'],
    		'WWW_URL' => $user_info['www_url'],
    		'WWW_IMG' => $user_info['www_img'],
    		'WWW' => $user_info['www'],
    		'AIM_URL' => $user_info['aim_url'],
    		'AIM_IMG' => $user_info['aim_img'],
    		'AIM' => $user_info['aim'],
    		'ICQ_STATUS_IMG' => $user_info['icq_status_img'],
    		'ICQ_URL' => $user_info['icq_url'],
    		'ICQ_IMG' => $user_info['icq_img'],
    		'ICQ' => $user_info['icq'],
    		'MSN_URL' => $user_info['msn_url'],
    		'MSN_IMG' => $user_info['msn_img'],
    		'MSN' => $user_info['msn'],
    		'SKYPE_URL' => $user_info['skype_url'],
    		'SKYPE_IMG' => $user_info['skype_img'],
    		'SKYPE' => $user_info['skype'],
    		'YIM_URL' => $user_info['yahoo_url'],
    		'YIM_IMG' => $user_info['yahoo_img'],
    		'YIM' => $user_info['yahoo'],
    		'ONLINE_STATUS_URL' => $user_info['online_status_url'],
    		'ONLINE_STATUS_CLASS' => $user_info['online_status_class'],
    		'ONLINE_STATUS_IMG' => $user_info['online_status_img'],
    		'ONLINE_STATUS' => $user_info['online_status'],
    		'L_ONLINE_STATUS' => $user_info['online_status_lang'],
    		)
    	);
    */
    return $user_info;
}