Posted by sensifreak on August 26, 2009 at 10:51am
Jump to:
| Project: | User Points |
| Version: | 6.x-1.0 |
| Component: | Code: userpoints |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hey!
I am using content profile and a user-profile.tpl
Now i want to show the userpoints of the profile owner
<?php
print userpoints_get_current_points($profile->uid);
?>Only shows the userpoints of the currently loged in user. so it shows in every profile my userpoints :o
please help me
Comments
#1
Could nobody help me?
#2
Push
#3
Please i need this fast!
#4
hey pease how can i show user points in content profile`?
#5
are you sure that $profile->uid is profile owner uid?
try to print somewhere in content profile, if the problem is not that you are using variable of logged user instead of profile owner.
#6
Hi,
Use the API function as follows:
userpoints_get_current_points($account->uid, $tid = NULL)That works for me.
#7
Looks like this is fixed. If an invalid value is passed to userpoints_get_current_points() then it simply uses the current user.
#8
Automatically closed -- issue fixed for 2 weeks with no activity.
#9
if you use content_profile module, then you should use this code to print points count in a profile:
<?phpprint userpoints_get_current_points($node->uid);
?>