Hi,
Has anyone been able to successfully make a Unreal Portal v2.2.0 block to show the Latest 5 Downloads from the IP.Download Manager?
Sorry if this has already been asked :/
Thanks so much~~!!
Latest IP.Downloads Block
Started by arooga, Jul 13 2007 01:52 AM
10 replies to this topic
#7
Posted 10 December 2007 - 12:16 PM
Try this ... and change "DESC LIMIT 14" to however many items you want displayed
<?php
$query = $this->ipsclass->DB->query("select * from ibf_downloads_files order by file_id DESC LIMIT 14");
$count = 0;
while($fetch = $this->ipsclass->DB->fetch_row($query))
{
if($count != 0)
{
echo "<tr>
<td class='row2'>";
}
echo "</td><td class='row2'><a href='{$this->ipsclass->base_url}automodule=downloads&showfile={$fetch['file_id']}'>{$fetch['file_name']}</a></td>
</tr>
</tr>";
$count++;
}
?>
#10
Posted 09 August 2009 - 06:04 PM
To be honest, I'd rather chew my own teeth than upgrade to IPB3, througout the trials I had problem after problem, especially with IDM and even now the comments on the downloads section can't be approved manually. Unfortunately for that reason I'm not familiar with IPB3 and couldn't offer any advice on upgrading the code.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












