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

CritiKiL

Active member
#1
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 ;-)
 

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> attached_files

Remove the red code:

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>
						</xen:if>
					</div>
That will take care of post attachments. There might be a different template for the album addon. Search the templates for "LbTrigger".
 

CritiKiL

Active member
#3
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...