Userpoints in Profile
sensifreak - August 26, 2009 - 10:51
| Project: | User Points |
| Version: | 6.x-1.0 |
| Component: | Code: userpoints_basic |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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

#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.