Quote:
Originally Posted by grecostimpy
I'd like it to only show users who have entered anything into field5. (so if nothing was entered in field5, they would not be included)
|
Open the showroster.php file and find:
Code:
if (sizeof($groupcache) >= 1)
{
ksort($groupcache); // alphabetically sort usergroups
foreach ($groupcache AS $users)
{
ksort($users); // alphabetically sort users
$usergroupbits = '';
foreach ($users AS $user)
{
exec_switch_bg();
$user = process_showgroups_userinfo($user);
($hook = vBulletinHook::fetch_hook('showgroups_user')) ? eval($hook) : false;
eval('$usergroupbits .= "' . fetch_template('showroster_usergroupbit') . '";');
}
($hook = vBulletinHook::fetch_hook('showroster_usergroup')) ? eval($hook) : false;
eval('$usergroups .= "' . fetch_template('showroster_usergroup') . '";');
}
}
Change to:
Code:
if (sizeof($groupcache) >= 1)
{
ksort($groupcache); // alphabetically sort usergroups
foreach ($groupcache AS $users)
{
ksort($users); // alphabetically sort users
$usergroupbits = '';
foreach ($users AS $user)
{
if ($user['field5'] != '') {
exec_switch_bg();
$user = process_showgroups_userinfo($user);
($hook = vBulletinHook::fetch_hook('showgroups_user')) ? eval($hook) : false;
eval('$usergroupbits .= "' . fetch_template('showroster_usergroupbit') . '";');
}
}
($hook = vBulletinHook::fetch_hook('showroster_usergroup')) ? eval($hook) : false;
eval('$usergroups .= "' . fetch_template('showroster_usergroup') . '";');
}
}
Let me know how that works.