I've installed the Statistics Plugin "serendipity_event_statistics" installed. Now I've an idea. Everyone can see the visitors per month, but not per day or per week. Is it an great event to setup this new function?
I think it will be cool
Thank you, that looks solid! I've just committed it to SVN.
REgards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
This is monday, and I found a bug in my code, if it is monday or sunday.
The following rows should be added to serendipity_plugin_statistics.php line 196, right after
$lastmonday = date('Ymd', strtotime('last monday'));
$nextsunday = date('Ymd', strtotime('next sunday'));
to check if it is monday or sunday:
if ( date('w', strtotime('today') ) == "1" ) { // now it is monday
$lastmonday = date('Ymd', strtotime('today'));
} else if ( date('w', strtotime('today') ) == "0" ) { // now it is sunday
$nextsunday = date('Ymd', strtotime('today'));
}
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/