I want to print a custom user field of the commenters. It is an Link field (https://www.drupal.org/project/link). Some users have that field completed and other not.
I've read a lot of posts related to this and tried several solutions. The only code that seems to nearly work OK is the following (found in https://drupal.stackexchange.com/a/129222):
<?php print render(field_view_field('user',user_load($comment->uid), 'YOUR-CUSTOM-USER-FIELD'));?>
The field shows, but there are 2 problems:
1) It causes 2 errors of "Strict warning: Only variables should be passed by reference en include() (line 73 of .../templates/comment.tpl.php)."
2) It shows the entire field, including its label and the complete link with the settings of the field. I only want the "raw" value of the field, the text that users introduce in the field.
Thanks for your help!