Closed (fixed)
Project:
User Points
Version:
6.x-1.0
Component:
Code: userpoints
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2009 at 10:51 UTC
Updated:
5 Jun 2011 at 09:06 UTC
Hey!
I am using content profile and a user-profile.tpl
Now i want to show the userpoints of the profile owner
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
Comment #1
sensifreak commentedCould nobody help me?
Comment #2
sensifreak commentedPush
Comment #3
sensifreak commentedPlease i need this fast!
Comment #4
sensifreak commentedhey pease how can i show user points in content profile`?
Comment #5
igorik commentedare 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.
Comment #6
yoeld commentedHi,
Use the API function as follows:
That works for me.
Comment #7
berdirLooks like this is fixed. If an invalid value is passed to userpoints_get_current_points() then it simply uses the current user.
Comment #9
Heihachi88 commentedif you use content_profile module, then you should use this code to print points count in a profile: