diff --git a/ext/comment/theme.php b/ext/comment/theme.php index 3fa92b0a..325569e3 100644 --- a/ext/comment/theme.php +++ b/ext/comment/theme.php @@ -1,6 +1,7 @@ anon_id = -1; $html = ""; foreach($comments as $comment) { $html .= $this->comment_to_html($comment, true); @@ -99,6 +101,7 @@ class CommentListTheme extends Themelet { */ public function display_image_comments(Image $image, $comments, $postbox) { global $page; + $this->anon_id = 1; $html = ""; foreach($comments as $comment) { $html .= $this->comment_to_html($comment); @@ -123,7 +126,12 @@ class CommentListTheme extends Themelet { $i_comment_id = int_escape($comment->comment_id); $i_image_id = int_escape($comment->image_id); - $h_userlink = "$h_name"; + $anoncode = ""; + if($h_name == "Anonymous" && $this->anon_id >= 0) { + $anoncode = "{$this->anon_id}"; + $this->anon_id++; + } + $h_userlink = "$h_name$anoncode"; $stripped_nonl = str_replace("\n", "\\n", substr($tfe->stripped, 0, 50)); $stripped_nonl = str_replace("\r", "\\r", $stripped_nonl); $h_dellink = $user->is_admin() ?