Browse Source

Add link to replies in Replies: to link straight to the anchor on post page.

pull/24/head
Brett Bohnenkamper 5 years ago
parent
commit
37a174947f
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      blog/get_post.php
  2. 1
    1
      blog/view_post.php

+ 1
- 1
blog/get_post.php View File

@@ -43,7 +43,7 @@ if(isset($_POST))
$reply_count = $replies['cnt'];
if ($reply_count > 0)
{
$reply_msg = " | Replies:".$reply_count;
$reply_msg = " | <a href='".get_page_url("blog", $CONF)."/".$author->username."/".$post_id."#replies'>Replies:".$reply_count."</a>";
}
?>
<script>

+ 1
- 1
blog/view_post.php View File

@@ -161,7 +161,7 @@ if (isset($_GET['post']))
<?php
}
?>
<div class="post-comments" id="<?php echo $post_id; ?>"></div>
<div class="post-comments" id="<?php echo $post_id; ?>" name="replies"></div>
<script>
var converter = new Markdown.getSanitizingConverter();
// Title Conversion

Loading…
Cancel
Save