add 'hellbanned' user class, with support from the comments extension

This commit is contained in:
Shish
2013-09-09 13:41:08 +01:00
parent 7c95981319
commit 1b73dd4ddc
6 changed files with 55 additions and 17 deletions

View File

@@ -212,8 +212,15 @@ class UserPage extends Extension {
global $page, $user, $config;
$h_join_date = autodate($event->display_user->join_date);
if($event->display_user->can("hellbanned")) {
$h_class = $event->display_user->class->parent->name;
}
else {
$h_class = $event->display_user->class->name;
}
$event->add_stats("Joined: $h_join_date", 10);
$event->add_stats("Class: {$event->display_user->class->name}", 90);
$event->add_stats("Class: $h_class", 90);
$av = $event->display_user->get_avatar_html();
if($av) {