This tag should be used for questions about node comments.

learn more… | top users | synonyms (1)

2
votes
1answer
263 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 ...
0
votes
0answers
7 views

Why doesn't the 'Rules evaluation log' open anymore?

I have a rule that's activated when a new comment is added. The 'Rules evaluation log' is displayed (because some error occured while executing the rule), but for some reason, it doesn't open anymore ...
2
votes
1answer
27 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
23 views

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

On my website, comments on nodes have a Fivestar field 'Stars'. I'd like to save the user's voting value as a variable in a rule that's activated when a new comment has been saved. Unfortunately, I ...
1
vote
2answers
13 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
15 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
23 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
27 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
19 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
14 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
14 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
29 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
0answers
25 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
76 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
1answer
64 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 ...
0
votes
0answers
29 views

Remove User Information for Content Type/Node

General Info: Is there are a way to allow users on certain content types (or nodes, but I suspect content types would be easier) to remain anonymous. I am building an intranet site, and have SSO set ...
0
votes
0answers
13 views

“Anonymus” appearing instead of username

I am logged in as admin, and when I create a comment, for username it shows "Anonymus". Any help will be very helpfull. Here is a screenshot :
1
vote
1answer
48 views

global static variable to be accessed in comment.tpl.php, node.tpl.php and in page.tpl.php

I wanted to show some ads inside the content (node, comments) and body. I decided to add them using the template by adding some lines to comment.tpl.php, node.tpl.php and page.tpl.php for example in ...
1
vote
1answer
28 views

Author name in comment preview not rendering apostrophe properly: a bug or by-design?

This happens on a Drupal 7.26 using the default theme when previewing a comment. The &#039 part is equivalent to an apostrophe. What I don't know if this is something that is part of Drupal to ...
0
votes
1answer
15 views

Disable the comment path site-wide

Is it possible somehow to completely disable the /comment/ path on a Drupal 6 site? Our site really doesn't need comments and despite having disabled comments on all content types and removing any ...
0
votes
1answer
23 views

Is it possible to attach discussion board to a node?

I have a content type called "Movies". I would like to create discussion threads under it similar to discussion threads in imdb.com under a movie. I have tried the advanced forum module and also ...
0
votes
0answers
24 views

How to configure annotator and annotation modules in Drupal 7?

I would like to provide an MS Word -like annotations (review comments) functionality in some text areas of my Drupal 7 website. I have experimented with the co.ment and annotator - annotation Drupal ...
0
votes
1answer
54 views

Why can't I modify my comment form using hook_form_alter

I have enabled comments for a custom node type. I am trying to theme that comment form using hook_form_alter(&$form, &$form_state) (For example, I'd like to remove the label of the ...
0
votes
0answers
15 views

How NOT to redirect using rules?

I have a comment form in a panel. The path to the panel is user/[uid]. When I post a comment I am taken to another page where all the comments are shown (user/[uid]/comments.) I do not want this, I ...
0
votes
2answers
50 views

Remove 'Your Name' field from comments display

I want to hide/remove the "Your Name" field from the comments on a Drupal 7 site. I am using the bamboo theme and Drupal 7. I have seen a few threads for the but most are about removing the subject ...
0
votes
1answer
31 views

sort comments descending programmatically

I want to sort all comment descending programmatically, I found this Comments sorted by oldest first but I dont want use those modules or views solution. anybody know how can I sort comment ...
0
votes
0answers
38 views

Open Atrium 2: comment forms not appearing on pages

Situation: Recently created a fresh Open Atrium 2 installation to replace an old AO1. No content from the old OA1 database has been migrated, we're making a fresh start. Some content (a few pages) ...
0
votes
1answer
19 views

Adding comment count to view

I want to be able to add a comment comment to a view , through comment.tpl.php as I have tried to add the comment counter through the admin area and it doesn't work
0
votes
2answers
50 views

How do I remove the Author textfield from the Comments form

How do I remove the Author textfield from the Comments form. I added a couple new fields: - First Name - Last Name But now in addition to asking for First Name and Last Name, there is a 'Your Name' ...
0
votes
1answer
36 views

How to check programatically whether a comment is new?

I'd like to make some changes to a new comment programatically. I'm using the following code: function MYMODULE_comment_presave($comment) { $user = user_load($comment->uid); $uid = ...
0
votes
1answer
18 views

Require First and Last Name on Comments in Drupal 7

I enabled Comments on a content block in Drupal 7. I would like to have First and Last Name required on the comments. How do I make that happen?
0
votes
1answer
19 views

how to create a “my comments” view

I just want to create a view that show each user their own set of comments only. would I add something in contextual filters? Thanks Tony
1
vote
1answer
30 views

How to add custom user fields to their comments?

My users have the following fields: 'Avatar' (image) and 'Year' (number). When a user leaves a comment, I'd like to display these fields, the username and the user's current userpoints next to each ...
0
votes
2answers
35 views

change comment form container to textarea

How to remove the red section in next image (comment form)? I have try change the type to textarea, but on submit the form a blank page appears. function THEME_form_comment_form_alter(&$form, ...
1
vote
2answers
31 views

How can I get the cid of the latest comment I saved using comment_save?

This is my code to programmatically save comment: $comment = (object) array( 'nid' => $loaded_node->nid, 'cid' => 0, 'pid' => 0, 'uid' => $loaded_node->uid, ...
0
votes
1answer
26 views

Comment notify options confusing for users

I am using the Comment Notify module so that users can be notified when someone responds to their comments in forums. On a users account page the options are very confusing - there is a tick-box to ...
0
votes
0answers
16 views

How to display 2 comment box and display submits

i want to have two comment system on a page, i have enabled the drupal core comment form and it displays the comments but i want to add another comment box and also display just this box submits. So ...
0
votes
0answers
35 views

Refresh views when send with AJAX Comments

I have a view of nodes with comment form in each node with global php output code: <?php $comment_form = drupal_get_form('comment_node_feed_item_form', (object) array('nid' => $data->nid)); ...
0
votes
0answers
16 views

comments form in each node of view [duplicate]

I have an accordion view and I want that my users to be able to comment in each node of this view as in followmy.tv I try to put this on the template of one of the fields. <?php $build = ...
0
votes
1answer
23 views

TinyMCE for comment textarea

I'm Drupal beginner and I can't figure out one small thing. How can I use TinyMCE for comments ? Please, see image below: I have already defined some custom formats and WYSIWYG profiles, but ...
1
vote
2answers
40 views

How to hide a field in a comment in hook_comment_view 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; ...
1
vote
1answer
29 views

How to get uid from a node on which is commented?

I'm using hook_comment_view($comment) and I'd like to confer the uid from the comment ($comment->uid) with the uid from the node on which is commented. I thought of $node->uid, but I don't know ...
2
votes
1answer
58 views

Format plural problems in Views module

I built a Drupal 7 site using the Views module and I am using the "comment count" field. If I choose the format plural checkbox, with a comment, it will output "1 comment", and when there are zero ...
1
vote
2answers
36 views

Close commenting after X comments have been posted

I would like to ask if anyone knows how I can set a limit to the number of comments that can be made on a node with Drupal 7. Perhaps what I'm asking isn't the best solution for what I'm trying to ...
0
votes
1answer
29 views

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: How to hide rating field when adding comment to own node?): function ...
0
votes
0answers
30 views

How to edit comments?

I'm trying to edit comments for the forum; instead of updating comments, it is creating a new comment. After inspecting some code in the Comment module, I found out that there is no CID in the $form ...
1
vote
2answers
85 views

How can I programmatically enable permission for anonymous users to view comments on a single node?

How can I programmatically enable permission for anonymous users to view comments on a single node? Comments are open, but by default anonymous users are not allowed to view comments. I would like ...
0
votes
0answers
25 views

Special Comment Form

I want a second comment form to be on top of Core Comment Form: - The normal core comment form is for members/registered users. - The "special comment form" is for admin and moderators. The thing is ...
0
votes
1answer
34 views

Error when using hook_form_comment_form_alter()

I am using the following function in template.php to modify the comment form to remove the form title and add a default value inside the form: /** * Implements hook_form_comment_form_alter(). */ ...
0
votes
0answers
17 views

mutli-domain comment capability on domain access

Is it possible with domain access to commenting the active node from all domain ? Exemple : - nid 1 : be commented from domain1.tld - nid 1 : be commented to, from domaine2.tld Thanks ! Pardon me ...