• Resolved mrbz

    (@mrbz)


    When using the compact album, when you choose a gallery, it reopens the page with the album’s gallery listing removed, and instead shows the photos from the gallery with no way to go back. Instead of doing that, is there a way to make is so when the gallery image is clicked, that it opens the lightbox directly starting at the 1st image?

    Here is the html that nextgen added to page for the album:

    <img class="ngg_displayed_gallery mceItem" src="http://eg.info/index.php/nextgen-attach_to_post/preview/id--461" alt="" />

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @mrbz – You could try a shortcode structure along the following lines to show a single image that when clicked will open the Lightbox Effect for the gallery:

    [ngg_images gallery_ids=1 display_type=photocrati-nextgen_basic_thumbnails disable_pagination=1 images_per_page=1]

    Thanks!

    – Cais.

    Thread Starter mrbz

    (@mrbz)

    I like your suggestion Cais, but I want to trigger the lightbox from the gallery thumbnails displayed by the compact album. I ended up making a lot of customizations to the compact.php file. I sent the code to your support and she said she would forward on to the developers.

    Essentially, for each gallery thumbnail, it creates a hidden div with all the image links in it. And the gallery thumbnail link calls jquery to trigger the first link hidden in the div.

    Everything is working great– the only sad thing is that the lightbox takes around 5 seconds to load– but even if I display a single gallery of images– the lightbox still takes 5 seconds to load. The main culprit is waiting for the http://eg.eg/index.php/nextgen-pro-lightbox-gallery/1?page_id=370 request to respond when the lightbox starts. I looked at that response, and there isn’t much to it. Do you have any ideas why it is slow?

    Plugin Contributor photocrati

    (@photocrati)

    @mrbz – Without a real URL example, I can only guess … have you considered image sizes / quantity as factors in the load time?

    – Cais.

    Thread Starter mrbz

    (@mrbz)

    There are 3 images of around 150kb each– but does that effect how long the http://eg.eg/index.php/nextgen-pro-lightbox-gallery/1?page_id=370 request takes?

    I understand that you a real URL would be helpful. I will contact support if I need more help on this– I prefer not to put my clients websites on public support forums.

    Anyway, It looks like all wordpress served content is taking a long time– between 1.5 to 4 seconds per page. This is okay for initial page loads, but the delay in opening the lightbox is jarring because it feels like a control on the page that should open immediately.

    Thanks

    Plugin Contributor photocrati

    (@photocrati)

    @mrbz – Is there a dynamic nature to the gallery images … maybe something in the template customizations you added?!

    – Cais.

    Thread Starter mrbz

    (@mrbz)

    The images and thumbnails are served up in 100ms or less. I think you are missing a very important thing that I am saying: The main culprit is waiting for the http://eg.eg/index.php/nextgen-pro-lightbox-gallery/1?page_id=370 request to respond when the lightbox starts.

    Most index.php requests in the site are loading in 1.5 to 3 seconds, but those don’t seem so bad because they are for the initial page load. This index.php request is loading in 3 to 5 seconds– so it is taking longer than other requests– and it is more noticeable because it shows a control on the page instead of opening to a new page.

    I first need to figure out why all the index.php pages of the website are so slow. After that, if the lightbox index.php page is still slow, I will contact nextgen support.

    Thanks

    Plugin Contributor photocrati

    (@photocrati)

    @mrbz – Again, a link to the site may prove helpful … I really cannot offer any more without more information and first-hand observations.

    – Cais.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Open lightbox directly from compact album’ is closed to new replies.