Closed (fixed)
Project:
User Points
Version:
6.x-1.x-dev
Component:
Code: userpoints API
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Oct 2008 at 22:56 UTC
Updated:
22 Aug 2010 at 21:16 UTC
How would I get the points of the poster to display on comment/node.tpl.php. Thanks!
Comments
Comment #1
kbahey commentedYou can find something very similar here: How To: displaying userpoints below avatar/user picture.
If you change node.tpl.php or comment.tpl.php instead then you get what you want.
Comment #2
Flying Drupalist commentedHi, that code causes the user picture to display as a link instead of actual picture.
Also can you return the currency name after the points number. So it says # points, not just #. Thanks.
Comment #3
jredding commentedin comment.tpl.php you have access to the author of the comment or the node (respectively).
In order to display the points you would do as the following post stated; which is
comment.tpl.php
node.tpl.php
Comment #4
jredding commentedto return it with the appropriate "point" wording.. do the following
Comment #5
Flying Drupalist commentedThanks, that works as desired. :)
Comment #6
kbahey commentedWe also need to get this done at some point. It will be more convenient to display points consistently across the site from just one place http://drupal.org/node/310737
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #8
lelizondo commentedsubscribing
Comment #9
kpv_dnepr commentedOne more time) How would I display userpoints on node.tpl.php for this node, not for user. Thanks!
Comment #10
kbahey commentedDo not comment in closed issues.
Also, your question is meaningless. The points are attached to users, not to nodes.