Your question is similar to what is done in the Answers module (which comes with the
Answers Userpoints sub-module that integrates with the User Points module). The newest 7.x-4.0 version of Answers also comes with the (new)
Answers Theme sub-module, which you can see at work in this example question. Note the "points" that are shown below each author (user) to the left of a question or answer, which is similar to the "user profile of a comment" in your question.
These points are shown via what you can see in this template file (used for nodes of type "Question"), the template used for nodes of type "Answer" is similar. Both templates are part of the
Answers Theme sub-module. More specifically both templates have a line that looks like so:
<?php print userpoints_get_current_points($node->uid); print ' ' . t('points'); ?>
So to complete the answer to your question, this is how you can get it to work:
- Use a template related to the comments where you want to show the user points.
- Add a line similar to the code above, using
userpoints_get_current_points and replace
$node->uid in it by the user id of the user who posted the comment.
- Refer to the documentation about userpoints_get_current_points if you need more details.
Disclosure: I'm a co-maintainer of Answers.