View Full Version : How Do I...
g0dfather1984
08-11-2009, 07:43 PM
I have over 10,000 games in my arcade and I noticed that it doesn't have a comma rather it says:
10000
How would I go about adding a comma?
I know it may be rather picky of me, but I just feel it would look more professional for some reason.
Thanks.
Gemma
08-11-2009, 09:10 PM
Open your skin_Arcade.php and look for:
$totalstext = $ibforums->lang['infobox_title1'].$tot_games.$ibforums->lang['infobox_title2'];
Change it to:
$totalstext = $ibforums->lang['infobox_title1'].number_format($tot_games).$ibforums->lang['infobox_title2'];
Save and upload.
Open mod_report.php and search for:
$ibforums->lang['total_games'] => $totalgames,
$ibforums->lang['total_i_play'] => $gamesplayed,
$ibforums->lang['total_play'] => $totalgamesplayed,
);
Replace it with:
$ibforums->lang['total_games'] => number_format($totalgames),
$ibforums->lang['total_i_play'] => number_format($gamesplayed),
$ibforums->lang['total_play'] => number_format($totalgamesplayed),
);
Save and upload
g0dfather1984
08-11-2009, 09:33 PM
Thank you, Gemma.
Greatly appreciated!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.