Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 03:45 am EST
Geeklog Forums
recent_post_anchortag issue
Status: offline
dale
Forum User
Newbie
Registered: 02/12/06
Posts: 1
Location:Pewaukee, WI USA
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 )
The truth speaks for itself. I'm just the messenger.
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 )
The truth speaks for itself. I'm just the messenger.
8
9
Quote
All times are EST. The time is now 03:45 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content