This tag should be used for questions about node comments.

learn more… | top users | synonyms (1)

0
votes
1answer
14 views

How do I restore the comment body field I deleted from a content type?

I deleted the comment body from the content type settings, and replaced it with another field. When posting comments, I get this error: Notice: Undefined property: stdClass::$comment_body in ...
3
votes
3answers
53 views

500 error when deleting node with 300,000 comments

I have a node which has been spammed and has 300,000 comments. Whenever I try to delete it I get a 500 internal server error. Deleting all comments via database is not an option because I need to ...
0
votes
3answers
45 views

Where to put dpm (Devel) to see comment elements?

Where to put dpm or dsm (Devel) to see comment elements?
1
vote
1answer
18 views

Comments are Posted anonymously

I am using Services Module in Drupal 7. When I try to POST comments, these comments are Posted anonymously. I am sending POST request to ?q=endpoint/comment.json with this Body { ...
1
vote
0answers
31 views

Render comments in a custom Twig template

I rewrite the article tpl page--article.html.twig and I want to render the comments and the comments form. I add the comments in the content type fields and try to render with {{ node.comment | ...
0
votes
1answer
11 views

Hidden form values updated with multiple submission

I'm writing a backend validation function to prevent multiple submission for comments by logged in users in Drupal. Following is my code: function MYMODULE_form_comment_form_alter( &$form, ...
1
vote
0answers
30 views

How to allow comment author to reply to comments on his posts

The answer to "How to disallow a user to comment on their own nodes?" includes a rule that unpublishes comments made by an author on his own posts. The rule works and is reproduced below. { ...
1
vote
0answers
23 views

Creating a View of Only Childless Comments

We have a support system in which one user can request help or insight from another user by selecting that user from a dropdown list, which is an additional field in each comment. I am attempting to ...
-1
votes
1answer
35 views

How do I remove or hide the Permalink in comments? [closed]

How do you remove or hide the 'Permalink' in comments? There is no tpl.php in Drupal 8. I remove <p class="comment__permalink">{{ permalink }}</p> from comment.html.twig, refresh, close ...
0
votes
0answers
21 views

how can i get last commented user's profile picture on page

I have a content type -> article page, with comments allowed I have a view which displays article page content with latest content with its last comment on page. I want to add a commented users ...
3
votes
3answers
108 views

Display all comments of node without pager (300+ comments)

I have a content type with threading comments. The max number of comments per page is set to 300 (that is the absolute max). If there is more than 300 comments - they get paged. How do I show all ...
0
votes
1answer
15 views

Comment form doesn't submit

I have inserted comment form to my custom node.tpl via print drupal_render(drupal_get_form("comment_node_{$node->type}_form", (object) array('nid' => $node->nid)));. It works fine, but form ...
0
votes
0answers
5 views

comments as block views and ability to rate theme

I've add a block views of comments below the corresponding nodes and sort theme in most popular order. I use rate and vote API module to let users rate comments (as agree and disagree). then I added ...
0
votes
0answers
19 views

How to hide comment path field in a view when comments are closed

I have a view that lists teasers of articles that were written. The view also displays under each teaser two field. The first one, "0 comments" shows the number of comments posted and is a link to ...
4
votes
2answers
78 views

Custom comment access

I need to prevent users from posting comments based on some conditions but I can't find any hooks I can implement. For nodes we have hook_node_access() but apparently there is no ...
5
votes
1answer
55 views

Sorting comments from newest to oldest

How should I configure Drupal 8 to sort comments from newest to oldest, similarly to what the Comment Goodness module does in Drupal 7?
1
vote
1answer
24 views

Comment permission settings

Please kindly help if you know a solution for this or a ready module you may be aware of: 1:I need to set a node a way that each user can only see their own comment and replies to that. 2:Also I need ...
0
votes
1answer
17 views

How to edit comment reply link for specific content type in Drupal 7

Is there a way I can programmatically edit comment reply links for a specific content type in Drupal 7? So I need to check for the content type before changing the links: <?php if ($node->type ...
0
votes
1answer
35 views

Access to core comment preprocess variables in a custom comment layout twig template?

In Drupal 8 I have a custom comment type and when I use the default core comment.html.twig to render the comments then variables like 'new_indicator_timestamp' and 'parent' get rendered as expected. ...
1
vote
0answers
21 views

POST an emoji in comment body using Service 3.x

I'm trying to POST a comment with an emoji in my Drupal 7.43 project, where I'm using Service 3.x for all Web Service calls. Using POSTMAN (Chrome) in the body of my comment I've added: { ...
0
votes
0answers
22 views

Hook_view_alter doesnt work with Panels

In my project it was required that node authors couldn't comment on their own nodes. Using hook_node_view_alter in template.php I unset comments successfully. After that I altered node layout with ...
1
vote
1answer
36 views

Comment Form Missing

I'm baffled by this issue on my new site. I have double checked permissions to verify that authenticated users can post so I'm just getting that out of the way first off. However, what is odd is that ...
0
votes
1answer
13 views

Adding Comments to Custom Node Template File

Is there a way to add comments/comment form to a custom template file without having to install the Panels module? I had initially thought I could do it through a php script on the page, but have yet ...
0
votes
1answer
69 views

How to show Comment Count in a specific custom place?

How can I show Comment Count in Drupal 8 in a specific place? I want to show Comment Count's of a node (article) in the submitted area instead of in the node links area. I do this already in Drupal 7 ...
1
vote
5answers
61 views

Remove Format Options / Guideliness From Comments Textarea? [closed]

How can I remove Format Options / Guideliness from the Comments textarea in a Drupal 8 theme?
3
votes
1answer
30 views

Why does Rules event 'After updating existing content' not result in 'Create a new comment'?

I've used Create a new entity for the Rules event After updating existing content, but nothing happens. Is it a bug?
1
vote
1answer
25 views

How to loop through comments using the Rules module?

I have created a rule (using the Rules module) using Rules Event "After updating existing comment" and some comment fields must be changed. Loop node:comments is used but nothing happens when ...
1
vote
1answer
40 views

After saving a new comment How to fetch all comments for a given node?

Is it possible to fetch a list of comments for a given node by using the rule After saving a new comment? After this I would like to change a taxonomy term for a certain comment having a certain term. ...
1
vote
0answers
42 views

After updating existing content How to get a token node:comment for actions?

It was tried to change a term on a comment after updating existing content but there is no way to find the available token node:comment. Is there a possibility to have it?
0
votes
1answer
14 views

How to hide the “help-block” on an Image field in the Comment Form

I have added an image field to the comments. This allows to my visitors to add images with a comment. But I have annoying "help-block" for the image field in the form of adding a comment. How to ...
0
votes
1answer
22 views

How to show comment via views?

I have a content type nodes with comments. I need to show latest comment via views. For this I created a views its just showing me comment status. not comment.
0
votes
2answers
28 views

How to loop over OG group members from comment

I'm trying to set up a Rule to send a privatemsg to all group members when someone posts a comment on the group node itself. One approach I've tried using existing options provided by the OG module: ...
1
vote
0answers
29 views

How do I turn off the Comment Pager for a Type?

I have a Type configured as below, asking for 50 comments per page. However, I'm getting the pager on nodes that have as little as a single comment. I've looked at responses another question. ...
0
votes
2answers
46 views

How do I remove the information section available below the comment box?

As shown in the image, below the comment text-area there is an information section I do not want to show. How do I remove the part highlighted in red? I want the comments to appears as they do on ...
0
votes
1answer
28 views

Insert some data in comment upon comment submit

For some reason I cannot find answer to relatively simple question. How to insert some data (for example the "title" filed value) into comment body upon the comment submit. Finally I'd like to have in ...
0
votes
1answer
37 views

Get custom comments of node

I'm currently working on a simple reviewing system. I've created a custom comments type ("Review") with an integer list ("Rating") that can be added to my nodes. Now, while displaying the note, I ...
0
votes
0answers
27 views

rate module doesn't work in in views

I've made a views from comments in drupal. I want to rate comments listed in views below the related content. but in views the rate widget does not save the votes although, it works perfectly in ...
3
votes
3answers
91 views

How to disallow a user to comment on their own nodes?

On my site we have enquiries (nodes) and price quotes (comments). So node authors wouldn't be offered to quote prices to themselves. That's why I want to disallow node authors comment their own ...
3
votes
1answer
52 views

add comment form in views

I've created a views from comments. I want to have add comment form at the button of my views (in footer). so I installed "views_php" module and add "Global: PHP" to footer and write this code to ...
0
votes
1answer
22 views

Comment Forms - place label inside the inputs

I'm theming a comments section on a page in a D7 site. What I want is for the label for the forms items to show as a placeholder attribute rather than above the element. I've used a hook_form_alter ...
0
votes
1answer
18 views

multiple sort comments in drupal [closed]

like what you can see in this site, I want to have 3 tabs for comments. oldest first newest first sort by likes I've tested creating views and show in tabs but this way in too heavy! is there a ...
1
vote
1answer
35 views

Comment form won't appear in my theme

I can't get the comment form to appear in my theme. It does appear in Garland, but not in Bartik. I have copied node.tpl.php and comment.tpl.php into my theme from Garland. I have added text to ...
0
votes
1answer
25 views

How do I change the image style for avatars displayed in comments

I'd like to use a custom image style for the comment avatars, but I don't know where the setting in Drupal is to change it. I thought if I changed the user image style at ...
0
votes
0answers
19 views

Passing node comment form to node edit template

I want to show node comment form in the node edit page itself. I am trying to do it through theme hook. function mymodule_theme($existing, $type, $theme, $path) { $theme = array(); ...
3
votes
3answers
142 views

Disallow HTML in comments

I'd like to disallow all HTML and only allow plain text in comments across the site for all users, authenticated or not, but I still want to use other HTML filters for other content types. How can I ...
0
votes
2answers
12 views

Comment Permissions

I am using advanced forums and I would like my site admins to be able to edit and delete forum comments. The correct permissions are checked and the site admins can edit and delete comments by going ...
2
votes
2answers
90 views

Permission to Reply to Comments

How to allow posting replies to comments to certain user roles only? The goal is to allow users to post comments but not reply to them and have only certain roles able to post replies. Initially I ...
1
vote
2answers
29 views

Upload Image with comments under forums

In drupal 7 Forums under some topic I want to add a upload image field with the comment field. How can i achive this?
0
votes
0answers
6 views

Drupal disqus comment cant able to update Shortname

In my website i had installed Disqus module.I had registered my Url with disqus and get the new shortname "test123". Now i want to update the shortname in disqus settings, In the shortname field i ...
0
votes
1answer
24 views

Exporting comments only from one drupal site to another

How can i export only comments from a Drupal Site (Live) to a Drupal site (Dev). The content of both sites is same. The live site only has new users and comments. I already exported the users and ...