Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

With users being entities in D7 I assumed the user type would would have built in "comment" option. That doesn't seem to be the case. I just want to allow users to leave comments on the user profile page. Is there a simple way to doing that?

share|improve this question

11 Answers 11

up vote 7 down vote accepted

You can use Profile2, that attach node to user profile, so it can be commented and will look as commenting to user.

share|improve this answer
Can you please explain how to attach node to user profile. One user having doubt but he is not able to add comment. Here is question: drupal.stackexchange.com/questions/79945/… –  mohit_rocks Jul 23 '13 at 4:22

I have not tried it, but the project page looks really good.

Reply is a D7 answer to entity comments. It is not intended to replace core comment module, more likely it supplements it's inability to work with entities other than node.

Reply is basically a fieldable entity with subject and body fields which are hardcoded into module and are not Field API fields. This is because it is the essence of reply/comment. The entity is fieldable so you can create a 'review' or whatever you like by attaching fields to it's bundles.

share|improve this answer
Yeah i think this is probably the future way to go, though the module itself needs quite some work to have the same kind of usuable feature-set of the core comment module. It definitive need some help –  Daniel Wehner Feb 4 '12 at 12:30

Currently in Drupal 7 core, the comment module is still coupled to node.module. Comments are entities but can't be added to entities other than nodes.

You can see this issue to get the update: Decouple comment.module from node

share|improve this answer

Disqus module also works on profiles. Thanks to Rob Loach for the tip.

share|improve this answer

I will encourage the use of statuses http://drupal.org/project/statuses for a "twitter-facebook" wall style. It's not a "comment" entity but it works pretty well.

I also looked the code, it is well written and has many hooks.

Statuses also integrates with: Views Activity Flag Rules Domain Mollom Notifications Messaging Pathauto Services Twitter Userpoints

share|improve this answer

If the use case is one where each user can only comment once (like a review for example), the best solution I've found is using the Flag Module. Version 7.3 of Flag is now fieldable. So you create an "add comment" flag and add a text field + whatever other fields you want to it. Then you can display the contents of the flags in a view. Very flexible, extendable and non-hack-y solution.

share|improve this answer
Excellent idea. Works like a charm in my case. –  Rana Prathap Dec 30 '14 at 8:15

Also there's modules https://www.drupal.org/project/user_profile_comments and https://www.drupal.org/project/reply that allows to attach commenting for user profiles

share|improve this answer

The user profile is essentially a view; you can hook into the view to include the comments.

share|improve this answer
that's if I use profile2? Otherwise where would the comments come from? –  MotoTribe Sep 19 '11 at 19:14

The way I ended up implementing comments on user profiles was to add a "guestbook" content type that has a user reference field.

When you look at someone's user profile you can click "sign guestbook" which links to "node/add/guestbook?edit[field_guestbook_userreference][und][uid]=user123".

The prepopulate module is used to prefill the username on the node add form with "user123" and I use css to hide that field. The guestbook has comments enabled to allow others to comment as well.

I use a view block to show the "guestbook" titles on the userprofile.

share|improve this answer

create comment node with all fields. Among them one field must refer to the profile2 type(Using reference module). Then you can attach that node to profile2 using EVA module. If any better answer, let me know.

share|improve this answer

you can add a field collection item to your profile and then add arbitrary fields to it. so users can insert comment with it if you use field permision module and give all users the permision of inserting comment. it is works properly I've try it

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.