www/adiumxtras.com 49:0858f4f0ea98: Fix the links on the profile.
commits at adium.im
commits at adium.im
Fri Feb 20 23:16:02 UTC 2015
details: http://hg.adium.im/www/adiumxtras.com/rev/0858f4f0ea98
revision: 49:0858f4f0ea98
branch: adiumxtras.com
author: Thijs Alkemade <me at thijsalkema.de>
date: Sat Feb 21 00:15:55 2015 +0100
Fix the links on the profile.
diffs (27 lines):
diff -r 20dbd8674de3 -r 0858f4f0ea98 templates/comment.tpl
--- a/templates/comment.tpl Sat Feb 21 00:11:17 2015 +0100
+++ b/templates/comment.tpl Sat Feb 21 00:15:55 2015 +0100
@@ -9,7 +9,11 @@
<a href="javascript:replyComment({$comment.xtra_id}, {$comment.comment_id});">Reply</a>
{/if}
</div>
+ {if $comment.base_url}
+ <h4><a href="{$comment.base_url}#c{$comment.comment_id}">#</a> by
+ {else}
<h4><a href="#c{$comment.comment_id}">#</a> by
+ {/if}
{if $comment.user_id}
<a href="index.php?a=users&do=profile&user_id={$comment.user_id}">{$comment.com_name}</a>
{else}
diff -r 20dbd8674de3 -r 0858f4f0ea98 users.php
--- a/users.php Sat Feb 21 00:11:17 2015 +0100
+++ b/users.php Sat Feb 21 00:15:55 2015 +0100
@@ -358,6 +358,8 @@
$smarty->assign("user", $user);
$sql->query("SELECT * FROM comments WHERE user_id='%d' ORDER BY posted DESC LIMIT 5", intval($_GET['user_id']));
while ($comment = $sql->fetch_assoc()) {
+ $comment["user_id"] = intval($_GET['user_id']);
+ $comment["base_url"] = "http://adiumxtras.com/index.php?a=xtras&xtra_id=" . $comment["xtra_id"];
$comments[] = $comment;
}
$smarty->assign("comments", $comments);
More information about the commits
mailing list