I have this saved (was posted in this thread sometime ago):
With this insatalled, now on my forums only admins can see the warning leve indicator in each post. And users only see if they have been issued a warning.
Quote:
When I added this my users went nuts - had no clue what it was and those with 0% thought they were in trouble.
I made a slight modification:
Code:
if ($Current == 0 && $user['userid'] == $vbulletin->userinfo['userid']) {
return 'No warnings.';
}
in the functions_warnings.php script above the return so that it would display No warnings to the user if they had a 0% score. This seems to have cut down on the panic.
Yes, because this only appears to the user themselves; not to the moderators who would warn that user. It's to avoid a 0% display which is confusing to my users.
I put it in the first function in functions_warning.php:
if ($Empty > 0)
{
for ($e = 0; $e < $Empty; $e++)
{
$Bits[] = bit_builder();
}
}
if ($Current == 0 && $user['userid'] == $vbulletin->userinfo['userid']) {
return 'No warnings.';
}
|