How to show comma's with user points

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   How to show comma's with user points
x-caliber
CZ Newbie
x-caliber has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Status: Offline
Joined: Aug 21, 2004
0.00 posts per day
Posts: 25
Points: 1,558
   
I have the following installed and working on phpnuke 7.0

Cash Mod
Marketplace mod (Shop, Lottery and Bank)
Moogies auctions mod
Slot machine mod
Barter mod


My question is this?.

What do I have to do to get the points to display with comma's .

example:

From this: 10000

to This: 10,000



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   


number_format(10000,0);


[ Register or login to view links on this board. ]



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: How to show comma's with user points
scz74
CZ Active Member
scz74 has been a member for over 20 year's 20 Year Member
philippines.gif
Age: 50
Gender: Male
Website:
Status: Offline
Joined: Aug 15, 2004
0.02 posts per day
Posts: 145
Points: 7,972
   
hi telli, which file will i look for the number format string? im using a cash mod



Back to top Reply with quote
#4   re: How to show comma's with user points
Gareth
CZ Addict
 Codezwiz Site Donator
Gareth has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student, Webmaster
Gender: Male
Fav. Sports Team: Liverpool FC
Status: Offline
Joined: May 29, 2004
0.08 posts per day
Posts: 587
Points: 38,220
   
i would think it would be includes/functions_cash.php or functions_cash.php dont know what dir its on, long time since i have used cash mod




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#5   re: How to show comma's with user points
x-caliber
CZ Newbie
x-caliber has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Status: Offline
Joined: Aug 21, 2004
0.00 posts per day
Posts: 25
Points: 1,558
   
I read that page on the format number, but I'm not sure what files(s) I need to modify.



Back to top Reply with quote
#6   
Gareth
CZ Addict
 Codezwiz Site Donator
Gareth has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student, Webmaster
Gender: Male
Fav. Sports Team: Liverpool FC
Status: Offline
Joined: May 29, 2004
0.08 posts per day
Posts: 587
Points: 38,220
   
well, nor do i really, i just looked all through the cash mod php files and couldnt' find that number_format anywhere....

that got me

cant help anymore, if i knew where it was i could lol icon_rolleyes.gif




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#7   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
It isnt in the files or the decimal would already be there. You will need to add it into the files where the actual output from the database is. Post your viewtopic.php and i will see if I can show you how to enter it. I don't have the cash mod so I'm not sure if it can be done to it.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#8   re: How to show comma's with user points
x-caliber
CZ Newbie
x-caliber has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Status: Offline
Joined: Aug 21, 2004
0.00 posts per day
Posts: 25
Points: 1,558
   
See my reply on how I did it.



Back to top Reply with quote
#9   re: How to show comma's with user points
x-caliber
CZ Newbie
x-caliber has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Status: Offline
Joined: Aug 21, 2004
0.00 posts per day
Posts: 25
Points: 1,558
   
See post on page 2



Back to top Reply with quote
#10   re: How to show comma's with user points
scz74
CZ Active Member
scz74 has been a member for over 20 year's 20 Year Member
philippines.gif
Age: 50
Gender: Male
Website:
Status: Offline
Joined: Aug 15, 2004
0.02 posts per day
Posts: 145
Points: 7,972
   
hey xcaliber, is everything regarding having commas working out? was the code edit in your last post all that i need to do?



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum