Topic: [HACK] The Date Template
$matches[1] The Date Template
$matches[1] shubs
$matches[1] 1.3.6 - * (no incompatibility reported yet)
$matches[1] Split the date data into seperate tags.
$matches[1]
Open shows.inc.php and find 2 times
$output = str_replace("{date}", date($config_timestamp_active, $news_arr[0]), $output);
add below both
$output = str_replace("{year}", date("Y", $news_arr[0]), $output);
$output = str_replace("{month}", date("n", $news_arr[0]), $output);
$output = str_replace("{day}", date("d", $news_arr[0]), $output);
$output = str_replace("{hours}", date("H:i", $news_arr[0]), $output);
And use the new tags in your template(s)
of course if you want to change the way a specific data is outputed you'll have to do it yourself
date("$matches[1]", $news_arr[0])
the bold token defines the output of the date function.
The different tokens (parameters) can be found here
http://be.php.net/manual/en/function.date.php
