Closed (fixed)
Project:
User Badges
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2007 at 12:28 UTC
Updated:
25 Jan 2007 at 12:45 UTC
I tried to use print user_badges_for_uid($uid); in comment.tpl.php but badges doesn't display. What's the matter? In node.tpl there are no problems.
Comments
Comment #1
heine commentedThe parameter to user_badges_for_uid has to be a user id. In comment.tpl.php the uid of the comment author is held in $comment->uid, so you can use:
Comment #2
(not verified) commented