PDA

View Full Version : attachment thumbnail -- variable name


JLatiolait
08-13-2007, 11:51 PM
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=1189966497

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.