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

XF 1.5 Attachment Thumbnail VS link

Discussion in 'XenForo Questions and Support' started by click here, Dec 18, 2015.

  1. click here

    click here Active Member

    Not sure I am going to do this but is there a way to change attachment thumbnails to links instead?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    That would likely require custom development.
     
  3. click here

    click here Active Member

    The reason I ask is, most forums show a small thumbnail to guests to entice them to join and see the full size picture, but on a phone you can simply pinch and zoom the thumbnail to full size which defeats that. :eek:

    What's the smallest size you can make the attachment thumbnails?
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    The default thumb size is 120px I think. If that's a e.g. 1200px photo pinching to zoom in isn't really going to give you the full experience. I guess you can make them even smaller if you're still concerned.
     
  5. click here

    click here Active Member

    Okay, looks like 25 is the smallest number I can set them to.
     
  6. click here

    click here Active Member

    So, I set the thumbnail size to 25 and proceeded to rebuild attachment thumbnails, it made it almost through when it stopped with this error:
    Fatal Error: Allowed memory size of 96321944 bytes exhausted (tried to allocate 21888 bytes)

    Any ideas?
     
  7. click here

    click here Active Member

    @Chris D Do you think this is caused by a few "to large" attachments?
     
  8. Chris D

    Chris D XenForo Developer Staff Member

    Yes. See if your host can help you increase that limit.
     
  9. click here

    click here Active Member

    Thanks, I just needed to add a phprc file under my username with the following and it finished.
    Code:
    upload_max_filesize = 64M
    post_max_size = 64M
    max_execution_time = 500
    max_input_time = 50
    memory_limit = 256M
     
    Chris D likes this.

Share This Page