User account menu

  • Log in
BXTra.net

Breadcrumb

  • Home
  • Articles
  • [HOW-TO] Drupal 6 : Add additional "Add Comment" link into the node

[HOW-TO] Drupal 6 : Add additional "Add Comment" link into the node

By BXTra | 6:37 PM PST, Tue January 18, 2011
Drupal
Just edit node.tpl.php and insert code below to anywhere you want :

<?php
print l(t('Add Comment'), 'comment/reply/' . $node->nid, array('fragment' => 'comment-form'));
?>

Make sure that , 'comment/reply/' part is relative to your path. If you access your website through www.myweb.com/web. Then, that part would be , 'web/comment/reply/'

Note : In case you are using Acquia Prosper theme, edit node-product.tpl.php instead.

Source : http://drupal.org/node/870344
About text formats
  • No HTML tags allowed.
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.

THX ! Could you describe how

bart

Sun, 07/03/2011 - 08:03
Permalink
New
THX ! Could you describe how u put this code ? I mean how did know what to put in this line.
  • Reply

As I said, you can put it

BXTra

Tue, 07/05/2011 - 01:55
Permalink
New
As I said, you can put it anywhere you want. Just make sure it's not within . If it's not working, make sure you clear your cache.
  • Reply

In reply to THX ! Could you describe how by bart

Add new comment | BXTra.net

Peter

Sat, 10/13/2012 - 18:29
Permalink
New
I'm not sure where you're getting your info, but great topic. I needs to spend some time learning more or understanding more. Thanks for magnificent info I was looking for this info for my mission. Peter
  • Reply

In reply to THX ! Could you describe how by bart

Yea I know that (I'm using it

Anonymous

Thu, 07/07/2011 - 11:21
Permalink
New
Yea I know that (I'm using it on my page) but how did you found that this code must be written this specific way. Where to look for those objects - 'comment-form' ?
  • Reply

What I did here is to try

BXTra

Tue, 07/12/2011 - 01:38
Permalink
New
What I did here is to try what many people commented, then, confirmed that it work here to make it easier for anyone that want the same thing as mine. (Reading through a lot of comments can confuse many people) So, with this topic, I just tested and summarized how to do it. If you really want to know, you may have to go to drupal forum in the link above and ask from there. Sorry that I can't help.
  • Reply

In reply to Yea I know that (I'm using it by Anonymous

  • Add new comment

  • Will the router get the Openvpn as a client option?
    6 years 11 months ago
  • cancellation
    7 years 1 month ago
  • Router ASUS RT-N12 D1 tomatoes passwort falsch
    8 years 8 months ago
  • WPS button = 30/30/30 hard reset button
    8 years 8 months ago
  • Save my day!
    9 years 3 months ago
  • How to
    9 years 5 months ago
  • Can i still access my modem (the one with the ISP provided)?
    9 years 5 months ago
  • A saving step!
    9 years 10 months ago
  • Problem with Asus n12e-c1
    9 years 11 months ago
  • don't use Hostgator
    10 years 1 month ago

© 2007 - 2023 BXTra.net. All Rights Reserved. 
Certain other content, photos and artwork displayed on BXTra.net are protected by copyright and are the property of their respective owners.

Privacy Policy