From b0822ac3bf874b164f53fa50552267e87e0ed9a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rytis=20Slatkevi=C4=8Dius?= Date: Tue, 27 Mar 2007 14:43:00 +0000 Subject: [PATCH] Allow projects to modify text under user's avatar (from Eric Myers) svn path=/trunk/boinc/; revision=12270 --- html/inc/forum.inc | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/html/inc/forum.inc b/html/inc/forum.inc index 93e359a613..53d68b13bf 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -273,14 +273,20 @@ function show_post($post, $thread, $logged_in_user, $n, $controls=FORUM_CONTROLS if ($user->hasAvatar() && (!$logged_in_user || ($logged_in_user->hasHideAvatars()==false))) { echo "getAvatar()."\" alt=\"Avatar\">
"; } - echo "Joined: ", gmdate('M j, Y', $user->getCreateTime()), "
Posts: ".$user->getPostCount()."
"; + echo "Joined: ", gmdate('M j, Y', $user->getCreateTime()), "
"; + } + + if(function_exists('project_forum_user_info')){ + project_forum_user_info($user); + } else { // default + // circumvent various forms of identity spoofing + // by displaying the user id of the poster. + // its cheap, easy, and doesn't require any additional database calls. + echo "Posts: ".$user->getPostCount()."
"; + echo "ID: ".$user->getID()."
"; + echo "Credit: ".number_format($user->getTotalCredit())."
"; + echo "RAC: ".number_format($user->getExpavgCredit())."
"; } - // circumvent various forms of identity spoofing - // by displaying the user id of the poster. - // its cheap, easy, and doesn't require any additional database calls. - echo "ID: ".$user->getID()."
"; - echo "Credit: ".number_format($user->getTotalCredit())."
"; - echo "RAC: ".number_format($user->getExpavgCredit())."
"; echo ""; if ($controls == FORUM_CONTROLS) {