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

XF 1.4 Displaying full res images by default

Discussion in 'Installation, Upgrade, and Import Support' started by Yogesh Sarkar, Mar 22, 2015.

  1. Yogesh Sarkar

    Yogesh Sarkar Member

    We used to display full resolution attachments by default in our vBulletin install. However since we imported them into xenforo, by default they are being displayed as thumbnail.



    Is there a way to disable thumbnail feature and display all the images in full resolution?



    Ours is an image heavy forum and it is extremely bad for user to click on images to view them.
     
  2. Mike

    Mike XenForo Developer Staff Member

    Are you referring to wanting to change existing posts only? Or are you wanting to prevent people from embedding the thumbnail sized attachment (even by choice)?
     
  3. Yogesh Sarkar

    Yogesh Sarkar Member

    @Mike I am looking to do both. We have never used thumbnails, since we have travelogues with dozens of images in each post and having thumbnails is bad for users, as they have to click to view full resolution images.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It's not possible to prevent members from using the attach as thumbnail option.

    For existing attachments you could run a query to change attach to attach=full.
    Code:
    UPDATE xf_post SET message = REPLACE(message,'[ATTACH]','[ATTACH=full]');
    Take a database backup first, just in case of any issues.
     
  5. Yogesh Sarkar

    Yogesh Sarkar Member

    Is there a way to display image in full resolution, if they aren't inserted inline?

    I guess increasing the thumbnail size to maximum image size would be a bad idea, since it will lead to multiple copies of the same image.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    No, the image needs to be embedded using bb code.
     
    Yogesh Sarkar likes this.
  7. Yogesh Sarkar

    Yogesh Sarkar Member

    Thanks @Brogan. I would really like to disable the thumbnail option if at all possible, since no one in forum likes or uses it. Even though we have single posts with over 50 high res images!
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    You could edit the template to remove the insert as thumbnail option.

    That wouldn't however prevent people manually using the bb code.
     
    Yogesh Sarkar likes this.
  9. Yogesh Sarkar

    Yogesh Sarkar Member

    I doubt anyone is going to manually add it, but in any case I will let it be.

    Now my main worry is to somehow display the images full resolution, if they aren't inserted into post (which majority of new members end up doing.) Thanks to you I will fix at least the already inserted ones by running MYSQL query (downloading db backup right now.)
     
  10. AndyB

    AndyB Well-Known Member

    Yogesh Sarkar likes this.
  11. Yogesh Sarkar

    Yogesh Sarkar Member

    Thanks @AndyB this is the third plugin from you I will be using on my 1 day old converted forum :D.
     
    AndyB likes this.

Share This Page