Boogace Posted February 25, 2015 Report Share Posted February 25, 2015 Hi guys can anyone help with the fuel burned reading to many digits, im using the pacific skin from zumewebs heres a shot to show you.. Quote Link to comment Share on other sites More sharing options...
Sava Posted February 25, 2015 Report Share Posted February 25, 2015 Use php's round() function. Manual Reference: http://php.net/manual/en/function.round.php 1 Quote Link to comment Share on other sites More sharing options...
Fernando Posted February 25, 2015 Report Share Posted February 25, 2015 enclose in the round function <?php echo round (existing code here), 0);?> Try this script below and check; ?php echo number_format(StatsData::totalfuelburned(), 0); ?> kgs<br /> Just replace teh existing code here with the current code you use to display, there are a couple of variations deppending on your code, some may need to be enclosed with {} as well. This can cause the error you are receiving The Sava, is one of the friends who really help the community, look fondly the link he shared, can help you understand the operation of scripts. hugs Quote Link to comment Share on other sites More sharing options...
Boogace Posted February 26, 2015 Author Report Share Posted February 26, 2015 Thank you for your help but which file do i need to edit and where ?, Thanks in advance Quote Link to comment Share on other sites More sharing options...
Sava Posted February 26, 2015 Report Share Posted February 26, 2015 Should be either frontpage_main or layout. Both inside lib/skins/<skinname> Quote Link to comment Share on other sites More sharing options...
Fernando Posted February 26, 2015 Report Share Posted February 26, 2015 Edit and then send it to your skin and replace the existing www.YOURSITE.com/lib/skins/ <skinname> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.