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 113 | Zeile 125 |
---|
// 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
|
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";
| { $sort_order = "DESC"; $sortordernow = "descending";
|
Zeile 139 | Zeile 151 |
---|
$mybb->input['order'] = "descending"; } $order_check[$mybb->input['order']] = " checked=\"checked\"";
|
$mybb->input['order'] = "descending"; } $order_check[$mybb->input['order']] = " checked=\"checked\"";
|
|
|
// Incoming results per page? $mybb->input['perpage'] = $mybb->get_input('perpage', MyBB::INPUT_INT); if($mybb->input['perpage'] > 0 && $mybb->input['perpage'] <= 500)
| // Incoming results per page? $mybb->input['perpage'] = $mybb->get_input('perpage', MyBB::INPUT_INT); if($mybb->input['perpage'] > 0 && $mybb->input['perpage'] <= 500)
|
Zeile 166 | Zeile 178 |
---|
break; default: $like = "LIKE";
|
break; default: $like = "LIKE";
|
}
| }
|
// Limiting results to a certain letter if(isset($mybb->input['letter']))
| // Limiting results to a certain letter if(isset($mybb->input['letter']))
|
Zeile 175 | Zeile 187 |
---|
if($mybb->input['letter'] == -1) { $search_query .= " AND u.username NOT REGEXP('[a-zA-Z]')";
|
if($mybb->input['letter'] == -1) { $search_query .= " AND u.username NOT REGEXP('[a-zA-Z]')";
|
}
| }
|
else if(strlen($letter) == 1) { $search_query .= " AND u.username {$like} '".$db->escape_string_like($letter)."%'";
| else if(strlen($letter) == 1) { $search_query .= " AND u.username {$like} '".$db->escape_string_like($letter)."%'";
|
Zeile 202 | Zeile 214 |
---|
}
$search_url .= "&username=".urlencode($search_username);
|
}
$search_url .= "&username=".urlencode($search_username);
|
}
| }
|
// Website contains $mybb->input['website'] = trim($mybb->get_input('website'));
| // Website contains $mybb->input['website'] = trim($mybb->get_input('website'));
|
Zeile 214 | Zeile 226 |
---|
}
// 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 312 |
---|
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 {
|
Zeile 346 | Zeile 364 |
---|
$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) { eval("\$referral_bit = \"".$templates->get("memberlist_referrals_bit")."\";");
|
// Build referral? if($mybb->settings['usereferrals'] == 1) { eval("\$referral_bit = \"".$templates->get("memberlist_referrals_bit")."\";");
|
| eval("\$referrals_option = \"".$templates->get("memberlist_referrals_option")."\";");
|
}
$usergroup['groupimage'] = '';
| }
$usergroup['groupimage'] = '';
|