Option to remove "reply" links from comments

aharown07 - April 3, 2009 - 03:18
Project:Flatcomments
Version:6.x-2.0
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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?

#1

aharown07 - April 3, 2009 - 03:18
Title:Option to remove "reply" buttons from comments» Option to remove "reply" links from comments

#2

dragonwize - April 3, 2009 - 12:49
Status:active» postponed

That option is in my future vision.

#3

aharown07 - April 4, 2009 - 04:28

Good to know!

#4

the force - April 7, 2009 - 12:42

A workaround:

Add:

.comment_reply img{
display: none;
}

to your style.css or advanced_forum.css

#5

aharown07 - April 7, 2009 - 12:46

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.

#6

aharown07 - April 7, 2009 - 13:12

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.

#7

dragonwize - June 5, 2009 - 05:11
Status:postponed» fixed

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

#8

frankcarey - June 11, 2009 - 18:28

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

#9

dragonwize - June 11, 2009 - 18:40

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.

#10

aharown07 - June 15, 2009 - 22:40

Thanks, sounds good.

#11

Tally - June 17, 2009 - 04:29
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.

#12

dragonwize - June 17, 2009 - 04:36
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..

#13

frankcarey - June 17, 2009 - 15:07

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

#14

frankcarey - June 17, 2009 - 15:27

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

#15

frankcarey - June 17, 2009 - 15:32

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

#16

dragonwize - June 18, 2009 - 03:15

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

#17

System Message - July 2, 2009 - 03:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.