• Hi,

    I use: jQuery Colorbox Version 4.3, NextGEN Gallery Version 1.9.3

    I create a NextGen gallery and put 10 pictures in it. I write an article and use 5 of 10 pictures from the gallery in the article (Thumbs) and at the bottom of the article I insert the NextGen shortcut [nggallery id=1] to display the whole gallery for clicking pictures.

    Now, if I click one of the pictures in the article I get a gallery displaying 15 pictures. The 5 ones from the article also included in the gallery and shown twice.

    Is there any way to prevent double includes in the gallery display?

    If you cannot follow you can see the effect here. The gallery contain 19 pictures, if you click it you get 31.

    https://www.ads-software.com/extend/plugins/jquery-colorbox/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter AndreasL

    (@andreasl)

    I sleep over the problem and now I understand the class grouping and the main problem is solved. But how I put a NextGen singlepic [singlepic id=1566 w=320 h=240 float=center] in a class so it will be grouped to the gallery I like? Thats the last thing I need to do.

    Plugin Contributor techotronic

    (@techotronic)

    first of all:
    all pictures that are displayed on a post/page when the page is rendered (i.e. are not added through JavaScript) automatically get the CSS class “colorbox-ID” added, where ID is the id of the post/page.

    That’s the reason why images are displayed in the slideshow that aren’t part of the NextGen Gallery, but you worked that out yourself.

    I contacted the author of the NextGen Gallery plugin a while ago, but unfortunately, he didn’t include the option to add a custom CSS class containing the gallery ID. If he would add it, NextGen Galleries could be grouped separately from other pictures on a page/post.

    I have no idea how the “singlepic” tag works… which one of the pictures on the page you linked is inserted that way?

    Thread Starter AndreasL

    (@andreasl)

    Thanks for looking into this …

    On my exaple from above the picture of the church Nidarosdom is included with this shortcode:

    [singlepic id=1562 w=320 h=240 float=left]

    The shortcut generate code which point to the cache directory so I dont can put plain code in my article to set the class:

    <a  href="https://www.biker-reise.de/wp-content/gallery/norwegen-tag-04/trondheim.jpg" title="Nidarosdomen Trondheim - Rückseite">
    	<img class="ngg-singlepic ngg-left colorbox-1080" src="https://www.biker-reise.de/wp-content/gallery/cache/1562__320x240_trondheim.jpg" alt="Nidarosdomen" title="Nidarosdomen" />

    And you are right, the easy way would be allowed own classes in the shortcode from NextGen. It’s a little bit tricky.

    Plugin Contributor techotronic

    (@techotronic)

    I guess you mean this page?

    The church picture is grouped with the gallery at the bottom of the page.

    Cheers,
    Arne

    Thread Starter AndreasL

    (@andreasl)

    Yes, it is automatic grouped over the article ID. If you click in it to get the gallery stream and browse inside the zommed pictures you will see, that this picture comes up twice in the gallery and this is my problem ?? This happen because the church picture show up as single pic inside the article and as preview thumb in the gallery down below which is tagged also. So I have it twice inside the coloerbox gallery.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: jQuery Colorbox] Double count of pictures in gallery’ is closed to new replies.