- 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
This commit is contained in:
Rytis Slatkevičius 2007-05-15 10:06:38 +00:00
parent 5bbcc6b3b6
commit 56871331a5
3 changed files with 11 additions and 9 deletions

View File

@ -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 "<img width=\"".AVATAR_WIDTH."\" height=\"".AVATAR_HEIGHT."\" src=\"".$user->getAvatar()."\" alt=\"Avatar\"><br>";
}
echo "Joined: ", gmdate('M j, Y', $user->getCreateTime()), "<br>";
}
echo "<a href=\"forum_pm.php?action=new&userid=".$user->getID()."\" class=\"smalltext\">private message</a><br>\n";
echo "Joined: ", gmdate('M j, Y', $user->getCreateTime()), "<br>";
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 "<tr>\n";
// Search
echo "<td><form action=\"forum_search_action.php\" method=\"POST\">
@ -410,7 +411,6 @@ function show_forum_title($forum=NULL, $thread=NULL, $extended=true) {
</form>
";
echo "</td>\n";
$logged_in_user = get_logged_in_user(false);
// Custom stuff for logged in user

View File

@ -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", "<a href=http://$user->url>http://$user->url</a>");
row2("URL", "<a href=\"http://$user->url\">http://$user->url</a>");
}
show_credit($user);
if ($user->teamid && ($team = lookup_team($user->teamid))) {
row2("Team", "<a href=".URL_BASE."team_display.php?teamid=$team->id>$team->name</a>");
row2("Team", "<a href=\"".URL_BASE."team_display.php?teamid=$team->id\">$team->name</a>");
} else {
row2("Team", "None");
}
if ($user->show_hosts) {
row2("Computers", "<a href=".URL_BASE."hosts_user.php?userid=$user->id>View</a>");
row2("Computers", "<a href=\"".URL_BASE."hosts_user.php?userid=$user->id\">View</a>");
} else {
row2("Computers", "hidden");
}
$tot = total_posts($user);
if ($tot) {
row2("Message boards", "<a href=".URL_BASE."forum_user_posts.php?userid=$user->id>$tot posts</a>");
row2("Message boards", "<a href=\"".URL_BASE."forum_user_posts.php?userid=$user->id\">$tot posts</a>");
}
if ($user->donated == 1) {
@ -268,11 +268,13 @@ function show_user_summary_public($user) {
row2("Donor",$x);
}
}
row2("Contact", "<a href=\"forum_pm.php?action=new&amp;userid=".$user->id."\">Send private message</a>");
}
function show_profile_link($user) {
if ($user->has_profile) {
row2("Profile", "<a href=view_profile.php?userid=$user->id>View</a>");
row2("Profile", "<a href=\"view_profile.php?userid=$user->id\">View</a>");
}
}

View File

@ -156,7 +156,7 @@ function page_tail($show_date=false, $prefix="") {
function display_cvs_versions(){
global $cvs_version_tracker;
echo "\n<!-- CVS VERSIONS -->\n";
echo "\n<!-- SVN VERSIONS -->\n";
for ($i=0;$i<sizeof($cvs_version_tracker);$i++) {
echo "<!-- ".$cvs_version_tracker[$i]." -->\n";
}