1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Request: Full attachment image/thumbnail on reply.

Discussion in 'Add-on Requests [Archive]' started by zaiger, Oct 15, 2011.

  1. zaiger

    zaiger Active Member

    Ok so per my query in this thread, I would like for image attachments to show up in replies like this

    instead of like this
    I was told I needed an addon to do that, so here I am. I think this would be a pretty useful addition to many forums, can anyone do it? Thanks in advanced.
     
  2. Fuhrmann

    Fuhrmann Well-Known Member

    You could open the template bb_code_tag_attach find this:

    Code:
    <a href="{xen:link attachments, $attachment}" target="_blank">{xen:phrase view_attachment_x, 'name={$attachment.attachment_id}'}</a>
    and below add this:

    Code:
    <img src="{xen:link attachments, $attachment}" alt="{$attachment.filename}" class="bbCodeImage LbImage" />
    Save. Test. Works?
     
    rafass and zaiger like this.
  3. zaiger

    zaiger Active Member

    It works! Thank you so much!

    Mods could probably move this thread to the template modification forum.
     
    Fuhrmann likes this.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That works. But it's not a complete solution. For example, there is no thumbnailUrl that you can use in the case of inline thumbnails.
     
  5. Fuhrmann

    Fuhrmann Well-Known Member

    Yeah, that's true. Maybe a add-on could do the job.
     
  6. zaiger

    zaiger Active Member

    Well this works for me for now, and hopefully some time in the future there will be a fully functional addon for those who are not as accepting of half-assing it as I am lol. Thank you both for your help. Once again I am leaving a satisfied customer.
     
    Fuhrmann likes this.

Share This Page