This tag should be used for questions about node comments.

learn more… | top users | synonyms (1)

1
vote
2answers
26 views

D7 node index without comment

I use drupal core search. When I build node index, I found it contain its comments. But I don't need them. Does anyone have a good idea about node index without comment. I found a similar question ...
0
votes
0answers
6 views

Passing a variable set to value of og_group_ref field causes functions to return empty

I have the following hook: /* Implementation of hook_comment_insert() */ function my_utils_comment_insert($comment){ if($comment->node_type == 'comment_node_post'){ $author = ...
-1
votes
1answer
24 views

Comments don't want turn off [closed]

I forgot to turn off the comments while creating a content type. Now when i set the Comments to Closed, the form for adding a comment is still being displayed in full node view. Any suggestions? ...
1
vote
1answer
47 views

how to comment individual image in popup form drupal 7?

I have created view to display images and when I click on the image it gets displayed in pop-up form. I want to allow user to comment on image in pop-up form only so i have displayed comment form with ...
0
votes
0answers
10 views

Migrate comments from D6->D7, comments not working

I can't figure out why my comment migration isn't working - the page node and user are in the D7 database, but running drush mi on the page migration isn't adding the comment to the comments table: ...
0
votes
1answer
23 views

Where is theThe Comment Form Template?

I can find the comments template at modules/comments/comment.tpl.php But where is the comment Form Template please? I want to add a users image next to the form Thanks for your help Charles
0
votes
1answer
48 views

Generating a random number without duplicates on blog comment

A section of my site is a blog where I allow comments. Each comment has a thumbnail associated with it. If the commenter is a user, then their profile photo is used. If they are anonymous I have a ...
0
votes
1answer
26 views

How can i remove and edit comment item

how to remove or edit comment item like fieldset-wrapper. just i want the form-type-select show and or edit description in fieldset wrapper. tnx for all
1
vote
1answer
27 views

Showing comment form under each paragraph

In node.tpl.php, I have done some changes, like creating an array of paragraphs: $paragraphs = explode("<p>",render($content)); So, I have a for loop for showing the paragraphs, like: ...
0
votes
2answers
44 views

Comment.tpl.php how to add a link back to the node

In the Comment.tpl.php I've shown the comment parent node title by $node->title I need to make this title link back to the parent node $node->$node_url but this doesn't work Many thanks for ...
0
votes
1answer
25 views

How to show only the comment form, not the comments

Right now in Drupal, at the end of each article, there are the comments which users has put on that article and also the comment form. I just want to have the comment form at the end of each article, ...
0
votes
1answer
40 views

How to send a message to a user who's mentioned in a comment?

I'm using the Message module to create messages for users when someone commented on his/her nodes. I'd like to extend this mechanism and also notify users when they're mentioned (e.g. "@user") in a ...
0
votes
1answer
39 views

How to comment on image in colorbox (modal form)?

I have created view to display images and also user to display it in popup using Colorbox trigger in view. I want to allow users to comment on each individual image in modal form only. Just like ...
2
votes
1answer
51 views

Do any comment modules play well with revisioning?

I'm faced with a situation where we need to keep track of which node revision a comment was made for, so that we can display whether the comment was made for a newer/older revision, or for the one ...
0
votes
2answers
54 views

How to limit the number of comment a user can post?

I have a content type where users can post reviews or comments. I want to achieve this with the comment module and not by creating another content type and using node reference. So I want to limit ...
0
votes
1answer
37 views

How to hide the comment form label (not title)?

I have tried a number of different modules that claim to do this but none have worked, I have also tried changing the comment.tpl file, and I even tried using CSS "Display:none"; however nothing has ...
0
votes
0answers
7 views

Posting Comments for Advanced Forums errors out

I have Advanced Forums installed. It works except users can't reply or comment. I get the following error: "You don't have permission to access /comment/reply/137 on this server." Authenticated users ...
0
votes
0answers
17 views

Can comments entity be used as alternative to entityform

With no offense to the entityform module, I am facing some issues when entityform is attached to node. Few of them are node related tokens are not available/accessible to entityform module ...
1
vote
2answers
37 views

How to hide comments from indexing in Drupal 7 search?

I am using Drupal 7. I do not want comments to index in search module. How can I achieve this. This question may be a duplicate of this question. But I cannot find solution using this.
0
votes
1answer
28 views

Flag a node after click on the link

I want to check if user has downloaded the file so afterwards I will allow him to post a review. To do that I want to flag the node after user download file, flag the node and allow flagged node to be ...
0
votes
1answer
18 views

How to save and append comment form without refresh the page in drupal 7

I have a form with comments but this page have counter to cout views of this page. but every time when comment added on this page that page loaded and my counts increasing after comment added. ...
0
votes
1answer
22 views

How do I modify the individual links on comments (reply, delete, any others I add in Flags, etc…)?

I'm in my sub theme's comment.tpl.php, and I have print render($content['links']) - how do I access the individual links within that? I tried doing a print_r to see if it was a bunch of nested arrays ...
0
votes
1answer
15 views

How to show new added filed to comment table in comment form page

I am writing a module which is adding a new filed to comment table, and in the comment form I want a new filed to be displayed, saying: : " Which paragraph you want to put comment on?". I have ...
0
votes
2answers
18 views

How to change the html of threaded comments?

I want to display the comments on a node in a thread. Not sure if I should use views or a template. I want to change the html so that it matches boostrap markup By using comment-wrapper.tpl I can ...
0
votes
1answer
9 views

Removing/Restricting for wrapper by role

I want to remove the div that holds the comment wrapper from a content type. What is the best wayto do this? I could create a module, but I think I would only hode the form and not the headers ...
0
votes
2answers
15 views

How can i make my comments field allow images as part of the comment? (drupal 7)

Hey i would like to allow users to put images into their comments but i cant seem to find a module or anyone who has done such a thing any help would be great thanks in advance.
0
votes
2answers
32 views

How to not show user signatures in comments?

In D7, user signatures appear in their comments. It can be very annoying for many, especially when the signature is long or contain big pictures. So I'm wondering how to disable this?
0
votes
1answer
20 views

Specify language of Comment using Entity Translation?

I'm building a site with multilingual support using Entity Translation. It is allowing authors to specify a language when creating a node, but there's no way to specify language when commenting on a ...
0
votes
1answer
24 views

How to show comments for an unpublished node

this is my problem, A node is in unpublished state The "View own unpublished content" permission is set The node author posted a comment on the node, but the comment is not getting rendered in the ...
-1
votes
3answers
44 views

My core Comment module is gone [closed]

Recently I lost comments and everything related. In the module list I see "Comment (missing)". All I did before: CK editor update Installed the Better Formats module. Manual updating the core ...
1
vote
1answer
22 views

Is there a way to add the comment section to the node edit page?

I am developing a site which will be used for information gathering. All views are designed to send users to node edit pages (instead of node view pages) so that they can see and update information ...
0
votes
0answers
9 views

How to display a sum of flag votes for comments (posts) in forum listing?

Essentially, I'm trying to replicate the stack exchange layout in a Drupal forum. I'm allowing users to vote via a flag on the replies/comments on forum topics, and I have the top replies listed at ...
0
votes
1answer
30 views

How to add fields to 'content' format in Views

I created a view from node. In the FORMAT settings, I choose content (because I need to display the comment form). How do I add fields such as post date or Share this link (ShareThis module) to the ...
0
votes
0answers
29 views

Unapproved comment not showing in drupal 7.27

I'm working on Drupal site and on admin side "admin/content/comment/approval" comment whose approval is pending isn't displayed though it count as "Unapproved comments (36)". I went through some of ...
0
votes
2answers
31 views

Applying image style to authors pictures in comments without preprocess function

Is there anyway I could apply an image style to the user picture in comments without using a preprocess function (YOURTHEME_preprocess_user_picture?) The reason I ask this is because the preprocess ...
0
votes
2answers
36 views

Issue in posting a comment

When I post a comment, I get the following error on Drupal 7: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'comment-28-0-0-und' for key 'PRIMARY': INSERT ...
2
votes
1answer
296 views

How can I let anonymous users comment only once?

I'd like anonymous users to be able to comment only once on a node. I thought about checking whether there's already a comment from the user's IP-adress and, if yes, hiding the comment form, but I ...
2
votes
1answer
47 views

Remove “comment delete” confirm page

When I click on the "Delete comment" link, I get redirected to a page that tells me to confirm the action. How can I avoid this redirection, as I have build a pop-up that asks for confirmation?
1
vote
1answer
98 views

How to grab a user's Fivestar voting value with Rules?

On my website, users can rate nodes via comments. The Fivestar field is called 'Stars'. I'd like to use the user's voting value in a rule that's activated when a new comment has been saved. (The rule ...
1
vote
2answers
18 views

search in node-with-comments plus in unpublished nodes

I need on my site a search. It should index the comments too, fulltext index is fine, they could be seen as part of body. But as I use workbench with many steps, most nodes are unpublished. And I ...
0
votes
1answer
22 views

Is it necessary to use “Correct faulty and chopped off HTML”

I'm allowing the users of the site to add comments in "filtered html" form. And the input is in NicEdit though Wysiwyg. Currently I'm using "Correct faulty and chopped off HTML" option in ...
0
votes
2answers
26 views

Don't show block until after a number of comments

I have created a block and I don't want it to display until there are a number of comments posted on the node because if I just display the block the site will look ugly. How would I go on to make it ...
0
votes
1answer
47 views

VIEW COUNT comments total per node

I have found code to show the total: How To Show Node Comment Count in node.tpl? Unfortunately I need to have this value available via VIEWS because I want to list 5 nodes based on total comment ...
0
votes
1answer
44 views

Remove website field from comment forms

I made it mandatory for anonymous users to leave contact information while commenting along with comment notify so as to improve the user engagement. There are two problems that crept in because of ...
0
votes
1answer
39 views

Adding an email field to comment forms

I have given permission for anonymous users to comment on my site. But the default comment form being displayed does not have a field for email address in it. Also, I have comment notify installed. ...
0
votes
2answers
26 views

Editing a single field on a rendered node

On a given content type called Tracking (which is also a Group), I have a title, OG fields, and a repeating text field called Log. I'd like a member of the OG to be able to enter a value and submit ...
1
vote
0answers
33 views

How to prevent comments from being indexed in drupal 7?

I've just found answers to drupal 6 to this, is it easily/nicely possible to do this by now? I am using the search config module, but it has no setting to exclude comments from indexing. Would you ...
2
votes
1answer
46 views

How to hide a field of a Views row if comments are closed?

I know there are some easy tricks to hide Views fields conditionally (catchword: hide if empty). None of them seems to work for me. Also hook_views_pre_render() or other preprocess approaches didn't ...
1
vote
1answer
116 views

How to find out a node's comment status (open, closed) from node ID?

Having a view of comment fields here that is embedded into another view via Views Field View module. The comment view has a contextual filter: the nid. Works quite nice. Now I want to hide the view ...
0
votes
2answers
498 views

Drupal not sending emails from contact form

For some reason my Drupal website does not sends email from contact form. Can you help me where could be a problem? It also does not send emails to administrator for newly added comments. Just to ...