17 January 2014 at 15:41 #3413
I am using a plugin namely PWA+PHP which uses caching and consequently has two copies of each photo (smaller version and full size).
Normal circumstances when using slideshow within plugin the gallery is viewed ok.
However if I setup FancyBox to scroll through images it shows 2 sets of each photo.
Problem surfaced here…
I’ve tried the suggested fix but there has been various updates since and the rel statement is not present in pwaplusphp_functions.php that I can see, but made the change in showAlbumscontent.php to no avail.
Still shows both sets. Is there a way to insert rel=’slb_off’ into the easybox settings? Or use some other method?
18 January 2014 at 02:44 #3417
Hi Darrin, it sounds like this PWA+PHP plugin has a lightbox built-in. Is that correct? If so, it might be difficult to make it work with another lightbox like FancyBox.
In any case, what is going on is this: the PWA plugin creates two links for each image in the page source code. One for viewing and one for downloading the image (different sizes apparently)… Now the plugin Easy FancyBox is designed to make life easy and detect all image links automatically. And in this case, this is causing both the view and the download links to be detected and included in the gallery.
Is there an option in PWA plugin to disable these download links? If so, try that.
Otherwise you will need to:
1. disable the Auto-detection by removing “.JPG” (only the one with capitals) from the Auto-detect field on your Settings > Media admin page.
2. Add the following script code in a text widget (easiest) or in your themes footer.php above the wp_footer() call:
18 January 2014 at 15:48 #3416
Thanks for replying
No the plugin does not have it’s own lightbox. It’s dependant on external but unsure of the way it’s been coded as only certain lightbox work with it (as per wiki). There was talk of altering code to allow more but unsure what that entails. And the original programmer has taken time out of updating the plugin lately.
I will try your method and see how I get on.
18 January 2014 at 22:03 #3415
Sadly that didn’t work.
Is there a rel statement I can enter into the plugin to disable fancybox?
Is rel=”nobox” a recognised statement? (it works for shadowbox)
21 January 2014 at 00:42 #3414
Hi Darrin, not a rel attribute but a class. Fancybox will be deactivated for links that use the class “nofancybox”.
But instead of modifying any plugin code (which will be overwritten upon the next update) could you try my alternative method again? Then let me know when you have implemented it and I will take a look to find out why it’s not working…
You must be logged in to reply to this topic.