• Resolved AndreasL

    (@andreasl)


    running WP 3.9

    I try to use the jquery lightbox function. It didn’t work but after reading the FAQ looking the advanced option I found the first problem. The stylesheet URL and javascript Url was malformed. It begin with my URL http://www.domain.tld/ and then follow the internal server path of my webserver. This cant work and so I fixed it. Fine, the plugin start working.

    Now, all grapphics control elements dont show up. I found the problem in nextgen_lightbox_init.js:

    selector.lightBox({
                imageLoading:  nextgen_lightbox_loading_img_url,
                imageBtnClose: nextgen_lightbox_close_btn_url,
                imageBtnPrev:  nextgen_lightbox_btn_prev_url,
                imageBtnNext:  nextgen_lightbox_btn_next_url,
                imageBlank:    nextgen_lightbox_blank_img_url
            });

    These 5 graphics are missing and If I verify the output code I the same problem with the URL to theses graphics. Its a mix of URL and path too. For workaround I change theses code to this:

    selector.lightBox({
                imageLoading: "\/wp-content\/plugins\/nextgen-gallery\/products\/photocrati_nextgen\/modules\/lightbox\/static\/jquery.lightbox\/lightbox-ico-loading.gif",
    			imageBtnClose: "\/wp-content\/plugins\/nextgen-gallery\/products\/photocrati_nextgen\/modules\/lightbox\/static\/jquery.lightbox\/lightbox-btn-close.gif",
    			imageBtnPrev:  "\/wp-content\/plugins\/nextgen-gallery\/products\/photocrati_nextgen\/modules\/lightbox\/static\/jquery.lightbox\/lightbox-btn-prev.gif",
    			imageBtnNext:  "\/wp-content\/plugins\/nextgen-gallery\/products\/photocrati_nextgen\/modules\/lightbox\/static\/jquery.lightbox\/lightbox-btn-next.gif",
    			imageBlank:    "\/wp-content\/plugins\/nextgen-gallery\/products\/photocrati_nextgen\/modules\/lightbox\/static\/jquery.lightbox\/lightbox-blank.gif"
            });

    Is there a chance to review this and tak a look why URL and path mixed there by default?

    Regards
    Andreas

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

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

    (@photocrati)

    @andreasl – Generally we recommend using the Reset Option under Gallery > Other Options if you find the Lightbox paths to be “incorrect”. Have you tried that?

    – Cais.

    Thread Starter AndreasL

    (@andreasl)

    Hello,

    I save my settings and give the reset a try – et voila, it work 🙂 Must be an old setting from a far away version. Now the url/path show totaly didderent (shorter) and all work fine. The graphics elements in the lightbox show up and work too.

    thanks, this was the right tip.

    Regards
    Andreas

    Plugin Contributor photocrati

    (@photocrati)

    @andreasl – That’s great to read!

    – Cais.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[v2.0.65] jquery.lightbox url/path problem’ is closed to new replies.