Community & Support

little module to remove "reply" links from comments

I use flatcomments module and keep the reply form at the bottom at all times so... want to get rid of the "reply" button.
Easy enough if I hack the comments.module and comment out a few lines, but I'd rather do it the module way.
Know how to make a basic .info file and .module file, but I don't know what sort of code to put in it to override the comment_links function.

Any tips on how to do that. Tried pasting the whole function in there and adding modulename_ to the front of the function... then removing the "reply" array lines. That didn't work. So can anybody straighten me out?

Comments

there are many ways to make

there are many ways to make it ..

1) ask the owner of flatcomment to add a configurable option
or
2) hack into the module
or
3) remove it from the theme

for option 3), it is good if
a. if u use just 1 or a few themes
b. just add 1 line (for each theme) will be ok

We go the drupal way. How about you?
http://www.drupalway.com

Flatcomments developer says

Flatcomments developer says it's on his do list but didn't sound like right away.

I don't think hacking the flatcomments module would help... it doesn't really interract w/the comment_links (yet).

Hacking comment module works, but I'm trying to avoid that.

So... what one line would I be adding to my theme? That sounds like the best option if its that easy.

what theme (or themes) u are

what theme (or themes) u are using?

as mentioned, if there are many themes used in your site, u may need to do it one by one...

We go the drupal way. How about you?
http://www.drupalway.com

Just Zen Classic...

Just Zen Classic... customized a bit

A

A workaround:

Add:

.comment_reply img{
display: none;
}

to your style.css or advanced_forum.css

Thanks... I'm not using the

Thanks... I'm not using the reply button image, but I applied the same principle to the reply text. (code is here #422386: Option to remove "reply" links from comments

It does work, but in my zen classic based theme, there are dividers between the comment links... basically left borders. So making "reply" disappear leaves the border there and there are two of them, then. I like the dividers and I can't really make just the border I want disappear (so far), but I do think the css display:none approach can take of that too eventually. When I get some more time to work on it and figure out the right selector.

(But it may not be necessary depending on how soon Flatcomments module gets the "disable reply link" feature)

nobody click here