How to get thumbnail link using the attachment_id

JulianD

Well-known member
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.
 
You'll need to use XenForo_Model_Attachment. Specifically:

XenForo_Model_Attachment::getAttachmentById($dataId);
XenForo_Model_Attachmnet::getAttachmentThumbnailFilePath($data);
 
Back
Top Bottom