optional user links on user page

git-svn-id: file:///home/shish/svn/shimmie2/trunk@413 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2007-08-01 17:11:46 +00:00
parent f36c783868
commit ff5f41c91e
3 changed files with 185 additions and 1 deletions

View File

@@ -83,6 +83,12 @@ class UserPage extends Extension {
global $user;
global $config;
$this->theme->display_user_page($event->page, $event->user, $user);
if($user->id == $event->user->id) {
$ubbe = new UserBlockBuildingEvent($event->user);
send_event($ubbe);
ksort($ubbe->parts);
$this->theme->display_user_links($event->page, $event->user, $ubbe->parts);
}
if(($user->is_admin() || $user->id == $event->user->id) && ($user->id != $config->get_int('anon_id'))) {
$this->theme->display_ip_list($event->page, $this->count_upload_ips($event->user), $this->count_comment_ips($event->user));
}