Results 1 to 2 of 2

Thread: attachment.php - templated page?

  1. #1
    Join Date
    Aug 2004
    Posts
    353

    Default attachment.php - templated page?

    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?

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: attachment.php - templated page?

    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:
    PHP Code:
    if ($_REQUEST['do'] == 'fullview')
    {
        echo 
    '<html><head>' $headinclude '</head><body><img src="attachment.php?do=showattach&amp;attachmentid=' intval($_REQUEST['attachmentid']) . '" /> Testing </body></html>';
        exit;


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. first attachment on showentry page?
    By tfw2005 in forum "How Do I..." Questions
    Replies: 21
    Last Post: 02-18-2009, 11:22 AM
  2. Templated on vBadvanced website
    By westcan in forum "How Do I..." Questions
    Replies: 1
    Last Post: 04-08-2007, 11:30 AM
  3. Last attachment
    By dave_finlayson in forum Module & Modification Discussion & Requests
    Replies: 3
    Last Post: 08-29-2005, 09:11 AM
  4. Attachment
    By Merjawy in forum Troubleshooting / "How do I..." Questions
    Replies: 12
    Last Post: 07-12-2004, 05:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •