This tag should be used for questions about node comments.

learn more… | top users | synonyms (1)

2
votes
1answer
8 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
12 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 ...
0
votes
1answer
26 views

How to have on-page comments in Drupal 7?

Currently, if you enable threaded comments on Drupal, the user has the ability to click on "reply". This takes the user to another page where they can write the comment. I want this functionality to ...
-1
votes
0answers
15 views

Insert item in every comment using Comment.module

I need to insert a button on every comment(not on comment-form) which will submit informations about the comment to a php file. So I have to create a form with hidden fields(just the button is ...
1
vote
1answer
23 views

Comment ID in Comment field

I've added a custom static field to comments. This static field is custom php code but I need to access the specific comment ID using php code in it. So how can I get the comment ID for every comment ...
0
votes
1answer
10 views

Change Log in or register to post comments for content type

We are using the comments for a particular content type to post reviews for that content type. I have searched the web but can't find a proper solution how to change the text "Log in or Register to ...
0
votes
0answers
9 views

Need to show add comments form above the comments in panelizer?

I am using Panelizer to show the layout of content types. Now I want a single block for comments and add comment form. Is there some way this is possible without any custom coding?
0
votes
1answer
20 views

comment pager not showing in bootsrap theme

I create a new theme based on Bootsrap and the below template files, I limit show comment on every page on 50 comment in edit of content type in comment section, I have 126 comment in one of my node ...
0
votes
2answers
39 views

add user profiles fields into comment fields

I'd like when a user comments, to display his information. Let's assume I do have in my user profile 2 fields, Job title and Biography. When a user comments, I would like to get those 2 fields and ...
0
votes
0answers
8 views

can i change the value of comment settings in Drupal 6?

I have a default value of comment settings as 'read-write' but i want to set it to disable. I change this in administer >> content >> content types. But when i wanna create a node, the bloc of comment ...
0
votes
0answers
11 views

Drupal form URL redirect parameter failing on redirect to view

I'm trying to redirect a comment form to a URL other than the node where the comment was posted. If I redirect to a node or a static view URL it works correctly: Comment URL: ...
0
votes
1answer
16 views

How to display entire comments in separate page

I know we can display reply form in separate page. But now I having the requirement of displaying entire comments and reply form in separate page. Is there have any way to display those in separate ...
0
votes
0answers
8 views

Services: add uuid pid on comments

I'm migrating contents from drupal to drupal with services module (and services_uuid). I'm using UUIDs to matching every entity, but when I retrive a comment, services returns me only the id of the ...
0
votes
1answer
34 views

How to print the raw value of a custom user field in comments

I want to print a custom user field of the commenters. It is an Link field (https://www.drupal.org/project/link). Some users have that field completed and other not. I've read a lot of posts related ...
-1
votes
1answer
18 views

How to delete duplicate comments using sql?

In order to clean up an old large site from spam, I'd like to delete all duplicate comments from mysql. By duplicate I mean, the comments which are posted by the same user across all nodes of a ...
0
votes
1answer
7 views

Hide comments on a node type for standard users

I'm using the 'comment permissions' module to restrict standard 'authenticated' users from commenting on a particular node type. However I do not want them to bee able to see comments on that node ...
0
votes
0answers
13 views

how to comment for both answers and question in Question/Answer module?

I am using the Question / Answer module. However, it can not be attached to Answer it is possible to attach the comment only Question. I think Answer also I want to put a comment. How would it?
0
votes
1answer
40 views

How can I change URL of 'Add new comment' link on teaser?

Currently, I have a list of teasers and they have a comment count and an 'Add new comment' link. That link goes to a dedicated comment page with a URL of the form "/comment/reply/19#comment-form". ...
0
votes
0answers
11 views

Multi-lingual comments translation only appears on source language post

I am seeking a patch for Drupal commons to fix an issue with comments to a post not appearing on the translated post as a thread. So, in simple terms, on the original language post all comments ...
0
votes
0answers
6 views

Is it possible to use the administration theme, when editing comments? [duplicate]

I would like to show the edit form of comments within the administration theme. Is there a way to do this without using "theme key" or the "context" module?
3
votes
3answers
90 views

How to create a view block for comments with nesting and parent relationship

I'm trying to display the comments on my nodes in a view rather than using drupals default comments rendering. Is it possible to display a comment view on a node, which also renders the comments with ...
0
votes
1answer
14 views

Comment reply form not working?

When I click 'reply' button on the comment, a new comment form open in new Windows; but subject box does not contain 're:' or like that and my reply saves as a new comment. How can I repair my ...
0
votes
0answers
20 views

how to hide fields on answer to a comment?

How can I filter, if a comment is a new comment or is an answer to another comment. As far as I can see, it is always the same form-id. In other words: I added some voting fields to comments. Now I ...
0
votes
0answers
50 views

Missing bundle property on entity of type node

This issue happens when a user is on my comment page and selects save without adding any information. I've narrowed it down to my node--editorial.tpl.php page. when i comment everything o ut on this ...
0
votes
0answers
7 views

display non published comments with special test and condition

How can i modify in the loop of displaying the comments in drupal 7 foreach (....) { if ($comment->stauts == 0 && $comment->condition ==1){ // Display comment with new class } } ...
0
votes
1answer
37 views

How to create a view of nodes *without* comments from currently logged in user

I'm trying to create a view that lists nodes that don't have any comments from the currently logged in user. The nodes may have comments from other users, but if there is no comment from the current ...
1
vote
1answer
18 views

Associating comments with special pages/module output

I have what one could consider an "irregularity" in a Drupal module. I have this unique case (mostly due to vendor inconsistencies and ever-changing requirements) where when a user requests a certain ...
7
votes
3answers
241 views

Why are comments not a node content type?

So Drupal has a 'special' commenting system. Comments are second-class citizens in Drupal compared to nodes... But why did the core team not just create a default Content Type, Block and View ...
0
votes
1answer
28 views

Comment with email or social networks

I am developing my personal site in drupal 7. Actually i am searching for a module which allows anonymous users commenting with their email or any social n/w like twitter,facebook or google+. Is there ...
0
votes
0answers
28 views

How to prevent the comment form from redirecting?

I have a page with a View listing comments; the comment form is also in this View. After submitting through the comment form I get redirected to the actual comment, however I would like to stay on the ...
0
votes
2answers
50 views

How to use cookies in Drupal? [duplicate]

I am writing a module that allows users to put comment on each paragraph. So in my module I have added a new field to comment table called "paragraph_id" and I have also added a new field to comment ...
0
votes
0answers
18 views

Missing Bundle Property on Comments Section

While in a page, i select "save" on the comments field section, with no content, shows me an error of the following" EntityMalformedException: Missing bundle property on entity of type node. in ...
1
vote
1answer
27 views

Trying to get property of non-obJect Custom Module

Notice: Trying to get property of non-object in speakerdetailblock_preprocess_block() (line 42 I'm getting errors across the board, mainly in the common.inc file - EntityMalformedException: Missing ...
-1
votes
1answer
26 views

How to set comments for a content-type to “awaiting moderation” instead of published (by default)?

In Drupal 7, I've created a "blog post" content-type. It allows comments, but its default behavior is to publish automatically a new comment, right after the user submits it. I would like to change ...
0
votes
2answers
122 views

How to display comments and comments form on custom node pages

I am new developing my first ever site in drupal. Along the line, due to the requirements of the project I had to create custom node pages (template files) instead of the default ones in drupal. For ...
0
votes
0answers
17 views

Replace comment form

I have a content type that acts as a wrapper for article content types. You are able to attach node IDs to this content type and it renders the articles in a list. I am looking to replace the default ...
0
votes
1answer
33 views

Show commenter IP address to admins (Drupal 7 / AdaptiveTheme)

Once upon a time, with an older version of AdaptiveTheme, I got this to work by patching templates/comment.tpl.php. The patch I was looking looked something like: - print t('Submitted by ...
0
votes
1answer
33 views

How to set available options for Comment Per Page select?

In Drupal 7, In comment setting a option Comments per page show 10, 30, 50, 70, 90, ... 300. I want to option "Comment per page" show like 1, 2, 3, 4, .... .
0
votes
0answers
24 views

View of Nodes with their associated comments Drupal7 [duplicate]

I have been looking for this for some time now, but unfortunately I'm unable to find a solution, thus turning to you guys. I am trying to create a view where certain nodes are listed, but I want to ...
0
votes
2answers
45 views

How to add reCaptcha while doing comments on my drupal website

I am developing a drupal website. To avoid spam I have decided to use reCAPTCHA module while user registration and before putting comments on my website. How to achieve this? Can I use reCaptcha ...
0
votes
1answer
26 views

How can I use hook_comment_view?

I have added a new field to comment table, called "paragraph_id", I have also added a field to comment form that ask users which paragraph they want to put comment on and what they enter will be saved ...
0
votes
0answers
6 views

Update comment table with hook_form_comment_form_submit

I have added a new field to comment table, called paragraph_id, I have also added a new field through UI to comment form called "paragraph_number". So after user enter a number in the ...
1
vote
1answer
25 views

How to put description on top of the input box, for a new field added to comment form?

I have added a new field to my comment form and this is how my comment form look liks: So you can see it does not look nice, I want to have the description on top of the input box, where I say: ...
0
votes
2answers
23 views

Action when a comment has been replied to

I have a unique case where we need to do something, namely a behavior where a user Comments on a node, and when a new comment is made in response to him, we need to "alert" the user in a variety of ...
0
votes
1answer
70 views

Reply for comment redirects to the next page

I am using advance forum module and having commenting functionality for the forums. But the problem is when I use to reply to the comments it redirects me to the next page. Where I want to display a ...
-1
votes
1answer
33 views

How to write a db_select query? [closed]

How can I write a query to do the following: select cid, thread and paragraph_id(I have added this field to comment table) from comment table, and then sort them first based on the paragraph_id and ...
0
votes
1answer
37 views

user pictures not showing up in posts & comments

I am using a custom theme and it is not showing user pics in comments. When I compared 'Appearance > Settings > Toggle display settings' of my theme with Bartik, if found that "User pictures in ...
0
votes
0answers
28 views

Sort comments base on a field

This is the sort_comment.module file. <?php /* drupal@ganovelli.it - blackice78 */ define('SORT_COMMENTS_OLDER_FIRST', 1); // default define('SORT_COMMENTS_NEWER_FIRST', 2); /* ...
0
votes
1answer
66 views

How to show Comments (created with entity form) only to the Admin user and logged in?

I'm cool fresh drupal :) I'm trying to filter views in a content type entityform for the user logged in and admin. In practice this form through the admin and user login should communicate. ...
0
votes
1answer
47 views

how view count number vote fivestar on comment?

it like this. examp: 5 star ***** (15) 4 star **** (150) 3 star *** (2) 2 star ** (0) 1 star * (12) now. 15 is number comment vote 5star for node this 150 is number comment vote 4star for node ...