MyBB-Plugins Forums
Displaying a user's points count? - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: Archived Forums (http://forums.mybb-plugins.com/Forum-Archived-Forums)
+--- Forum: MyBB 1.6.x (http://forums.mybb-plugins.com/Forum-MyBB-1-6-x)
+---- Forum: NewPoints (http://forums.mybb-plugins.com/Forum-NewPoints)
+---- Thread: Displaying a user's points count? (/Thread-Displaying-a-user-s-points-count)



Displaying a user's points count? - Joshee - 02-04-2010

How do I display a user's point count in a custom page I created?
I tried {$points} but it didn't work (Obviously because the custom page doesn't know where to put the value from.)


RE: Displaying a user's points count? - Diogo Parrinha - 02-05-2010

Do you want to display the amount of points the user who's visiting the page has?
If that's it, you can use {$mybb->settings['newpoints_main_curprefix']}{$mybb->user['newpoints']}{$mybb->settings['newpoints_main_cursuffix']} however it's not rounded

Smile


RE: Displaying a user's points count? - Joshee - 02-05-2010

Thank you! I will try that and see what happens Smile
EDIT: That worked, thanks, Pirata Smile


RE: Displaying a user's points count? - Diogo Parrinha - 02-05-2010

Great Smile


RE: Displaying a user's points count? - Andraž Rihtar - 05-10-2010

I'm sorry for reviveing this topic, but I didn't want to create a seperate one, since this one already exsists.

I'm just wondering if there is any way to remove the decimals in this view and yes, I've removed decimals in settings, but decimals are still shown with this code Sad

Regards,
Svizy


RE: Displaying a user's points count? - Diogo Parrinha - 05-10-2010

No, as I said, money is not rounded


RE: Displaying a user's points count? - Andraž Rihtar - 05-10-2010

(05-10-2010, 07:15 AM)Pirata Nervo Wrote: No, as I said, money is not rounded
Oh sorry, I missed that in your post :S
Ok thanks for telling me...again Smile


RE: Displaying a user's points count? - NNT_ - 08-04-2012

Great! It's worked! Thanks Pirate Nervo Big Grin