PDA

View Full Version : Code for accessing attachment file


ffaat
10-04-2011, 08:06 PM
I am displaying a slider on the front page and wanted to pull from a specific forum. I already have the code to access the forum posts/threads and get the first attachment data. I do NOT want to just access the attachment by attachment.php?attachmentid=xxxxx as the forum does not allow full images for non-logged in users.

My system is storing attachments in files, so right now I access the attachment file using the attachments/u/s/e/r/xxxxx.attach syntax then resize it and store it as a temp file that my slide is set to use. This wouldn't work if a file was stored in the database though.

Is there an API call to get/load a attachment file image that is provided in vBulletin4?

Thanks in advance,

-Rob A>