1. 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

Discussion in 'XenForo Development Discussions' started by JulianD, Jul 21, 2013.

  1. JulianD

    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.
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    You'll need to use XenForo_Model_Attachment. Specifically:

    XenForo_Model_Attachment::getAttachmentById($dataId);
    XenForo_Model_Attachmnet::getAttachmentThumbnailFilePath($data);
     
    JulianD likes this.

Share This Page