After the user click on the "Add new comment" button, the node title will then change to "Add new comment". How could we prevent that without hacking the comment module? So that it will only add the comment form at the bottom of the node, and leave everything above it unchanged?

Thanks a lot in advance.

Anto

Comments

aryanto’s picture

I still can not find the way to change the title.

FYI, I set the comment form to appear on different page instead of at the bottom of the page.

Now, I can not also figure out why does the comment module need to change the path to comment/reply/nid#comment-form? Why doesn't it just append the #comment-form to the original path?

Because by doing it like that, it also screws up the active navigation or menu link of the original path.

Could anybody explain this?

Thanks a lot.

Anto

aryanto’s picture

What I am looking for is actually to display the Comment form only when the users click on the "Add new comment" button. But that creates all the problems I mentioned above. I don't want to display the Comment form at the bottom of every pages which I allow the user to post the comment. Because the pages look messy and that just produces additional unnecessary load on my server as I use CAPTCHA on the comment form.

It seems AJAX Comments module is the solution for that. So I decided not to hack the Comment module, which will add more hassle every time I upgrade Drupal. But lets see how it goes.

I can not actually believe how could Comment module be part of Drupal core, as I think that is just a half ready module.