vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   attachment thumbnail -- variable name (https://vborg.vbsupport.ru/showthread.php?t=155158)

JLatiolait 08-13-2007 11:51 PM

attachment thumbnail -- variable name
 
hello,

i can't seem to identify the "variable" that stores the Attachment Thumbnail "ID" value on the showthread.php page.

so, if you view the properties of an uploaded attachment image thumbmail, in the Address/URL path after "attachmentid=" you see the value placed in this variable----- what is the name of this variable and on what page is it located?

i'm hoping someone knows this off hand (or otherwise)! thank you very much in advance....???

fyi,
i'm trying to show the thumbnail image of an attachment on an external page. i'm almost there... just can't find the variable to pass to the page.

Antivirus 09-17-2007 01:07 AM

you have to acall it like this:

attachment.php?attachmentid=129&thumb=1&d=11899664 97

And the vars (untested but i think its correct) are:
$attachments['attachmentid'], $attachments['thumb'], and $attachments['thumbnail_dateline']

JLatiolait 09-17-2007 03:35 PM

thanks for the reply! this looks right.

my objective was to include the attachment thumb on a page external to vb. i ended up using VBA - building a cutom page with the news module, removing the html, css and other eliments not desired for a PHP inlcude, and then inserting this PHP page in the external page.


All times are GMT. The time now is 09:14 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.00986 seconds
  • Memory Usage 1,706KB
  • 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
  • (3)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