Quote:
Originally Posted by joeychgo
Geeze, I go away for a few days and there is all this now.........Whew.
Question, has anyone come up with how to place the "latest uploads" panel on other pages, such as the forum home or vba page?
|
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.