Questions tagged [drupal-comments]

This tag should be used for questions about node comments.

In Drupal, comments are handled by the Comment module, which define the permissions that allow users to create, edit, and delete node comments.

Resources

61 questions
0
votes
1 answer

Drupal 6: "Facebook" style comment ordering (threaded, descending+ascending)

Working with Drupal 6, my goal is to order a set of threaded comments similar to how Facebook outputs comments: with the 'anchor' or first comment in each thread sorted DESC, and any 'internal' thread replies sorted ASC so the newest comments are at…
Robert Brown
  • 79
  • 1
  • 3
0
votes
1 answer

User profile picture is not displaying properly on comments with Imagecache

I have a Drupal setup, and have created an Imagecache preset for the user profile to create a thumbnail picture. I have enabled user pictures on node comments, but the picture is not displaying correctly When I view the source, it shows the correct…
Tim
  • 2,667
  • 4
  • 32
  • 39
0
votes
1 answer

Heading on first comment

I'd like to have a header on the comment list. Is there a php if statement that I could use? Something like . I can't find it.
Toxid
  • 615
  • 10
  • 18
0
votes
1 answer

How to load the comment form result inside the same lightbox after it is submitted?

I have loaded a comment form in a view using this code: $comment = new stdClass; $comment->nid = $row->nid; $form = drupal_get_form('comment_form', $comment); print render($form); And to open the form in lightbox2:
0
votes
1 answer

How to hide Fivestar field when editing a comment from another user?

My comments on articles have a required Fivestar rating field called 'Stars' and I hid it with the following custom module (see: https://drupal.stackexchange.com/questions/90629/how-to-hide-rating-field-when-adding-comment-to-own-node): function…
Jeroen
  • 544
  • 3
  • 27
0
votes
2 answers

How to hide a field in a comment programatically?

My comments have a field called 'Extra'. I'm trying to hide it when the user who's viewing the comment wrote it. This is my custom module: function mymodule_comment_view($comment) { global $user; if ($comment->uid == $user->uid){ unset…
Jeroen
  • 544
  • 3
  • 27
0
votes
1 answer

comment form in drupal views

I want to add separate comment form for each node showed in a view. I used template row using following code: $comment = new stdClass; $comment->nid = strip_tags($fields['nid']->content); $form = drupal_get_form('comment_form', $comment); print…
0
votes
1 answer

Redirect to last page when overlay comment-form is used

I've got a view (phase4) with some custom content type content in it, where the users may comment on. When the users want to comment, the comment form should appear in a modal form. I solved this by using the admin overlay. Adding following…
Tom
  • 63
  • 1
  • 6
0
votes
1 answer

How to approve a comment in Drupal when admin is replying to that comment?

I want to auto approve a comment when an admin is replying to a particular comment. This feature is available in wordpress.
Jude
  • 31
  • 3
0
votes
2 answers

Drupal allow anonymous comments

I'm trying to allow comments by anon users but the add comment form, "add comments" title etc is not showing. For logged in users it's showing perfectly. I've allowed comments by anon users in the permissions page (not specific to a content type),…
stef
  • 26,771
  • 31
  • 105
  • 143
0
votes
1 answer

how to get comment id in custom_comment_form_submit

How to get comment id in comment_form_submit ? I built a custom module to send email containing comment details like comment id,url and username. But not getting comment id to generate comment url. function custom_comment_form_submit($form,…
Vikram
  • 3,171
  • 7
  • 37
  • 67
0
votes
1 answer

Comment form is showing instead of "Add Comment" button in a node in drupal 6

In a Drupal 6 site, I enabled the comment settings for two content types (con 1 & con 2). After creating a node in con 1 the "Add comment" button is showing at the bottom, but in the case of con 2, after creating the node, it shows a comment form…
Ranjani
  • 153
  • 1
  • 3
  • 12
0
votes
1 answer

Drupal : How to change or where I can find username line for comments view in the script?

In Drupal display comments box I want to change the display username to first and last name. I have already setup the database and I know I can user $user->name to find the first and last name in my separate database table. But my problem is, in…
Gobi
  • 155
  • 1
  • 1
  • 14
0
votes
1 answer

in drupal 7 's view, how to comment without redirecting to content type page?

I make a view for a specific content type, the path of content type and the path of the view are different. Now I put a form into the view, in order to comment on that content type. However whenever I comment on the view page, the view page will…
user824624
  • 7,077
  • 27
  • 106
  • 183
-1
votes
2 answers

How to show multiple nodes with comments and comment form for each node on one page in Drupal?

To display multiple nodes on a custom page, I used node_view_multiple($nodes, $view_mode = 'full'), but nodes are shown without comments and comment form. How do I show multiple nodes with comments and a comment form for each node on a custom page?
Anglo
  • 223
  • 1
  • 3
  • 11