Zeile 40 | Zeile 40 |
---|
add_breadcrumb($lang->nav_memberlist_search);
$contact_fields = array();
|
add_breadcrumb($lang->nav_memberlist_search);
$contact_fields = array();
|
foreach(array('aim', 'skype', 'google', 'yahoo', 'icq') as $field)
| foreach(array('skype', 'google', 'yahoo', 'icq') as $field)
|
{ $contact_fields[$field] = ''; $settingkey = 'allow'.$field.'field';
| { $contact_fields[$field] = ''; $settingkey = 'allow'.$field.'field';
|
Zeile 55 | Zeile 55 |
---|
$bgcolors[$field] = alt_trow(); eval('$contact_fields[\''.$field.'\'] = "'.$templates->get('memberlist_search_contact_field').'";'); }
|
$bgcolors[$field] = alt_trow(); eval('$contact_fields[\''.$field.'\'] = "'.$templates->get('memberlist_search_contact_field').'";'); }
|
| }
if($mybb->settings['usereferrals'] == 1) { eval("\$referrals_option = \"".$templates->get("memberlist_referrals_option")."\";");
|
}
eval("\$search_page = \"".$templates->get("memberlist_search")."\";");
| }
eval("\$search_page = \"".$templates->get("memberlist_search")."\";");
|
Zeile 102 | Zeile 107 |
---|
$sort_field = "u.threadnum"; break; case "referrals":
|
$sort_field = "u.threadnum"; break; case "referrals":
|
$sort_field = "u.referrals";
| if($mybb->settings['usereferrals'] == 1) { $sort_field = "u.referrals"; } else { $sort_field = "u.username"; }
|
break; default: $sort_field = "u.username";
| break; default: $sort_field = "u.username";
|
Zeile 110 | Zeile 122 |
---|
break; } $sort_selected[$mybb->input['sort']] = " selected=\"selected\"";
|
break; } $sort_selected[$mybb->input['sort']] = " selected=\"selected\"";
|
|
|
// Incoming sort order? if(isset($mybb->input['order']))
|
// Incoming sort order? if(isset($mybb->input['order']))
|
{
| {
|
$mybb->input['order'] = strtolower($mybb->input['order']); } else
|
$mybb->input['order'] = strtolower($mybb->input['order']); } else
|
{
| {
|
$mybb->input['order'] = strtolower($mybb->settings['default_memberlist_order']); }
| $mybb->input['order'] = strtolower($mybb->settings['default_memberlist_order']); }
|
Zeile 129 | Zeile 141 |
---|
$oppsort = $lang->desc; $oppsortnext = "descending"; $mybb->input['order'] = "ascending";
|
$oppsort = $lang->desc; $oppsortnext = "descending"; $mybb->input['order'] = "ascending";
|
} else {
| } else {
|
$sort_order = "DESC"; $sortordernow = "descending"; $oppsort = $lang->asc;
| $sort_order = "DESC"; $sortordernow = "descending"; $oppsort = $lang->asc;
|
Zeile 196 | Zeile 208 |
---|
$search_url .= "&username_match=begins"; } // Just contains
|
$search_url .= "&username_match=begins"; } // Just contains
|
| else if($mybb->input['username_match'] == "contains") { $search_query .= " AND u.username {$like} '%".$username_like_query."%'"; $search_url .= "&username_match=contains"; } // Exact
|
else {
|
else {
|
$search_query .= " AND u.username {$like} '%".$username_like_query."%'";
| $search_query .= " AND u.username='{$username_like_query}'";
|
}
$search_url .= "&username=".urlencode($search_username);
| }
$search_url .= "&username=".urlencode($search_username);
|
Zeile 214 | Zeile 232 |
---|
}
// Search by contact field input
|
}
// Search by contact field input
|
foreach(array('aim', 'icq', 'google', 'skype', 'yahoo') as $cfield)
| foreach(array('icq', 'google', 'skype', 'yahoo') as $cfield)
|
{ $csetting = 'allow'.$cfield.'field'; $mybb->input[$cfield] = trim($mybb->get_input($cfield));
| { $csetting = 'allow'.$cfield.'field'; $mybb->input[$cfield] = trim($mybb->get_input($cfield));
|
Zeile 300 | Zeile 318 |
---|
if($page && $page > 0) { $start = ($page - 1) * $per_page;
|
if($page && $page > 0) { $start = ($page - 1) * $per_page;
|
| $pages = ceil($num_users / $per_page); if($page > $pages) { $start = 0; $page = 1; }
|
} else
|
} else
|
{
| {
|
$start = 0; $page = 1; }
|
$start = 0; $page = 1; }
|
|
|
$sort = htmlspecialchars_uni($mybb->input['sort']); eval("\$orderarrow['{$sort}'] = \"".$templates->get("memberlist_orderarrow")."\";");
| $sort = htmlspecialchars_uni($mybb->input['sort']); eval("\$orderarrow['{$sort}'] = \"".$templates->get("memberlist_orderarrow")."\";");
|
Zeile 315 | Zeile 339 |
---|
{ $colspan = 7; eval("\$referral_header = \"".$templates->get("memberlist_referrals")."\";");
|
{ $colspan = 7; eval("\$referral_header = \"".$templates->get("memberlist_referrals")."\";");
|
}
| }
|
$multipage = multipage($num_users, $per_page, $page, $search_url);
// Cache a few things
| $multipage = multipage($num_users, $per_page, $page, $search_url);
// Cache a few things
|
Zeile 346 | Zeile 370 |
---|
$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
// Get the display usergroup
|
$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
// Get the display usergroup
|
if(empty($user['displaygroup']))
| if($user['usergroup']) { $usergroup = usergroup_permissions($user['usergroup']); } else { $usergroup = usergroup_permissions(1); }
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");
if(!$user['displaygroup'])
|
{ $user['displaygroup'] = $user['usergroup']; }
|
{ $user['displaygroup'] = $user['usergroup']; }
|
$usergroup = $usergroups_cache[$user['displaygroup']];
| $display_group = usergroup_displaygroup($user['displaygroup']); if(is_array($display_group)) { $usergroup = array_merge($usergroup, $display_group); }
|
// Build referral? if($mybb->settings['usereferrals'] == 1) {
|
// Build referral? if($mybb->settings['usereferrals'] == 1) {
|
| $referral_count = (int) $user['referrals']; if($referral_count > 0) { $uid = (int) $user['uid']; eval("\$user['referrals'] = \"".$templates->get('member_referrals_link')."\";"); }
|
eval("\$referral_bit = \"".$templates->get("memberlist_referrals_bit")."\";");
|
eval("\$referral_bit = \"".$templates->get("memberlist_referrals_bit")."\";");
|
| eval("\$referrals_option = \"".$templates->get("memberlist_referrals_option")."\";");
|
}
$usergroup['groupimage'] = '';
| }
$usergroup['groupimage'] = '';
|