i have change the code 2 times below but still not working...
Code:
function update_latest_files()
{
global $db, $vbulletin;
if ($this->statslatestfiles > 0)
{
$statslatestfiles_q = $db->query_read("SELECT name, id FROM " . TABLE_PREFIX . "dl_files WHERE `purgatory`='0' ORDER BY `date` DESC LIMIT ".$this->statslatestfiles.""); // added by Brent to dynamically get the latest files loaded
while ($latest = $db->fetch_array($statslatestfiles_q)) // for section added by Brent to show a dynamic number of files
{
$name = substr(addslashes($latest['name']), 0, 10); $id = $latest['id'];
$url = $vbulletin->options['bburl']."/downloads.php?do=file&id=$id";
if ($id > 0)
{
eval('$dpanel_latest_bits .= "' . fetch_template('downloads_panel_bit') . '";');
}
}