View Full Version : attachment.php - templated page?
05-23-2008, 10: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?
05-23-2008, 11:33 AM
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>';
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.