View Full Version : attachment info in parse_template hook
testbot
03-12-2010, 06:00 PM
i need to pull some attachment info when parsing a template.
i'm trying to get the following values in a plugin with the hook location of parse_template.
$attachmentinfo['attachmentid']
$attachmentinfo['extension']
$attachmentinfo['dateline']
thoughts?
testbot
03-14-2010, 04:44 AM
this can't be that hard. it use to work fine in vb3. it's just a nuance in vb4. can someone let me know at least what has changed so i can get some variables happening in this plugin?
thanks.
donottumbledry
03-14-2010, 01:39 PM
Have you read this article here? https://vborg.vbsupport.ru/showthread.php?t=228078
testbot
03-14-2010, 05:35 PM
thanks for the reply.
yea, i'm familiar with getting my variables to register so i can add them to templates. i'm trying to pull standard variables to use them in my plugins.
these particular variables are located in attachment.php and i'm trying to use them in a plugin that is using parse_templates.
--------------- Added 1268670447 at 1268670447 ---------------
this is driving me crazy.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.