Posted on: 02/13/06 07:57pm
By: dale
When using the {recent_post_anchortag} in my template, I found that once the first comment is posted, the users loose the ability to start a new comment thread since it no longer evaluates to 'Post a Comment'. If I use the {post_comment_link} in the template, that solves the problem, but when there are no comments, there are now two 'Post a Comment' links.
I hacked a fix that I am including below.
This seems to be an issue that others have encountered, would this be something you may want to include in future releases?
-- The hack I created:
Create a new configuration variable comment_hide_post_anchortag.
config.php:
// If set to 1, the {recent_post_anchortag} will not evaluate to 'Post a comment' if there are no comments
$_CONF['comment_hide_post_anchortag'] = 1;
And use that variable in lib-story.php when $A['comments'] == 0
system/lib-story.php: (Version 1.4)
line 330: Changed else to:
elseif( $_CONF['comment_hide_post_anchortag'] != 0 )