0

I need add ability to add comment for user profile. What i am thinking is, create a content type with empty body and leave just comments, and afterwards insert that node to user_profile. But i don't know how to append comments to user profile tpl file. How to do this, or maybe other suggestions?

After some research i decided to make my own module to add comments on user profile, i will make a block and insert this block to only user page user/*, and will track user id to show proper comments.

  • Do you use profile2 module ? what is your drupal version? – Yusef Sep 5 '12 at 8:17
  • yes i have profile2 module, drupal version 7 – Petro Popelyshko Sep 5 '12 at 8:17
2

If you use Profile2, this creates profiles as node type entities so you can turn comments on as each profile will have settings similar to that when you create content types.

|improve this answer|||||
  • there is not setting for add comment ,admin/structure/profiles/add or in admin/structure/profiles/manage/test . profile not support commenting by default – Yusef Sep 5 '12 at 8:48
  • My bad, just tried and you are correct there is no option. My answer is how it used to work for Drupal 6 – WestieUK Sep 5 '12 at 9:03
  • any other suggestions? – Petro Popelyshko Sep 5 '12 at 9:05
  • You could look at drupal.org/project/reply but this is in dev – WestieUK Sep 5 '12 at 9:20
1

If you want add comment to profile in template files, do you think how you want realate those with eachothers?
I suggest you using modules like commentfield . install and add a comment field in your profile type.

Your right, please look at this issue and this

|improve this answer|||||
  • in this module you cannot add comments on a view page – Petro Popelyshko Sep 5 '12 at 8:47
  • I said some module like it ,as example reply – Yusef Sep 5 '12 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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