phpBB

Code Changes

File: memberlist.php

  Unmodified   Added   Modified   Removed
Line 1073Line 1073

if ($active_time !== false)
{


if ($active_time !== false)
{

					$sql_where .= " AND u.user_lastvisit " . $find_key_match[$active_select] . ' ' . $active_time;












					if ($active_select === 'lt' && (int) $active[0] == 0 && (int) $active[1] == 0 && (int) $active[2] == 0)
{
$sql_where .= ' AND u.user_lastvisit = 0';
}
else if ($active_select === 'gt')
{
$sql_where .= ' AND u.user_lastvisit ' . $find_key_match[$active_select] . ' ' . $active_time;
}
else
{
$sql_where .= ' AND (u.user_lastvisit > 0 AND u.user_lastvisit < ' . $active_time . ')';
}

				}
}


				}
}


Line 1223Line 1234
			$avatar_img = phpbb_get_group_avatar($group_row);

// ... same for group rank

			$avatar_img = phpbb_get_group_avatar($group_row);

// ... same for group rank

			$user_rank_data = array(

			$group_rank_data = array(

				'title'		=> null,
'img' => null,
'img_src' => null,
);
if ($group_row['group_rank'])
{

				'title'		=> null,
'img' => null,
'img_src' => null,
);
if ($group_row['group_rank'])
{

				$user_rank_data = phpbb_get_user_rank($group_row, false);

				$group_rank_data = $group_helper->get_rank($group_row);





				if ($user_rank_data['img'])

				if ($group_rank_data['img'])

				{

				{

					$user_rank_data['img'] .= '<br />';

					$group_rank_data['img'] .= '<br />';

				}
}
// include modules for manage groups link display or not

				}
}
// include modules for manage groups link display or not

Line 1261Line 1272
				'GROUP_NAME'	=> $group_helper->get_name($group_row['group_name']),
'GROUP_COLOR' => $group_row['group_colour'],
'GROUP_TYPE' => $user->lang['GROUP_IS_' . $group_row['l_group_type']],

				'GROUP_NAME'	=> $group_helper->get_name($group_row['group_name']),
'GROUP_COLOR' => $group_row['group_colour'],
'GROUP_TYPE' => $user->lang['GROUP_IS_' . $group_row['l_group_type']],

				'GROUP_RANK'	=> $user_rank_data['title'],

				'GROUP_RANK'	=> $group_rank_data['title'],


'AVATAR_IMG' => $avatar_img,


'AVATAR_IMG' => $avatar_img,

				'RANK_IMG'		=> $user_rank_data['img'],
'RANK_IMG_SRC' => $user_rank_data['img_src'],

				'RANK_IMG'		=> $group_rank_data['img'],
'RANK_IMG_SRC' => $group_rank_data['img_src'],


'U_PM' => ($auth->acl_get('u_sendpm') && $auth->acl_get('u_masspm_group') && $group_row['group_receive_pm'] && $config['allow_privmsg'] && $config['allow_mass_pm']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;mode=compose&amp;g=' . $group_id) : '',
'U_MANAGE' => ($can_manage_group) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=ucp_groups&amp;mode=manage') : false,)


'U_PM' => ($auth->acl_get('u_sendpm') && $auth->acl_get('u_masspm_group') && $group_row['group_receive_pm'] && $config['allow_privmsg'] && $config['allow_mass_pm']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;mode=compose&amp;g=' . $group_id) : '',
'U_MANAGE' => ($can_manage_group) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=ucp_groups&amp;mode=manage') : false,)