solved Image Preview

sekeri
sekeri
@ilker
10 years ago
334 posts
I see that in forums images are displayed as icons and can be viewed clicking in a popup. My question here is; is it something special for Forums or I can display images which are bigger than a certain size in this format in my Articles module created by Aparna.

By the way, I think there is a bug when you click on the link instead of the picture itself. Please check the image here http://www.jamroom.net/the-jamroom-network/forum/installation-and-configuration/12141/pre-tag-in-pages

When you click on "pre_tag.png - 115KB" it goes to http://www.jamroom.net/forum/download/forum_file/12141 and gives the error
Error: Invalid media id - no data found
updated by @ilker: 08/13/14 08:00:30AM
brian
@brian
10 years ago
10,148 posts
I will check out the error on that link - thanks.

The image popup is custom to the forum module here - it's not something that is going to be part of an Aparna created module. JR has core support for Lightbox however - in your custom module templates just make sure and add:

name="data-lightbox"

to your image anchor around the image and the image will appear in a lightbox when clicked on. A lot of templates use this, so check them out for examples.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags