Quote:
Originally Posted by Kr0nica
I didn't mean that i don't want put files in categories  I want have all files from all categories listed on main page and all categories listed in navigation panel. Why i want to do this? Cause i know my users  They're to lazy to check all categories, to much clicking 
|
That's not possible at this moment and I don't think it's going to become a new feature. Ofcourse you can create it yourself very easy.
You have to edit downloads.php and add this to the end (inside the latest conditional, the
else one, before the evals in it):
PHP Code:
$result = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "dl2_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>";
}
Now you can add in the downloads_main template
{$alldownloads} where you want (indeed, with { and }). So it will look something like this to add in the template:
HTML Code:
<table class="tborder" cellpadding="4" cellspacing="0" border="1">
<tr><td>File</td><td>Downloads</td></tr>
{$alldownloads}
</table>
It should work, but I didn't test it, so there might be an error in it.