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 { $sort_order = "DESC";
| else { $sort_order = "DESC";
|
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 274 | Zeile 286 |
---|
$search_query .= " AND u.usergroup NOT IN ({$hiddengroup})";
foreach($group as $hidegid)
|
$search_query .= " AND u.usergroup NOT IN ({$hiddengroup})";
foreach($group as $hidegid)
|
{
| {
|
switch($db->type) { case "pgsql":
| switch($db->type) { case "pgsql":
|
Zeile 346 | Zeile 358 |
---|
$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"); $display_group = usergroup_displaygroup($user['displaygroup']); if(is_array($display_group))
|
{
|
{
|
$user['displaygroup'] = $user['usergroup'];
| $usergroup = array_merge($usergroup, $display_group);
|
}
|
}
|
$usergroup = $usergroups_cache[$user['displaygroup']];
| |
// 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'] = '';
|