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

Need ALL Images to Default to: 'Show in Original Location' View...

Discussion in 'Styling and Customization Questions' started by CritiKiL, May 1, 2012.

  1. CritiKiL

    CritiKiL Active Member

    Hello 'again' ~ lol!

    I have noticed that all the images including the ones in the [XFR] User Albums add-on do NOT default to the "show in original location" setting. Instead it shows the flash-view with the arrows. How can I make ALL Xenforo images (or at least the ones in the add-on), display in the "show in original location" view? THANKS in Advance ;-)
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> attached_files

    Remove the red code:

    					<div class="thumbnail">
    						<xen:if is="{$attachment.thumbnailUrl} AND {$canViewAttachments}">
    							<a href="{xen:link attachments, $attachment}" target="_blank" class="LbTrigger"
    								data-href="{xen:link misc/lightbox}"><img 
    								src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" class="LbImage" /></a>
    						<xen:elseif is="{$attachment.thumbnailUrl}" />
    							<a href="{xen:link attachments, $attachment}" target="_blank"><img
    								src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" /></a>
    						<xen:else />
    							<a href="{xen:link attachments, $attachment}" target="_blank" class="genericAttachment"></a>
    That will take care of post attachments. There might be a different template for the album addon. Search the templates for "LbTrigger".
  3. CritiKiL

    CritiKiL Active Member

    Um, I removed it but it didn't really show any change. And I tried looking in almost every XFR file for LbTrigger to no avail...
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    When you click on the thumbnail it will open the full image, not the lightbox. That is the change.
    CritiKiL likes this.
  5. CritiKiL

    CritiKiL Active Member

    Oh Ok, yes...it does that ;-).

Share This Page