In the topic view (where you see the posts), is it possible to load the image in a new window/ tab?
For example:
Attachments:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Finterfacelift.com%2Fwallpaper%2Fpreviews%2F01500_iceonthelake.jpg&hash=9f5e2779c35e617b0c2fd7087dddc86f5bca07a3) (#post_)
screenshot.jpg (#post_)
And the image link will open the full size view in a new window, instead of that div.
its attachment or simple image link? like YOURWEB.com/IMG/SCN.jpg?
The attachment was uploaded into the post, so the path is quite lengthy ( http://mysite.com/forum/index.php?action=dlattach;topic=330.0;attach=36;image )
You can do that but you would have to edit your forum's theme ;)
Fine with me...I just don't know what to change.
Edit display.template.php from your theme folder.
Search for:
echo '
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
replace with:
echo '
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" target="_BLANK"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
This should work even though I haven't tested the code ;)
Perfect!
Thanks ;)