Quote:
Originally Posted by magnus
Just place the following code in the respective PHP file:
PHP Code:
$result_latest = $DB_site->query("
SELECT vbgarage_images.*
FROM " . TABLE_PREFIX . "vbgarage_images
ORDER BY vbgarage_images.id DESC
LIMIT 5
");
while ($latest = $DB_site->fetch_Array($result_latest))
{
eval('$latestbits .= "' . fetch_template('vbgarage_latestbits') . '";');
}
$DB_site->free_result($result_latest);
Be sure to add the following line to the $globaltemplates(); array, too.
PHP Code:
'vbgarage_latestbits',
Then, just add [high]$latestbits[/high] into the template you want it displayed in.
|
Is it possible to modify this to show a particular user's latest uploads on their profile page??