NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 09-05-2008 01:18:32

rainbow
Member

Number, decimal and datestamp formatting.

This is what I'm suggesting for the control panel that affects all of the files on the oekaki: Easier customisation of regional number, decimal and date formatting in the control panel.

If you look at my oekaki, I've took advantage of date, time and number formatting virtually in all aspects of the site. My suggestion is the regional short and long date formats would be applied in the config.php file by default:

Code:

$cfg['longdate'] = 'L, F js, Y';
$cfg['shortdate'] = 'n/j/Y';
$cfg['time'] = 'g:i A';
$cfg['thousands'] = '';
$cfg['decimal'] = '.';

The $cfg['longdate'] variable would affect the index and profile page, while the $cfg['shortdate'] variable would affect the rest of the oekaki site. $cfg['thousands'] and $cfg['decimal'] would affect picture numbers, picture and comment counts as well as the diagnostic page.

The site owner would then be able to easily configure how they would want the short and long dates would be formatted without having to go through a hassle of modifying a piece of code in one of the affected PHP files. big_smile

What do you all think about this possible suggestion?

Last edited by rainbow (09-05-2008 10:23:33)

Offline

#2 10-04-2009 17:03:49

CupcakeMan
Guest

Re: Number, decimal and datestamp formatting.

I agree, this sounds like a good idea.

#3 10-04-2009 19:09:42

Waccoon
Administrator

Re: Number, decimal and datestamp formatting.

Would it be more appropriate to have defaults set in the language file, and allow the config to override the default?  Date and numerical preferences tend to differ based on locale, and that depends on the viewer, not the oekaki.

Offline

#4 10-05-2009 04:10:00

rainbow
Member

Re: Number, decimal and datestamp formatting.

Waccoon wrote:

Would it be more appropriate to have defaults set in the language file, and allow the config to override the default?  Date and numerical preferences tend to differ based on locale, and that depends on the viewer, not the oekaki.

That would be very good.

How would the defaults set in the language file work?

(Besides that, this forum thread is well over a year old and someone just necro'd it.)

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB