diff --git a/ext/bbcode/main.php b/ext/bbcode/main.php index e9c131e6..7ef2bc71 100644 --- a/ext/bbcode/main.php +++ b/ext/bbcode/main.php @@ -38,7 +38,7 @@ class BBCode extends FormatterExtension { $text = preg_replace("/\[i\](.*?)\[\/i\]/s", "\\1", $text); $text = preg_replace("/\[u\](.*?)\[\/u\]/s", "\\1", $text); $text = preg_replace("/\[s\](.*?)\[\/s\]/s", "\\1", $text); - $text = preg_replace("/>>(\d+)(#(\d+))?/s", ">>\\1\\2", $text); + $text = preg_replace("/>>(\d+)(#c?(\d+))?/s", ">>\\1\\2", $text); $text = preg_replace("/(^|\s)#(\d+)/s", "\\1#\\2", $text); $text = preg_replace("/>>([^\d].+)/", "
\\1
", $text); $text = preg_replace("/\[url=((?:https?|ftp|irc|mailto):\/\/.*?)\](.*?)\[\/url\]/s", "\\2", $text); diff --git a/ext/comment/theme.php b/ext/comment/theme.php index 7938448f..f3803cf0 100644 --- a/ext/comment/theme.php +++ b/ext/comment/theme.php @@ -207,7 +207,7 @@ class CommentListTheme extends Themelet { ' - Del' : ''; return ' -
+
'.$h_avatar.' '.$h_timestamp.$h_reply.$h_ip.$h_del.' diff --git a/lib/shimmie.js b/lib/shimmie.js index b2d531a7..9d6077cb 100644 --- a/lib/shimmie.js +++ b/lib/shimmie.js @@ -119,9 +119,9 @@ function deleteCookie( name, path, domain ) { function replyTo(imageId, commentId) { var box = $("#comment_on_"+imageId); - var text = ">>"+imageId+"#"+commentId+": "; + var text = ">>"+imageId+"#c"+commentId+": "; box.focus(); box.val(box.val() + text); - $("[name="+commentId+"]").parent().effect("highlight", {}, 5000); + $("#c"+commentId).effect("highlight", {}, 5000); }