This tag should be used for questions about node comments.

learn more… | top users | synonyms (1)

4
votes
1answer
35 views

How to replace 'reply' link with button in Drupal 7?

I want to replace the 'reply' link with button. As an intermediate solution I styled the link as a button with CSS, but I want it to be a real html 'button' element. The reason is, I do not want the ...
0
votes
0answers
11 views

Facebook Comments Box+Rules+Userpoints [closed]

I use module Facebook Comments Box https://www.drupal.org/project/facebook_comments_box Can i add points to user after he add new comment?
0
votes
0answers
13 views

Anyone point me to create user review solution? [duplicate]

I've done research but found nothing available for D7. AFAIC nor user and profile entity have integrated comments.
1
vote
1answer
44 views

How can I make form_alter work with Ajax Comments?

I did some manipulation (with JavaScript and CSS) on my comment form. It works good. Then I needed to install the Ajax Comments module because I don't want visitors to go another page while replying a ...
0
votes
0answers
15 views

Migrate comments of Recipe module from D6 to D7

Hi I have a site which teaches how to cook different types of food and I use recipe module for listing the recipes of different foods. The site was first developed in Drupal6 and recently I have ...
1
vote
1answer
19 views

Display comment titles only

Is there a way in Drupal 7 to display only the titles of node comments beneath the node (hopefully threaded), thus allowing users would click on title to see the full comment? This was essentially ...
-1
votes
1answer
24 views

Drupal 7 comments spam with Captcha installed [duplicate]

I have a multilanguage - multidomain website developed in Drupal 7, and the database have been flooded with spam comments, even if I have Captcha module (image) installed. The spam comments are from ...
1
vote
1answer
106 views

How to remove a comment based on it's field value?

I have a multilingual site, Comments in this site include a language field (field_language), so users who send comment to nodes must specify in what language they are sending the comment. On loading a ...
0
votes
0answers
11 views

Comments don't show up using Display Suite

I started using the module Display Suite wiht my D7 installation. I use a Reset layout on my Article Content type. Everything displays fine except the Comments field which does not show up at all. ...
-1
votes
1answer
15 views

How to add on comment's field in views

In Drupal 7, I've added a field from comment field section (under manage field) of a content type. Now I want to add this field in a views.
4
votes
3answers
209 views

How to make a comment only visible to the commenter before approval?

There is no registered users (apart from user/1 of course ...) in the website and anonymous visitors have the permission to comment on the website. Comments are not shown before approval. What I ...
1
vote
1answer
56 views

Parent-child-grandchild relationship for content or comments

Background I am creating online courses, where groups of students work together giving answers to questions and commenting on each others answer. I'm using Drupal 8, probably with Panels. ...
0
votes
0answers
32 views

How to use fields in node's comment in a node's Computed field?

I'm new in php and I'm stuck with this. First problem, In a computed field of a node, I would like to use fields that are in the comments of this node. I don't know how to get access to comment's ...
1
vote
3answers
19 views

Migrate files attached to comments from D6 to D7

While migrating from Drupal 6 to Drupal 7 (into a new blank site), I noticed that files attached to comments are not handled by the Migrate module. The D6 site uses a contributed module „Comment ...
0
votes
3answers
115 views

Show only comment textarea, if entered something show required fields for anonymous user

I want to make commenting easy for anonymous users. "Anonymous posters must leave their contact information." is enabled. What I want to do is to show only the comment text field at first and if the ...
0
votes
1answer
20 views

Theme a form function in drupal 7 [duplicate]

I would like to theme a form function suppose comment_admin_overview. I am trying to theme an drupal core form ie., comment_admin_overview. I would like to change the comment listing page to a design ...
0
votes
1answer
26 views

How to set Time Limit on Comment Edit [duplicate]

I need to set time limit to edit comment, like Stack Overflow strategy that sets 5 minutes time limit. The Time Limit on Comment Edit asked the same question and the Edit Limit was proposed. In ...
0
votes
1answer
42 views

Alter comment body in comment form [duplicate]

How can i alter comment body in Drupal 7 ? function sizin_form_comment_form_alter(&$form, &$form_state) { $form['author']['name']['#attributes']['placeholder'] = t( 'Name' ); ...
0
votes
3answers
58 views

PlaceHolder in comment Form

I want to add a placeholder to my all comment form , here is what i did : template.php function ThemeName_form_alter(&$form, &$form_state, $form_id) { if ($form_id == ...
0
votes
1answer
64 views

What are recommended modules or processes which support rating based comments or reviews? [closed]

I am new to Drupal and I am planning a directory site where users can review and rate the service of a shop or company. I'm thinking of something like this (taken from yelp.com): Any recommended ...
0
votes
1answer
25 views

How is comment widget controlled

In the core within the comment module a widget is provided by CommentWidget.php file (namespaceDrupal\comment\Plugin\Field\FieldWidget;). In this widget comment settings like open, close, hidden is ...
0
votes
1answer
28 views

Disqus Comment for one role type

I have installed Disqus on localhost and want users of a particular role type only to be able to comment. Basically, there are free and premium users but I wish to allow only the premium users to be ...
0
votes
0answers
14 views

How to sort comments with the most popular option as well?

I am looking to display the comment box beneath a content type with the default sort as newest first and also provide another sort option i.e. most popular (maximum likes). I know how to do the ...
0
votes
1answer
28 views

How to enable comments on custom entities

I'm using a contributed module that provides a custom entity. I would like to modify that entity and want to enable comments for this entity. Does anybody know how to enable commens for custom ...
0
votes
0answers
19 views

set context based on age of most recent comment on page?

Can I set a context for article pages where the most recent comment has <24 hours? I would like to change caching behavior for "active" articles (for this I can to use context and ...
2
votes
2answers
86 views

Body field is not displayed in Comment Views

I have a comments listing view. When I make the the row style as comments everything is displaying fine. But when I make the row style as fields and add the comment:comment field to the list, the ...
1
vote
1answer
51 views

How to change the sort order of comments

I am trying to work out how to change the order of a flat list of comments in Drupal 7. It seems that comments are listed in chronological order with the oldest appearing at the top and newer ones ...
12
votes
5answers
403 views

How to motivate visitors to comment (technically)?

I want to configure my Drupal site in order to make commenting easy to motivate visitors. Which modules can I use to create a better commenting experience for visitors? For example, if a visitor ...
0
votes
1answer
22 views

Make Admin fieldset open by default when editing comment

As supplied by the core comment module when you go to edit a comment as an admin there is an Administration fieldset that lets you change the author and if the comment is published. When you load the ...
2
votes
4answers
132 views

Where is comment admistration template located?

I have a Drupal 7 sub-theme based on Bootstrap 3 theme, the comment admin page (http://www.example.com/comment/46849/edit?destination=admin/content/comment/approval) looks as shown below. It is ...
0
votes
1answer
22 views

How I can delete my own comment on node?

How I can delete my own comments on node without installing module. After google I come to know about this module: https://www.drupal.org/project/commentaccess. I dont want to install module.
1
vote
1answer
20 views

Drupal 7 how to programmatically display resent comment from all article with author image and comment content?

I'm just use built in function comment_get_recent($number); but its only fetch resent comment's subject and author name, is any built in function available which display resent comment with author ...
0
votes
0answers
37 views

Substitute “Your Name” field for anonymous shown on posted comments

I am using the 'Corporate Clean' theme. I have allowed anonymous posting of comments for basic pages. When a person posts, there is a an input field called 'Your Name'. However when the comment is ...
0
votes
0answers
13 views

Merge threaded comments from a few nodes into one node

On my website, I need to merge a few nodes into one (many times) and I'd like to also merge their comments without destroying threads. However, by simply changing the "nid" column in "comment" table, ...
1
vote
2answers
28 views

Adding Node Reference to a Comment

If I add a Node Reference field to a node content type (with Reference from URL as a widget,) this field appears in the rendered content and can be used to jump to the referenced node. I am trying to ...
0
votes
0answers
20 views

Targeting a specific set of nodes dynamically with a preprocess function

when I got to administer comments on my site, I click 'find content' > comments. If I want to moderate comments I click 'unpublished comments'. That shows me which comments needs to be published by an ...
0
votes
3answers
26 views

How do I remove comments from an existing webform?

After the fact, I learned how to make comments <hidden> by default for new webforms. However, for the forms I've already created, there is no option to remove comments. How do I remove comments ...
1
vote
0answers
21 views

Users rate and comment each other after an event?

I'm working on a project where users trade services (like AirBNB or Uber). I'm a bit stuck at the stage when the task is done and the two users have to rate each other. I have ratings sorted using ...
1
vote
2answers
18 views

Adding help text to drupal comment form

using Drupal 7, I'd like to add some help text underneath each field for the user who is filling out the comment for a node. For example, under 'your name' I'd like it to say, possibly in smaller ...
0
votes
1answer
45 views

How to assigned specific “comment” view mode for specific “node” view mode?

In "Article" content type i have three view mode in "Manage Display" namely "teaser", "default" and "abc". Similary in "Comment Display" i have two view mode namely "defalut" and "xyz". Eg: When i ...
3
votes
2answers
216 views

How to remove the word “New” for the new comments

When I add a new comment, the word "New" is printed at the top: I don't need it. This word can be removed by editing the file /modules/comment/comment.tpl.php: //remove these 3 lines, and the word ...
1
vote
2answers
59 views

Bypass comment validation for SOME anonymous users, based on the provided email address?

In the case of a low traffic blog (for instance), that only accepts anonymous comments (no user registration) and manually validates them before publishing them, would it be possible to have a sort of ...
0
votes
2answers
56 views

Why drupal need hidden option in comment settings of content types?

In content type setting in drupal, we have tab comment setting .The comment setting on future content of this type will default to: Hidden: No comments are allowed, and past comments are hidden. ...
0
votes
0answers
17 views

How to remove unnecessary information inside comments for support tickets

I've installed Support module. And setup comments for it. Everything works fine, but comment contains a lot of unnecessary information: I looked into comment section of Support ticket content type. ...
4
votes
1answer
69 views

Question about part of Comment.module

The following is part of the comment.module file (line 950): // Add indentation div or close open divs as needed. if ($is_threaded) { $prefix .= $comment->divs <= 0 ? ...
1
vote
1answer
24 views

Comments and Testimonials on Profile 2 Profiles

Is there a way of enabling either comments or a guestbook/testimonial functionality on Profile 2 Profiles? I've read discussions on here about implementing on User Account Pages but not for the ...
0
votes
1answer
25 views

What are “Text format” option in standard Drupal?

I would like to know if in Standard Drupal, the comment form allows you to select a text format such as "Full HTML", "Plain Text" and "Filtered HTML" when commenting or even posting an article? I ...
0
votes
1answer
33 views

Publish or Un publish any comment

How to give moderator a right to publish or unpublish/edit any comment , not just own comment or comment on own content without giving "Administer comments and comment settings" Permission, by giving ...
0
votes
1answer
16 views

How can hook some code before deleting a comment?

How can I add few lines of code before comments get deleted. there must be some hook or something by which we can do this. I am getting nothing relevant by Googling. Any help appreciated.
0
votes
2answers
32 views

How to give access to delete his own comments

I am using Drupal 7 and want user should be able to delete his own comment. I know that is it not supported by drupal 7 due to threading. You can provide edit permission from ...