When using the File Management plugin with Geeklog 1.4.0, you'll notice that the plugin's entry on Geeklog's stats page appears out of line with the other entries. That's because of a few changes in the plugin API in 1.4.0. Here's a simple fix:
PHP Formatted Code
function plugin_statssummary_filemgmt
()
{
global $_FM_TABLES,
$LANG_FILEMGMT;
$total_pages = DB_count
($_FM_TABLES['filemgmt_filedetail']);
$total_downloads = DB_getItem
($_FM_TABLES['filemgmt_filedetail'],
'SUM(hits)',
'');
$item_count = COM_NumberFormat
($total_pages)
.
' (' . COM_NumberFormat
($total_downloads) .
')';
return array ($LANG_FILEMGMT['nofiles'],
$item_count);
}
Simply add that function to the File Management's functions.inc file and the plugin's stats will be in line with the rest of the stats again.
The detailed stats (Top Ten Accessed Files in Repository) will need more work for the alternating row colors, but I leave that to Blaine :wink:
bye, Dirk