[v2.0.65] jquery.lightbox url/path problem
-
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
- The topic ‘[v2.0.65] jquery.lightbox url/path problem’ is closed to new replies.