Because I'm to lazy to use a third party dlcounter-hack I've just copy&paste some phpwcms codeparts, to display the counted files inside filecenter. (Under each option of filecenter! )
open include/inc_tmpl/files.abschluss.tmpl.php
and add the following snipped at the end of file:
Code: Select all
<?php
$file_sql = "SELECT * FROM ".DB_PREPEND."phpwcms_file WHERE f_trash=0 AND f_dlstart > 0 OR f_dlfinal > 0 ORDER BY f_dlfinal DESC;";
echo "<ul>";
if($file_result = mysql_query($file_sql, $db) or die ("error while listing files")) {
while($file_row = mysql_fetch_array($file_result)) {
$filename = html_specialchars($file_row["f_name"]);
echo "<li><b>".$filename. "</b><br />start: " . $file_row["f_dlstart"]. "| final: " . $file_row["f_dlfinal"]."</li>";
}
}
echo "</ul>";
?>
Please do not ask for support. Thanks, m.