• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to get thumbnail link using the attachment_id

JulianD

Well-known member
#1
I'm trying to get the link to the thumbnail of an attachment but I can't find a way to do this in the php code.

Does anyone has any idea how to accomplish this.
 

Jeremy

Well-known member
#2
You'll need to use XenForo_Model_Attachment. Specifically:

XenForo_Model_Attachment::getAttachmentById($dataId);
XenForo_Model_Attachmnet::getAttachmentThumbnailFilePath($data);