MyBB-Plugins Forums
NewPoints var? - 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: NewPoints var? (/Thread-NewPoints-var)

Pages: 1 2


NewPoints var? - Evoke - 09-17-2009

Whats the variable for it to like post it? Like in templates and such? Thanks


RE: NewPoints var? - Andrew - 09-17-2009

what do you mean? Smile


RE: NewPoints var? - Evoke - 09-17-2009

The variable to show how many points/money you have. You get me?


RE: NewPoints var? - Andrew - 09-17-2009

ok Smile here it is.. for postbit
Code:
{$post['newpoints_postbit']}



RE: NewPoints var? - Diogo Parrinha - 09-17-2009

the money for each user is $mybb->user['newpoints']
however NewPoints formats the points with the currency symbol, decimal cases, etc.. before the points are output. So you will need some coding if you want them to be formatted


RE: NewPoints var? - Andrew - 09-18-2009

sorry i was wrong with my above post Big Grin


RE: NewPoints var? - Evoke - 09-18-2009

You were right actually chonghua


RE: NewPoints var? - joshuavillwo - 12-07-2009

I am trying to put the number of points one has in the header, next to my link to the point system, but neither one of these seem to work...


RE: NewPoints var? - Diogo Parrinha - 12-08-2009

What are you putting?


RE: NewPoints var? - joshuavillwo - 12-08-2009

I first tried: {$post['newpoints_postbit']} but that didn't work, probably because It's supposed to be points of the poster, and in the header, there is none Smile
I also tried this: $mybb->user['newpoints'] because I didn't care if it formatted it, but that didn't work, I also tried a couple variations, but couldn't get anything to work...