With flatcomments working and the reply form always displayed, I don't really have any use for the "reply" link. Have looked at various threads on the topic of how to remove it, but the only thing I've been able to get to work is commenting out the appropriate lines in the core comment.module.
Would really rather not do that, so I'm working on a little module to do it.

Meanwhile, would you consider adding a "reply link disable" option to flatcomments in the future?

CommentFileSizeAuthor
#31 Capture.JPG17.34 KBmishac

Comments

aharown07’s picture

Title: Option to remove "reply" buttons from comments » Option to remove "reply" links from comments
dragonwize’s picture

Status: Active » Postponed

That option is in my future vision.

aharown07’s picture

Good to know!

the force’s picture

A workaround:

Add:

.comment_reply img{
display: none;
}

to your style.css or advanced_forum.css

aharown07’s picture

Great idea, but I'm not using the images... just the text link. But maybe the same method can work w/o the img selector. Will give it a try.

aharown07’s picture

Well, in my theme this works remove the reply text....

li.comment_reply a {
display: none;
}

the problem is that, since I'm based on zen classic, there are dividers between the comment links, so have to figure out how to get just one of those out as well. The dividers are a border-left style (ul.links li) so I'd have to disable the border but only for the link immediately to the right of the reply link... which happens to be a link some people see and others don't so... I don't think I can do it via CSS, though I'm sure in lots of other themes, that would work fine.

dragonwize’s picture

Status: Postponed » Fixed

Option to remove the reply link has been committed. Will be in the upcoming 2.0 release.

frankcarey’s picture

so, for the new "remove reply" option, does it remove the link completely, or just brings you to the bottom of the page?

dragonwize’s picture

It "removes" the reply link from comments. The "add comment" link is still shown on the node. Also below the comment thread if your form is on a separate page.

aharown07’s picture

Thanks, sounds good.

Tally’s picture

Version: 6.x-1.2 » 6.x-2.0
Status: Fixed » Active

Changing this from "fixed" to "active" instead of creating a new issue.

I just installed the 6.x-2.0 version on my test site, and after checking the box to remove the reply button for each content type, I still have the reply button on my comments. I even created a new blog and made comments. The Reply button is still there.

I am running Advanced Forum and my links are buttons. When I disable Advanced Forum, the links go back to text links, and the Reply link is gone.

dragonwize’s picture

Status: Active » Fixed

@Tally:

That is because the only way we have to remove the link at this time is through the theme layer with a regex. So we remove the link. For the majority of users this is a work around until D7 or beyond when this is fixed.

A new issue would be more appropriate to file this under but I can save you some time and tell you now that issue would be marked "by design" or "won't fix" until the core patch lands.

See this issue for more detail: #374463: Alter comment links..

frankcarey’s picture

I'm not seeing the option... maybe you could highlight some instructions to get this working?

frankcarey’s picture

README.txt has the documentation. Go to content->content-type-> YOUR CONTENT TYPE -> Comment Settings -> Remove links checkbox

frankcarey’s picture

FYI, not working even after enabling and flushing cache. Will start a new issue per dragonwize.

dragonwize’s picture

I've made a note on the project page to hopefully clear up this issue for the time being.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

hanginthere’s picture

Version: 6.x-2.0 » 7.x-2.0
Status: Closed (fixed) » Active

these directions don't work for d7 content->content-type-> YOUR CONTENT TYPE -> Comment Settings -> Remove links checkbox
when you select content, there is only add content or find content option. there is no content type. in the comment settings for basic page, it only has open or close comment. i don't see any remove links checbox

dragonwize’s picture

Status: Active » Closed (fixed)

It sounds like you are looking at the node edit form and not the content type edit form.

hanginthere’s picture

Status: Closed (fixed) » Active

hello dragon, thx for reply. the content type edit form is under structure>content types>edit>comment settings, but the only option is checkbox 'Show reply form on the same page as comments'. There is no option to remove reply link. i'm not talking about the reply form. i want to remove the reply LINK.

dragonwize’s picture

Status: Active » Closed (fixed)

All my test work. If you are still having an issue please open a separate issue as a bug report. A screen shot would also help.

mishac’s picture

Category: feature » bug
Status: Closed (fixed) » Active
StatusFileSize
new17.34 KB

This issue is still happening on Drupal 7.

Screenshot attached.

dragonwize’s picture

Version: 7.x-2.0 » 6.x-2.0
Category: bug » feature
Status: Active » Closed (fixed)

D7 is different. Please create a different issue if you think you are experiencing a problem.

mishac’s picture

this issue _was_ labeled 7.x when I added my comment.

nagiek’s picture

You can do it in your theme's template.php file pretty easily.

/**
 * Implements hook_comment_view().
 */
function mytheme_comment_view($comment, $view_mode, $langcode) {
  unset($comment->content['links']['comment']['#links']['comment-reply']);
}
cdiaz_seres’s picture

Thanks Nagiek, very helpful! Any ideas on how to remove the ability to Reply to comments altogether? I just don't want any replies to comments at all, it becomes a mess when you have to delete one reply,the function deletes all subsequent replies as well. (common problem with forums) Your code nicely removes Replies from being viewed, but when logged in the ability is to Reply is still there. Any help much appreciated!

dragonwize’s picture

@cdiaz_seres: That is exactly what flatcomments module does. It forces comments to be a reply to the node hence removing the ability to reply to a comment.