MG 2.2 Media Gallery 2.2 - Lightbox navigation, attachment mirroring and more!

lightbox_5.pngXenForo Media Gallery (XFMG) 2.2 sees a range of new features and improvements. Some of these are a result of new integrations with XenForo 2.2 itself, while others are exclusive new features to XFMG itself.

Lightbox navigation​

Starting with XenForo 2.2 we are introducing a brand new lightbox which as well as being a much improved user experience also affords us some flexibility in how and where we use the lightbox.

One such use case which we couldn't resist treating you to for XFMG 2.2 is of course navigating through media items in the media gallery. Before we get into it, this is what the experience looks like.


lightbox_1.png lightbox_2.png lightbox_3.png lightbox_4.png lightbox_5.png lightbox_6.png


The lightbox as used in the media gallery supports all media types including media embeds, video and audio.

By default the lightbox opens up a very useful sidebar which displays most of the information and functionality that you get if you go to the full media page. If you prefer not to view that information then you can collapse the sidebar. Sections within the sidebar can be expanded and collapsed as required and we remember your preferences here so only the relevant sections are displayed.

The lightbox will initially only contain the items from the current page but, as you can see in the video, you can continue navigating beyond the page you're on and we will load additional items from the subsequent page dynamically.

If you need to view the full media details and access the full functionality you just need to click the "New window" icon in the lightbox toolbar or click the caption of the image.

You can navigate through any media list in this way be that the list of media in an album or category, all media in the New media page or the entire media gallery via the media index.

We think this is an awesome way to navigate through the media gallery but if you prefer to keep things as they are (we won't be offended!) then you can disable it:

localhost_22x_admin.php_options_groups_xfmg_.png

We should also take this opportunity to note that all of the lightbox functionality you see here is a general concept baked into the core lightbox itself so should any add-on developers which to add a similar navigation or sidebar concept to their existing lightbox implementations then this should be fairly trivial to do.

Attachment mirroring​

For a very long time you have been telling us that you would like to have a slightly closer relationship between attachments in threads and posts and the media gallery, and the new "Attachment mirroring" system in XFMG 2.2 aims to somewhat bridge that gap. It starts with a forum-level or media category-level configuration:

localhost_22x_admin.php_media-gallery_categories_nature.4_edit.png

While viewing a media category you can pick which forums attachments are mirrored from...

localhost_22x_admin.php_forums_travel-and-nature-forum.2_edit.png

... and while viewing a forum you can pick which media category attachments are mirrored to.

Once you have specified which media category your forum should mirror attachments to, any attachments which are added to posts in that forum will be automatically created as media items in the specified gallery.

As an example, here is a post containing an image I have attached inside the "Travel and nature" forum:

1595337617664.png

And here it is now displayed in the media gallery:

localhost_22x_media_navagio-jpg.134_ (2).png

As you can see here we make display a clear reference to the fact that the media item originated from a particular thread with the "Originally posted in: Thread 'Travel photos'" line. Thins links and takes you straight back to the post where the attachment was originally posted.

While viewing the thread, we also make clear that the attachment has been also posted over in the media gallery too. Of course images open up in the lightbox and when you do so, the media information opens up in the sidebar with an additional link that links back to the full media gallery view if needed:


But what about all of those existing threads with great images you might want to bring over to the media gallery? We've added a rebuild which will take care of that for you:

1595339325217.png

This allows you to have old items that were not yet mirrored synced into the media gallery, plus it will move or remove items from the media gallery as applicable if you disable mirroring or change the target category.


But wait... there's more!​

In addition to these great features we have also added (or in the process of adding) support for the following previously announced XF 2.2 features including:
 
Nothing specific. But you can, as ever, disable commenting at the category level using permissions.

So if the target category only contains mirrored attachments then you can set its permissions such that comments are disabled.
 
Nothing specific. But you can, as ever, disable commenting at the category level using permissions.

So if the target category only contains mirrored attachments then you can set its permissions such that comments are disabled.

Thanks. Would be nice if posts could be mirrored as well, maybe for future updates.
 
I would keep them on for engagement and activity. You might have a thread discussing butterflies but in the gallery someone might want to say "Beautiful pic!" which may not fit into the discussion on the forum. It is great that we can mirror and have pic comments that are not part of the thread, imo.
 
I would keep them on for engagement and activity. You might have a thread discussing butterflies but in the gallery someone might want to say "Beautiful pic!" which may not fit into the discussion on the forum. It is great that we can mirror and have pic comments that are not part of the thread, imo.
You might end up people being more active on media gallery comments then forum. For my side I will turn off, a bit non sense to have 2 different pages for commenting same photo.
 
It's not something we're able to capture when mirroring. There is an open bug report about this but there are significant challenges, particularly if an image gets resized which would lose the EXIF data before we're able to mirror it into the gallery.
 
It's not something we're able to capture when mirroring. There is an open bug report about this but there are significant challenges, particularly if an image gets resized which would lose the EXIF data before we're able to mirror it into the gallery.

Most of images uploaded on gallery media has exif data, even if they have been compressed using TH addon. So you saying this won’t be possible?
 
If you upload the image directly to the gallery we can capture the EXIF data before the image is resized or compressed. If the image is uploaded to a forum post first, there's two issues. First, we don't even attempt to set the EXIF data when mirroring. Second, even if we were to set the EXIF data, if the image has already been resized by the time it gets to the gallery the EXIF data will already be wiped from the image.

So it's not technically possible in its current form but as I said, there's an open bug report, so this is something we will try to resolve if we can, but it may be possible that we can't.
 
If you upload the image directly to the gallery we can capture the EXIF data before the image is resized or compressed. If the image is uploaded to a forum post first, there's two issues. First, we don't even attempt to set the EXIF data when mirroring. Second, even if we were to set the EXIF data, if the image has already been resized by the time it gets to the gallery the EXIF data will already be wiped from the image.

So it's not technically possible in its current form but as I said, there's an open bug report, so this is something we will try to resolve if we can, but it may be possible that we can't.

Alright. Thanks for clarification. Hope this will get sorted.
 
We did make some changes today that should help:

 
We did make some changes today that should help:


Alright, so exif from uploaded images on thread will show on media gallery when mirrored?
 
Also, if you look at any of the images in the lightbox and either click the download link and then try to go back, or refresh the page whilst in the lightbox , the lightbox disappears and you're presented with a basic scroll page

I don't know if this is a bug?
 
I love the new lightbox and attachment mirroring that now allows users to like and comment on attached images posted in the forums which is great for the photography forum that I run.

However, although this works great with the sidebar when using a large display, when you switch to a smaller display the sidebar is removed completely and it's now no longer possible to comment or like images.

Is it not possible to move the sidebar to below the image on smaller displays to retain this functionality? Similar to how it seems to work for IPB.

I know that you can click the "new window" icon in the media gallery to open the media view and then like and comment, but this isn't really very practical or intuitive. Also when you click the "new window" icon from attachments the attachment/image opens in a new window, not the media view.

With 50 percent of my users on mobile devices this is rather a big issue.

Or maybe I have missed a setting to enable this?
 
Top Bottom