Questions tagged [drupal-comments]

This tag should be used for questions about node comments.

In Drupal, comments are handled by the Comment module, which define the permissions that allow users to create, edit, and delete node comments.

Resources

61 questions
1
vote
1 answer

Restrict comments in content type based on user role in Drupal

I am building a site in Drupal, where there are 2 different types of registered users. Let us call them basic users and premium users. These could be roles or groups or something... Authorized users will be able to publish pages with simple content…
Kostas Maragos
  • 569
  • 4
  • 18
1
vote
1 answer

hook_comment not modifying data

I want to change the name of the comment from the users account name to use the real name of the user (I am using RealName and CCK fields). This should be simple, however it is not correctly saving my values. function mymodule_comment(&$a1, $op) { …
Kevin
  • 13,153
  • 11
  • 60
  • 87
1
vote
1 answer

Drupal 8. Comments field on edit node page

Why comments field is not displayed on node edit form? Is it even possible to display comments field on edit form? Comments field is added to content type and is showing only in node display mode.
1
vote
1 answer

Need custom comments functionality( beyond comment module) in drupal

I've already enabled comments module. For my website i've following requirements: Customers will leave comments about vendor service on Pages Vendor will be provided a login who can reply comments Only vendors will be able to reply…
user5858
  • 1,082
  • 4
  • 39
  • 79
1
vote
1 answer

Drupal : access restriction on comments

I would like to have a restriction mechanism (access restrictions) on the comments that are posted on a node. In my system, all nodes are public. However, I would like the replies to be tied to Organic Groups so that only member of that group can…
1
vote
3 answers

Deleting old comments from Drupal 5 site

I have a D5 site with thousands of nodes and many, many more comments. Since this site is news-oriented,many of the stories are no longer relevant and are kept for archival reasons. I would like to keep the nodes and delete all the comments…
hRedBeard
  • 116
  • 1
  • 4
1
vote
2 answers

Controlling which comments are shown based on role in Drupal

This is a strange one and not ideal, but basically we have a Drupal site that has been using the core comments module to allow authenticated users to post and view comments for a node. We are now needing to extend this so that unauthenticated users…
drmonkeyninja
  • 8,490
  • 4
  • 31
  • 59
1
vote
0 answers

costum module Convert Forum Topic to comment

I need to develop one module that converts the 'Forum Topic' of the site, that is a content type, into one comment of another node of content type 'Action'. The Forum topic and the node 'action' have a taxonomy term in commun. So I start to…
Nootka
  • 11
  • 1
1
vote
2 answers

Replace "add new comment" link with image in Drupal

Is there an easy way to convert Drupal "add new comment" link into an "add new comment" gif image? Syntax that adds link appears to be
ernie
  • 119
  • 10
1
vote
0 answers

Drupal: Node Comments Paging displaying same 10 results

nid; $node = node_load($id); $node_view = node_view($node); $node_view['comments'] = comment_node_page_additions($node); print drupal_render($node_view); ?> I have above code to print my node comments on my…
Love Huria
  • 11
  • 1
1
vote
1 answer

How to hide Fivestar rating field programatically after first comment?

I'd like to hide the Fivestar rating field (called 'field_stars') in my comment form when a user comments on a node on which he/she's already commented. I have a flag called Commented on my site and a rule that flags a node on behalf of the…
Jeroen
  • 544
  • 3
  • 27
1
vote
1 answer

Custom comment form in CCK template

Pre-abmle: I am using MakeMeeting module to create/display meeting polls. This module has its own Content Type and I can't get comments to show on the screen (whether I choose to show comments or on same page or not in Comment Settings for this node…
AlexA
  • 4,028
  • 8
  • 51
  • 84
1
vote
1 answer

How to display the replies count of the each user comments with show/hide option in node view page in Drupal 7?

Now, I am having comments section like this in node view page. Comment 1 comment 11 comment 12 Comment 2 Comment 3 comment 31 comment 32 comment 33 But, I would to show this with show/hide option for replied comments…
sadeesh kumar
  • 475
  • 1
  • 5
  • 11
1
vote
2 answers

How to render comments in Drupal 7

I have a template file node-contenttype.tpl.php. There I´m trying to print the comments of that node via print render($content['comments']); but only the comment form is rendered. So im looking into the comment-wrapper.tpl.php and the…
dba
  • 220
  • 1
  • 10
  • 23
1
vote
1 answer

Drupal 7 Comment Not Posting

I'm having a heck of time trying to get comments to post to my nodes. I've done all the obvious: Enable comment module, set appropriate permissions, etc. But every time I try to enter a comment it simply redirects to a "Add new comment" page and…
Jason Barnes
  • 58
  • 1
  • 1
  • 5