vForums Support > vForums :: Support :: > Money/Credit Assistance

Money/Credit Assistance - Posted By blanka (blanka) on 24th Jul 08 at 4:48am
Forum URL: Rather not mention.
Experienced By: Ermm me. xD
Browser: Doesn't matter
Operating System: Doesn't matter

Problem:
I got 1 quick question.

1)Is there a way to not have the points/whatever not have a decimal?
http://wimg.co.uk/1wNFZy.png
^ Like how it has it there.

Re: Money/Credit Assistance - Posted By Ross (admin) on 24th Jul 08 at 8:28am
Sorry, I'm a little confused. You want to only have it as a whole number "Money: 268" even if they get a decimal per-post "0.25"? Or have I got that wrong? {Smile}

Re: Money/Credit Assistance - Posted By blanka (blanka) on 24th Jul 08 at 5:20pm
Yep, even if the have a decimal could you just have not show?

Re: Money/Credit Assistance - Posted By Ross (admin) on 24th Jul 08 at 5:41pm
OK, in your mini-profile template, replace the {additional_info} tag with this piece of code {Smile}

Code: JavaScript
 
  1. <script type="text/javascript">
  2. var additional_info = "{additional_info}";
  3. additional_info = additional_info.replace(/\.\d{1,2}/gi, '');
  4. document.write(additional_info);
  5. </script>
 

Re: Money/Credit Assistance - Posted By Alex Bailey (system) on 24th Jul 08 at 8:20pm
And that should work if the mini profile template has been remodelled?

Re: Money/Credit Assistance - Posted By blanka (blanka) on 25th Jul 08 at 2:01am
Thanks, Ross. =)

Re: Money/Credit Assistance - Posted By Michael (wrighty) on 25th Jul 08 at 10:01pm
 
And that should work if the mini profile template has been remodelled?


Yes it should! {Smile}