From 56871331a5264995a2d8806e2aa063129c3d1bc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rytis=20Slatkevi=C4=8Dius?= Date: Tue, 15 May 2007 10:06:38 +0000 Subject: [PATCH] - Fix #189: add links to send PMs below user name in the forum, in the user overview and in user profile page. - Change "CVS" into "SVN" in the CVS version tracker (automatically generated comment in the pages showing page revision number) svn path=/trunk/boinc/; revision=12666 --- html/inc/forum.inc | 6 +++--- html/inc/user.inc | 12 +++++++----- html/inc/util.inc | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/html/inc/forum.inc b/html/inc/forum.inc index 83dc25cb02..8170d14afd 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -274,9 +274,11 @@ 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()), "
"; } + echo "getID()."\" class=\"smalltext\">private message
\n"; + echo "Joined: ", gmdate('M j, Y', $user->getCreateTime()), "
"; + if(function_exists('project_forum_user_info')){ project_forum_user_info($user); } else { // default @@ -397,7 +399,6 @@ function show_forum_title($forum=NULL, $thread=NULL, $extended=true) { if ($extended) { start_table_noborder(); echo "\n"; - // Search echo "
@@ -410,7 +411,6 @@ function show_forum_title($forum=NULL, $thread=NULL, $extended=true) {
"; echo "\n"; - $logged_in_user = get_logged_in_user(false); // Custom stuff for logged in user diff --git a/html/inc/user.inc b/html/inc/user.inc index f1a55df80e..c0ad7c147b 100644 --- a/html/inc/user.inc +++ b/html/inc/user.inc @@ -242,23 +242,23 @@ function show_user_summary_public($user) { row2(PROJECT." member since", date_str($user->create_time)); row2("Country", $user->country); if (strlen($user->url)) { - row2("URL", "url>http://$user->url"); + row2("URL", "url\">http://$user->url"); } show_credit($user); if ($user->teamid && ($team = lookup_team($user->teamid))) { - row2("Team", "id>$team->name"); + row2("Team", "id\">$team->name"); } else { row2("Team", "None"); } if ($user->show_hosts) { - row2("Computers", "id>View"); + row2("Computers", "id\">View"); } else { row2("Computers", "hidden"); } $tot = total_posts($user); if ($tot) { - row2("Message boards", "id>$tot posts"); + row2("Message boards", "id\">$tot posts"); } if ($user->donated == 1) { @@ -268,11 +268,13 @@ function show_user_summary_public($user) { row2("Donor",$x); } } + + row2("Contact", "id."\">Send private message"); } function show_profile_link($user) { if ($user->has_profile) { - row2("Profile", "id>View"); + row2("Profile", "id\">View"); } } diff --git a/html/inc/util.inc b/html/inc/util.inc index 06854dde62..3119592c77 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -156,7 +156,7 @@ function page_tail($show_date=false, $prefix="") { function display_cvs_versions(){ global $cvs_version_tracker; - echo "\n\n"; + echo "\n\n"; for ($i=0;$i\n"; }