Closed (fixed)
Project:
User Points
Version:
6.x-1.1
Component:
Other
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2010 at 18:43 UTC
Updated:
16 Aug 2010 at 17:00 UTC
Hello,
Could someone please give me a quick tip so I can move forward on my project?
I'm simply trying to create a block that shows the point total for user #1 using php.
I want to use this for a counter on my site http://carbonpig.com
I've tried the following code as a starting point:
<?php if ($page): ?>
<div class="points">Earned points :<?php print userpoints_get_current_points($user->uid);?></div>
<?php endif; ?>Any thoughts or help will be greatly appreciated. In fact, I'll paypal you $10 if you have a solution today for the help. If you're pride is beyond cash, that's cool too. I'm simply stuck and can't get the value to appear in a block for some reason.
Thanks ahead of time!
CarbonPig
Comments
Comment #1
kbahey commentedI prefer to have this in a module, but a quick and dirty way is this:
Comment #2
CarbonPig commentedThank you - You're awesome!
Comment #3
kbahey commentedDid it work? If so, please mark the issue as fixed.
Comment #4
duckzland commentedif you want to show different point on different user page
for different user at any page
Comment #5
berdirLooks like the question is resolved, closing the issue.