Quote:
Originally Posted by RS_Jelle
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.
|
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