tfw2005
05-23-2008, 11:41 AM
Any way to turn attachment.php into a templated page, or even hardcoded html/php page, so that other things may be placed in there, such as advertising banners, etc?
Brian
05-23-2008, 12:33 PM
You should be able to do that by adding a new plugin to the 'vba_dyna_attachment_start' hook location with code that looks something like this:
if ($_REQUEST['do'] == 'fullview')
{
echo '<html><head>' . $headinclude . '</head><body><img src="attachment.php?do=showattach&attachmentid=' . intval($_REQUEST['attachmentid']) . '" /> Testing </body></html>';
exit;
}
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.