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.

2
  • Do you use profile2 module ? what is your drupal version?
    – Yuseferi
    Commented Sep 5, 2012 at 8:17
  • yes i have profile2 module, drupal version 7 Commented Sep 5, 2012 at 8:17

2 Answers 2

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.

4
  • there is not setting for add comment ,admin/structure/profiles/add or in admin/structure/profiles/manage/test . profile not support commenting by default
    – Yuseferi
    Commented Sep 5, 2012 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
    Commented Sep 5, 2012 at 9:03
  • any other suggestions? Commented Sep 5, 2012 at 9:05
  • You could look at drupal.org/project/reply but this is in dev
    – WestieUK
    Commented Sep 5, 2012 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

2
  • in this module you cannot add comments on a view page Commented Sep 5, 2012 at 8:47
  • I said some module like it ,as example reply
    – Yuseferi
    Commented Sep 5, 2012 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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