This tag should be used for questions about node comments.

learn more… | top users | synonyms (1)

0
votes
1answer
7 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
11 views

multiple sort comments in drupal [on hold]

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
26 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
21 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
12 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
121 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 ...
0
votes
1answer
39 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
27 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
21 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 ...
0
votes
1answer
29 views

Can the reaction of “Cron Maintenance” in the Rules modules pull data from nodes?

Overall Goal: Have an email sent whenever a node has not been commented on for a certain amount of time (ex: 1 hour). Previous Attempt: Have a node become stickied when a comment is posted. Then ...
0
votes
1answer
25 views

Hide other user comments, but not to admins [closed]

I have created a node, anyone can able to comment on the node. Now, what I want is: For Authenticated users, show their own comment only (not other user's comments) For Administrators, show all ...
0
votes
1answer
26 views

How to hook into core's “log in to comment” link

I'm running Advanced Forums on D7, and when an anonymous user views a forum post (lets say nid 101) there is link under the post that says "Log in or register to post comments". The problem is it is ...
1
vote
0answers
22 views

Special comments permissions

I'm trying to restrict the comment permissions as follows: Any user can view own comments and any reply to his comments on a node. Node Author can view all comments on his node. Is it possible to ...
3
votes
1answer
50 views

Have a Rules condition that will take the current time minus last comment posted time

Overall goal: If a node has not been commented on in a given time frame, send an email. How it could possibly be done: Have Rules look at the last time a comment was posted when cron runs. Then ...
0
votes
0answers
45 views

Change the page to which users are redirected after saving a comment

I am using Drupal 8.0.0, and I created a tab page for my custom node type (equipped with a field comment) to display just comments, so that comments are not displayed on the node (e.g. node/1) but on ...
0
votes
1answer
22 views

How to modify comment-wrapper.tpl.php to change the comment form layout?

I am trying to change the layout of my comment form. Unfortunately, when I print only fields that I need and the submit button, I can't use the button, nothing happens when I press on it. I used ...
4
votes
2answers
46 views

Hide “Your name” field in comment form from everyone except admin

What I want to achieve is to hide the "Your name" field in comment form from all anonymous and authenticated users but visible to users with the admin role. I was able to use CSS to hide the field, ...
2
votes
1answer
34 views

How to remove some comments from a node?

I created a new table in the database to associate comments to the node version they were submitted against. Now when the node renders, I only want to display comments that are associated with the ...
0
votes
0answers
8 views

Forum comments being built above body field on story content type in D7

Migrating a d6 site to d7. Using the advanced forum module. On the d6 site, there is an advanced forum setting entitled 'Treat all site comments like forum posts', which is checked. On the d7 site, ...
4
votes
2answers
130 views

How can a poster of a comment notify selected users about a new comment?

When I write a comment on a node, I want to be able to select the users that will get a notification (via e-mail) about that new comment. Basecamp has this feature and I think it is very cool. Is ...
0
votes
1answer
24 views

Using comment view modes

I can use the UI to create a new view mode for a comment type in Drupal 8, without problems, but I don't see how to use that view mode. For example, I just want to have a teaser that shows only the ...
0
votes
1answer
18 views

disappeared comment fields in content type, how to put them back

I'm working on a drupal page and recently encountered a problem when I couldn't enable comments on a certain content type. Looking for the problem I found that there were no fields for the comments in ...
0
votes
0answers
10 views

Limit node.js updates if the view is active

I have a Facebook style news feed view which updates via node.js and rules when new content is created. This all works fine however if one user is in the process of commenting on a node teaser ...
0
votes
0answers
19 views

Notice: Undefined variable: key in comment_prepare_thread() /public_html/modules/comment/comment.module)

I'm getting two errors based on comments by users that no longer exist. I just updated from Drupal 6 to 7, and this seems to be an error that pops here and there, but I can't figure out how to fix it. ...
0
votes
1answer
28 views

Structuring a user rating/rebuttal system

I am looking to create a really basic rating system (user reference and fivestar content type). But I would like to be able to have users rebut ratings if need be. I am just trying to figure out, ...
0
votes
2answers
66 views

How can I load entity form for comment?

I want to load entity form for comment entity type. I can load entity form for node (entity type = node and bundle = article). But the entity type = comment and bundle = comment. Here is the code ...
1
vote
1answer
53 views

Seller and Buyers Own Comments (Commerce Communicae)

I would like to have a way for my seller/author (author of node) and my buyer/user (not author of node) to communicate. First, I have looked at the comments. If I allowed buyers to only start one ...
0
votes
1answer
14 views

Entity Query from comment not working

I tried using entityquery for comment by nid but its not working here is my code : $query = new EntityFieldQuery(); $query->entityCondition('entity_type', 'comment') ...
0
votes
0answers
16 views

How can you link webform results + comments + sms = helpdesk together?

Was wondering how can you enable comments for a webform 4.x result page? Reason why is I have a webform that collects inquiries from customers and one of those fields is a phone number along with a ...
1
vote
1answer
51 views

Content Type with Add comment, Post New Article, Share Links [closed]

I have created a drupal page, I want to add comment,share link to the post I have tried using view to create it it does not work out.
1
vote
0answers
20 views

Notification on comment email

I have on my site "Notification on comment" How can I disable notifications in a case that I post to myself? Thanks Tzvika
3
votes
2answers
69 views

Adding comments to a node via drush or commandline

I'm trying to set up a server documentation system using drupal 7. Each server would have it's own page/ node. Updates or changes made to the system would be noted as comments on the servers page. ...
0
votes
1answer
25 views

Content:author Relationship Not Showing Fields for Comments View

I have created a view to show a nodes comments in a block. Authors on my site have different roles, and they can create a single business page. On that page, other users can leave comments. For site ...
0
votes
0answers
17 views

Looking for (inline) node review module

Currently one of my colleagues has a editor role. He publishes the nodes initially only visible for people within our company (Taxonomy Access Control). Is there a module where his colleagues can add ...
0
votes
1answer
23 views

Changing the confirm delete message for comments

I have a website where I have comments on certain content but I am not allowing any replies to these comments. When deleting a comment the confirm delete message shows as 'Any replies to this comment ...
0
votes
1answer
43 views

Removing all unapproved comments from database dump file

I got thousends of spam comments on my drupal 7 site. The mysql database file is grown to 1.9GB and the site is broken. How can i delete all comments (or even better: all unapproved comments) from the ...
0
votes
1answer
27 views

How to get comment depth in a view template?

How can I get the depth of a comment in a view template? I can see the depth when I load the comment in the comment template, but it doesn't seem to be available elsewhere. Any ideas?
0
votes
1answer
17 views

Comments not displaying for node that was added to a custom page

I’m attempting to make it possible for users to add comments to a custom page that was created via Page Manager. My understanding is that it is not possible to set up and allow commenting for page but ...
0
votes
0answers
15 views

Recent Comments time not updating

I have a recent comments block; however, it does not auto-update the time of the comments: the time it shows is the age of the comment when I decided to include the block. The only way I can update it ...
1
vote
1answer
40 views

How to show comments in teaser?

As the title says, I'm looking for a way to show the node comments in teaser. Anybody knows how to do?
0
votes
2answers
45 views

ASAF module redirects comment form to system/ajax#comment-cid after submission

I use Asaf (ajax submit for any form) module to Ajaxify form submissions in my website. This module works well but in comment form submission, it submits the comment then redirects the page to ...
0
votes
0answers
22 views

Control Comment permissions based on OG Roles

Using OG 7.x-2.7, we have an OG role called contributor that we'd like to use as the decision point to allow or not to allow content contribution in that group. Of the Group Content nodes, how do I ...
0
votes
0answers
15 views

Contextual Links on Comments

I would like the user to be able to edit or delete comments from contextual links. From an example module I've replaced $items['node/%node/example-action'] with $items['comment/%comment/edit'] But ...
0
votes
1answer
46 views

Remove all Div wrapper from comment form

I want to strip all default Drupal form wrappers and have something like below in comment form output <form> <input type="text" name="name" ...
0
votes
0answers
9 views

Load a comment's Subject field programmatically from the node subject or the previous comment subject

Drupal Version: 7.38 What I would like to do is when someone is commenting either on a node or another comment that the UI for their comment's subject is prepopulated with the node's subject if they ...
1
vote
0answers
36 views

How do I create a comment programmatically in drupal 6?

I have a comment form which gets rendered below the content type on content page. I have a comment form and comments being rendered as well. Now the question is that I have a custom form that takes ...
3
votes
2answers
104 views

How may I schedule when comments can be Opened and Closed?

Background: I've been tasked to set up a Q&A styled project where we invite an industry leader, subject matter expert (SME) to answer questions for hopeful students in the same field. The ...
2
votes
2answers
32 views

Permission for specific role to edit ANY comment

I'm using the default Drupal 7 comments for my website and I would like to give specific roles the ability to edit any comment. My role can edit just about everything about a comment(Name, email, time ...