This tag should be used for questions about node comments.
0
votes
1answer
7 views
Comments custom fields access by role
Ive added a custom comment field to comments of my node i.e. new fields beneath comment_body that being field_flag_reason and field_unflag_reason
I want to hide these two fields for specific roles so ...
1
vote
1answer
12 views
Showing user image for custom comments created in views (Drupal 7)
I am using a Drupal view for displaying comments.
I have the show: in the format field set to comments.
Therefore I won't be able to add extra fields in the field's section.
I have a custom URL where ...
0
votes
2answers
22 views
How to modify the comment body while in comment.tpl.php [closed]
At a Drupal 7 website dedicated to a card game I'm trying to color the special characters for hearts and diamonds in all plain_text comments red.
Since I haven't found the way to modify the text ...
3
votes
1answer
26 views
Allow only specific users to add, edit the comment
I am using Drupal 7.
I am using access control list module to manage the edit, update and delete permission to specific users. And it is working perfectly.
Now i want the same feature for the ...
0
votes
0answers
28 views
Where to modify pagers from nodes with comments to link on #comments?
I know there is a #comments anchor in every node with comments available.
When there are more comments than the content type limit allows per page, then there will be a pager on the bottom of the ...
4
votes
2answers
112 views
How to color cards (hearts and diamonds) red in Drupal 7 comments?
I run a Drupal 7 website with Forum, Blog, Comment core modules enabled and a custom module (generates a block with Flash game and blocks with player rating) written by me.
The website is dedicated ...
1
vote
3answers
30 views
how do i alter comments and comment form
I am trying to change the way comments are displayed in drupal 7 for a specific content type. I am using garland theme. Ideally I would like to modify comment display in my module as opposed to doing ...
0
votes
2answers
33 views
How to add “load more” link to comments?
I am trying to style my comments list to be similar to Facebook comments, so that user can load more comments by clicking on a link to load more. If there is a big number of comments then he should be ...
2
votes
2answers
19 views
How to embedding Comment form for each individual item in drupal's view?
In my current project I want to embedding comment form for individual item in views but I did not get any settings/ configurations for the same in view. I tried to override template for the same using ...
0
votes
0answers
24 views
Undefined property: stdClass::$comment_body in comment_submit()
whenever I am posting a comment I am getting this error.
Notice: Undefined property: stdClass::$comment_body in comment_submit() (line 2193 of ...
0
votes
1answer
33 views
Find out what time was last comment posted on a node
I want to put a new icon next to node listed in a block if it was created/updated or commented on in last 1 day. I'm able to fetch all the nodes which were created/updated or commented on sorted in ...
3
votes
1answer
31 views
Why are comments enabled on my content types in Simpletests?
When I run Simpletest, it's showing comment forms at the bottom of all the nodes, even though I don't even have the comment module enabled, nor permissions assigned for it. These comment forms showing ...
0
votes
0answers
17 views
How to add comments to Taxonomy Terms?
I want to add comments to Terms so that If a term page is loaded, all the relevant comments are loaded. How can I add it? Right now I can fetch all the comments on a Node but cannot associate it to ...
0
votes
1answer
29 views
Comments with Facebook Auth User and anonymous
I'm working in a site that needs some special behavior for comments.
The user will have anonymous and users connected with Facebook.
For comments, the site needs to allow anonymous comments posting ...
2
votes
3answers
210 views
How do I redirect back to the source page after the user submits a comment?
How can I access the nid of the current page so that a user can submit their comment and be returned back to the page they just commented from. Here's what I am proposing...
function ...
0
votes
1answer
64 views
Why does “Read more” link not show up on view, but “Add new comment” does?
As said in the title, I'm having a problem with the "read more" link.
I made my own view (wie-zijn-we-pagina) and content type (wie-zijn-we-) and am trying to add a custom "read more" and "add new ...
0
votes
1answer
28 views
View to show node titles only when a new comment has been posted?
I am trying to create a view that will show the titles of all nodes only when these nodes have new comments. I need a filter like "Content has new comments" but there isn't any.
Can somebody help?
...
0
votes
3answers
40 views
Allow users to log in to Facebook/Open ID/Google to comment on blogs
I am considering migrating a blogspot blog over to Drupal 7. My biggest concern is maintaining the existing commenters. In order to make it as easy as possible for the people to contribute by ...
1
vote
2answers
111 views
How to change “Read more” and “Add new comment” link to an image in teaser view?
On the project that I'm working on now I need to display the "Read more" and "Add new comment" links in my teaser as images in sepperated divs.
The problems that I have is:
I'm using "display ...
0
votes
2answers
43 views
How can I alter the 'submitted by username' for a comment?
I am rendering comments on my site. I am using the Zen theme. If I remark out <?php print $submitted; ?> in comment.tpl.php the 'username replied on' part is no longer rendered. But I don't want ...
2
votes
1answer
25 views
Is there a hook I can use to alter the way comments are rendered?
Is there a hook I can use to alter the way comments are rendered? Not for altering the comments form, but the listed comments themselves. Obviously, I can target with CSS, but I was wondering if I can ...
2
votes
2answers
33 views
Action to be triggered on Comment Approval
How can add new rule to trigger when a comment approve, in drupal7?
Thanks for your Support...
0
votes
1answer
26 views
How can I display comments/comment form with a custom module?
I have created a module which returns a render array via page callback in hook_menu. The render array contains several arrays that render markup and tables (and data from a particualr node: passed in ...
3
votes
1answer
57 views
Add counter to comments
I would like to add a coutner to comments, so when I view a node I've something like:
Comment #1 - Text
Comment #2 - Text
Comment #3 - Text
and so on..
Is there a way to obtain this?
Obviously ...
1
vote
1answer
47 views
“messages status” div not showing up when submitting page comment
"messages status" div not showing up when submitting page comment.
It's just a regular old page content type and "messages error" div shows up fine in same place... when I try to submit a comment and ...
0
votes
0answers
23 views
Storing additional parameters for comments
I have a page that takes in a single 'id' parameter to pull from a database. Because of this, each different possible parameter is sort of a different page. I have comments enabled on this page, so I ...
0
votes
1answer
57 views
No 'pagination' on Article comments
Ok, I'm on D7 and using the default Bartik theme. I set comments for content type Article to be 10 per page, threaded. I published a test Article and started commenting to test the paging, and when I ...
1
vote
0answers
19 views
Changing comment title
Drupal takes automaticaly first words of a comment like the title of the comment. Admin can modify a comment text, but there isn't apparently any place to change the title O_O!
How can I change the ...
1
vote
1answer
50 views
Changed Comment Module and database table - how to revert changes?
Yesterday, I posted this thread which was subsequently locked for being too localized. I think this is much more searchable (and I still need help!) but I'm sorry for the bad thread.
Like mentioned ...
0
votes
2answers
51 views
Remove link from $title in comments
I'm using Drupal 7. When I post a comment to an article, its title looks like <a class="permalink" rel="bookmark" href="/comment/9#comment-9">comment title</a>.
I need only the “comment ...
1
vote
1answer
27 views
Total number of published comments from the logged in user
On our Drupal 6 site we are looking at setting up this rule for comments:
1) If you don't have an approved (i.e. published) comment then your comment goes into the moderation queue
2) If you have an ...
0
votes
0answers
21 views
How do I calculate the threaded comments position?
How do I calculate the position of a certain comment in the node of threaded comments given the ID of the comment and its parent ID? I know it has something to do with int2vancode(), but I don't ...
1
vote
0answers
14 views
Grouping Node Comment in Views
I am trying to set up the following in Views:
Review 1
-Example Field
-All Comments of the Review
Review 2
-Example Field
-All Comments of the Review
I'm pulling in the comments from a ...
1
vote
1answer
34 views
delete/approve comment
How can the administrator delete an "impolite" comment and approve comments before publishing?
Globally speaking, what is the best management of the comments?
0
votes
1answer
29 views
Comment not respecting line breaks (Drupal 7)
All of my comments for all of my content types do not respect show line breaks. I have tried to dig pretty deep into this issue but I now feel quite stuck. Here are my findings:
It seems that the ...
4
votes
1answer
89 views
A blacklist module for D7?
Is there I module for Drupal 7 to create a blacklist of words that should be used to block, or hide, comments?
On drupal.org I didn't find anything.
0
votes
0answers
30 views
Are the comments only for the nodes?
I'm thinking of making a module for Drupal 7. The main content aren't nodes, it will be in a different table. Can I use the default comment module or it is only for the nodes?
Sorry for my english.
0
votes
0answers
6 views
passing arguments to comment entity to be stored in a field
Is it possible to pass arguments to be stored in a comment entity?
E.g. I want to store which paragraph I clicked on to be commented on in the comment display?
or
E.g. The title of the comment ...
-1
votes
2answers
47 views
Theming a view of comments
I have a view which creates a block of comments. I have a comment.tpl.php in my theme folder which I use to theme the comments on the node.
To theme the view, I need a variant of comment.tpl.php ...
0
votes
1answer
28 views
How do I enable comments for forum like statuses module?
i used this module project statuses (drupal 7)
i want that write comment for forum like above module.
how can i do assign statuses style to comments forum?
1
vote
2answers
37 views
How to add classes to comments?
I've put the following code above print render($content['comments']); in comment-wrapper.tpl.php of our theme to add question or answer class to every comment:
foreach($content['comments'] as ...
0
votes
1answer
38 views
Why do I get “Undefined index: mail en comment_form_validate()”? [closed]
Is there a way to fix the notice I get?
Notice: Undefined index: mail en comment_form_validate()
Notice: Undefined index: homepage en comment_form_validate()
This appears in my message area ...
0
votes
1answer
23 views
Views pager not rendered for teasers with comments
I have a views which displays teasers. Pager is also set.
When comments in teasers is enabled pager doesn't show up, however it does when comments are turned off.
I cannot figure out what the issue ...
3
votes
1answer
102 views
posting a comment on cached page
I am a bit confused now - is it normal behavior that posting an anonymous comment on cached page invalidates ALL cached pages for whole site for current anonymous user? Beacouse that is exactly what I ...
0
votes
1answer
85 views
How to import/sync comments from Disqus into my drupal database?
After reading the module´s homepage, I understand that there´s an easy way to get disquss comments easily imported/exported from your Drupal database in D7.
To import/sync: You can do a one-time ...
3
votes
1answer
82 views
Threaded comments pager ajaxified
I require threaded comments with pager but instead of loading a new page when pager is clicked, I want the data to be loaded via ajax. There are 2 problems I have with page load -
Loading a new page ...
0
votes
0answers
11 views
Add to microblog “reply” option?
I called microblog form on user profiles:
<?php
module_load_include('inc', 'node', 'node.pages');
print drupal_render(node_add('microblog'));
?>
I am displaying posts with view on user ...
1
vote
2answers
68 views
What are the database tables related to comments in Drupal 7?
I received a lot of spam comments in one of my websites running on Drupal 7. I googled for a solution to delete them in bulk and came up on
DELETE FROM comment WERE status = 0
The query worked but ...
5
votes
1answer
72 views
Got error while posting comment
I'm using "Unpublish comments with keywords" action. I've just noticed a PHP error on submitting any comment.
drupal_render() expects an array but comment_unpublish_by_keyword_action() calls it ...
1
vote
1answer
68 views
How can i access only the text of a comment?
In the comment.tpl.php there is
<?php
print render($content);
?>
and this converts to this html
<span rel="sioc:reply_of" resource="/drupal/?q=node/5" class="rdf-meta" ...