Changing The Look Of Points


Ok. this is my first tutorial, its pretty simple, but makes your members system look alot more professional.

Okay. so we are changing the format from 100000 to 100,000. In this case. im refering to points as money.
Its an EXTREMLY Small Script. with only 5 lines of code needed:

PHP Code
  1. <?php // starts PHP Code
  2. $money = $logged[money]; // makes the code $money equal your logged points
  3. $money = number_format($money); // now makes your logged points into a number format
  4. echo $money; // Displays the points in the new format
  5. ?>


Hope It Helps :)
Liquidsteel's Avatar
Views:
3,335
Rating:
Posted on Saturday 31st May 2008 at 12:04 PM
jambomb
jambomb's Avatar
ok thanks
Posted on Friday 30th May 2008 at 09:38 PM
ShadowMage
ShadowMage's Avatar
Where ever you echo the points =]
Posted on Friday 30th May 2008 at 09:22 PM
jambomb
jambomb's Avatar
were do u put it ??
Posted on Sunday 4th May 2008 at 02:15 PM
Jackboy
Jackboy's Avatar
Ahh brilliant,

I have never used number_format().

Thanks for introducing it to me :)
Posted on Sunday 11th November 2007 at 07:21 PM
DanielXP
DanielXP's Avatar
Lol same. I'll change it soon.
Posted on Sunday 11th November 2007 at 05:02 AM
Liquidsteel
Liquidsteel's Avatar
DanielXP = That Display Picture is discusting and makes me feel sick!
Posted on Saturday 10th November 2007 at 03:34 PM
DanielXP
DanielXP's Avatar
Yer its good format.
Posted on Saturday 10th November 2007 at 12:01 PM
Enros
Enros's Avatar
I dont use that point system sorry :{
Posted on Saturday 10th November 2007 at 08:38 AM
Liquidsteel
Liquidsteel's Avatar
Comments?