QUOTE(anza @ Dec 8 2003, 12:39 AM)
I'd like numerical versions of days, months and years. After all, they could be easily formatted to words with simple pieces of code, like for example $if($stricmp(%_month%,1),January) or $replace($num(%_month%,2),01,January,02,February).
I was actually thinking more along the lines of day of the week, i.e. monday, tuesday etc. It would be considerably more fun to make a script to extract that from the date

. Doesn't matter anyway, see below.
-----
Ok i uploaded a temporary version with proper date stuff
download source compiled with 0.7.5 sdk
You now have the following special fields for all your date formatting needs..
QUOTE
- %_system_date% => current user date formatting
- %_system_long_date% => current user date formatting
- %_system_time% => current user time formating
- %_system_year%
- %_system_month%
- %_system_day%
- %_system_day_of_week% => number 1 - 7 (Mon through to Sun)
- %_system_hour%
- %_system_minute%
- %_system_second%
I did both since it made no sense to leave broken %_system_date% in there.. I set them to obey user settings rather than system settings, i think that should be ok.
QUOTE(witt @ Dec 8 2003, 04:18 AM)
@musicmusic,
Can you please add support for UTF-8 without BOM(Byte Order Mark)?
PHP doesn't ignore the UTF-8 BOM...
I was wondering if someone would ask for that..

I will do it for next version ok, which will go on main page, probably some time this week.
QUOTE(anza @ Dec 8 2003, 01:04 AM)
Try this one:
$if($stricmp($left(%_path_raw%,7),'cdda://'),CDDA,%__codec%)
There's also this script from one of the default strings, which may be more complete in some circumtances:
CODE
$puts(ext,$upper($if2($ext(%__referenced_file%),$ext(%_path%))))
$puts(codec,$if(%__codec%,$caps2(%__codec%),$get(ext)))
$if($strcmp($get(codec),),
$if($stricmp($left(%_path_raw%,7),'cdda://'),$puts(codec,CDDA),)
,)