This tag should be used for questions about node comments.

learn more… | top users | synonyms (1)

0
votes
1answer
18 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
18 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
23 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
33 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
25 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
19 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
22 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
10 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
23 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
16 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
77 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
28 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 ...
10
votes
5answers
320 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
16 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 ...
0
votes
0answers
5 views

Default Bulk operations not working?

In the comment admin page, where all comments are listed, I'm adding few additional operations to the already existing Publish the comments Delete the comments I am including few options like, ...
2
votes
4answers
126 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
17 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
19 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
32 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
11 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, ...
0
votes
0answers
19 views

Custom theme comment admin form

I have a module in drupal 6 which have a custom theme for the comment administartion page at /admin/content/comment. I want to convert it into drupal 7. I have tried using ...
1
vote
2answers
27 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
19 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
23 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
16 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
17 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
42 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
214 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
1answer
30 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
39 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
16 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
20 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
27 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
28 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 ...
0
votes
1answer
44 views

How to edit the Comment Administration Page

I've already edited my comment and comment-wrapper.tpl.php files for public consumption. But I'm finding I'd like to edit the administration page where our staff administers comments that are pending ...
1
vote
5answers
52 views

Display Comment Form in Sidebar

I'm relatively new to Drupal and I'm working on a page that needs comment functionality for non-authenticated users. I tried some various forms (Webform, EntityForm) but they just seemed like way too ...
0
votes
1answer
15 views

Choosing which comments field to display when published

I'm using the basic comment module to allow users to leave comments (name, phone, email, comment, and rating) on each resource for that specific comment type. One of the fields is an option to allow ...
0
votes
1answer
19 views

One time change field + personal comments

I'm not very familiar with all the modules for Drupal. Therefore, let me try to explain what I'm looking for. 1) The users shall be able to create nodes with some specific fields. Some of those ...
0
votes
1answer
21 views

How to export comment fields (or other settings) with Features?

If I export a content type that has fields specified in the comment of the content type the fields of the comment are not exported. How do I export those fields that I specified in the comment? (In ...
0
votes
0answers
16 views

How do I display comments for specific nodes in Views?

I'm trying to create a view that displays all comments left for story pages and chapter pages. The thing is this page must display all comments from all chapters that are referencing a specific story. ...
0
votes
0answers
20 views

Threaded comments order problem

While working with Drupal 7 we've got a problem, I'm not sure if it's a known bug or our personal issue. Anyway, I couldn't find such an issue while searching. The issue is actually about order of ...
0
votes
1answer
11 views

Contrib Module JavaScript interfering with Node

If one has a contrib module that works fine in most cases, but on a specific page (say /comment/comment) you wish it NOT to appear, but the options in Config don't give you that ability...what's the ...
2
votes
1answer
96 views

One click close comments

My site editors want a quick way to close comments on a particular node, i.e. they just want to click a button on an item, rather than having to click edit, then select the comment settings tab, then ...
1
vote
1answer
33 views

How to not show a comments field if user logged in

I have a field called 'email' I added to my node comments form. However I don't want this to display to users who are logged in. What's the best way to hide this field for logged in users? I created ...
0
votes
2answers
21 views

Editing the template for Comments editing page

I've got my comments for my nodes looking good ON the node. However, as an admin, or using the permalink, if you go to the actual comment page (/comment/comment#) it looks funky. I'd like to format it ...
2
votes
1answer
35 views

Drupal 7 Comments Alternating Row Colors

I'm interested in making the comments that appear on my resource content type nodes show with alternating background colors. Anyone know how to make this happen? I tried something like this with CSS ...
0
votes
0answers
15 views

Restrict access of (an) individual comment(s) to (a) certain user(s)

So, there are a lot of modules (and Drupal-Answers posts discussing them) to restrict access of certain node types / individual nodes to individual users, and it can be a pretty hard task to know ...