vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Dynamics > vBa Dynamics v1.0 Support > Addon Modules & Modifications > Modifications

Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2008, 10:41 AM
tfw2005 tfw2005 is offline
Senior Member
 
Join Date: Aug 2004
Posts: 352
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?
Reply With Quote
  #2  
Old 05-23-2008, 11:33 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
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;

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 06:52 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.