Quote:
Originally Posted by Kr0nica
I've try, but it seems doesn't work ;( (i think i've do something wrong, cause there is no change on main page when i paste {$alldownloads} to downloads_main template).
But still thank you for help 
|
the query is slightly wrong. should be:
PHP Code:
$filesexclude = $dl->exclude_files();
$result = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "dl_files WHERE ".$filesexclude);
while ($file = $db->fetch_array($result))
{
$alldownloads .= '<tr><td><a href="downloads.php?do=file&id='.$file['id'].'"></a></td><td></td>'.$file['downloads'].'</tr>";
}
You should be placing this around line 1977 BEFORE this:
PHP Code:
eval('$dmain_jr .= "' . fetch_template('downloads_main') . '";');
if ($dl->statslatestfiles > 0 OR $dl->statstopcontributers > 0 OR $dl->statsmostpopularfiles > 0)