Quote:
Originally Posted by joeychgo
lets say the forum home page --- ??? can you point me in the right direction? im totally lost now........
|
In
index.php:
FIND:
PHP Code:
// ### WELCOME MESSAGE #################################################
Add ABOVE:
PHP Code:
// START VBGARAGE HACK
// ### VBGARAGE #########################################################
$result_latest = $DB_site->query("
SELECT vbgarage_images.*
FROM " . TABLE_PREFIX . "vbgarage_images
ORDER BY vbgarage_images.vbgarageid DESC
LIMIT 5
");
while ($latest = $DB_site->fetch_Array($result_latest))
{
eval('$latestbits .= "' . fetch_template('vbgarage_latestbits') . '";');
}
$DB_site->free_result($result_latest);
// END VBGARAGE HACK
FIND:
PHP Code:
'forumhome_subforumseparator_post'
);
REPLACE with:
PHP Code:
'forumhome_subforumseparator_post',
'vbgarage_latestbits'
);
In template
FORUMHOME:
FIND:
Add BELOW:
HTML Code:
<!-- START VBGARAGE HACK -->
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat" colspan="5"><b>$vbphrase[vbgarage_latest_uploads]</b></td>
</tr>
<tr>
$latestbits
</tr>
</table>
</td></tr></table>
<!-- END VBGARAGE HACK -->
That should do it.