Log in

View Full Version : Mini Mods - lightbox image open in a new window


naveeid
04-03-2015, 09:00 PM
hi friends

its irritating to see that whenever image attachments are open in lightbox , they have a hyperlink to be viewed in full image size , but when you click on the image , it opens in the same window , where as i think it should be open in a new window. so i have found a solution for this problem which is very simple.

Go to
edit templated -> lightbox

find

<vb:else />
<a href="{vb:raw imagelink}" id="lightboxlink{vb:raw uniqueid}">

replace it with

<vb:else />
<a target="_blank" href="{vb:raw imagelink}" id="lightboxlink{vb:raw uniqueid}">


yes its that simple .

thanks