vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   attachment info in parse_template hook (https://vborg.vbsupport.ru/showthread.php?t=238113)

testbot 03-12-2010 06:00 PM

attachment info in parse_template hook
 
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 [DATE]1268670447[/DATE] at [TIME]1268670447[/TIME] ---------------

this is driving me crazy.


All times are GMT. The time now is 08:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01587 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete