Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Do you have a separate lightbox plugin? I see code inserted into the markup that is not from Photonic. Can you try disabling that plugin?

    Thread Starter alawil78

    (@alawil78)

    I have: wp-jquery-lightbox

    If i disable it then it works.

    Why did it work before and not now as deactivating it breaks other things on my site?

    Plugin Author Sayontan Sinha

    (@sayontan)

    I am not sure, but it does seem like that the other plugin too was updated recently, though that might not be the culprit.

    There is code in the WP-JQuery-Lightbox plugin that is inserting a “rel” into links, with double-quotes, and that is messing with the structure of what Photonic publishes. Basically the code of the lightbox plugin does this:

    function jqlb_do_regexp($content, $id){
    	$id = esc_attr($id);
    	$content = preg_replace('/\s+rel="attachment wp-att-[0-9]+"/i', '', $content); //remove WP 4.4 garbage
    	$pattern = "/(<a(?![^>]*?rel=['\"]lightbox.*)[^>]*?href=['\"][^'\"]+?\.(?:bmp|gif|jpg|jpeg|png)(\?\S{0,}){0,1}['\"][^\>]*)>/i";
    	$replacement = '$1 rel="lightbox['.$id.']">';
    	return preg_replace($pattern, $replacement, $content);
    }

    One option for you to consider is, go to Photonic → Settings → Flickr Options → Flickr Photos – “In-page” View, and check the option for “Disable lightbox linking”. Let me know if that works.

    Thread Starter alawil78

    (@alawil78)

    Everything was working fine, then the only plugin i upgraded today was Photonic, then i have the problem described.

    I have tried unchecking the option you mention, when i do no thumbnails are shown on the page at all.

    Plugin Author Sayontan Sinha

    (@sayontan)

    While I do understand the problem, please try to understand that your current lightbox plugin will cause issues whenever you have another plugin that does lightboxes which handle links in the title.

    Regarding why this was working fine earlier, there was a different issue in Photonic that was causing multiple galleries to behave like they were the same gallery.

    The checkbox I mentioned to you in my previous post works fine for me, even with WP JQuery Lightbox enabled. What are the settings you have for WP JQuery Lightbox?

    Do you have an option to use a different lightbox plugin? I can help you downgrade to a previous version of Photonic (you can get older versions from https://wordpress.org/plugins/photonic/developers/), but short of providing an option to use Photonic’s lightbox across the board, I see no other alternative within Photonic itself.

    Thread Starter alawil78

    (@alawil78)

    The following settings are checked:

    Auto-lightbox image links
    Enable lightbox in comments (disables the nofollow attribute!)
    Show title
    Show caption
    Show image numbers: “Image # of #”

    Shrink large images to fit smaller screens 0
    Minimum margin to screen edge (default: 0)

    400 Animation duration (in milliseconds)

    4000 Slideshow speed (in milliseconds). 0 to disable.

    These are unchecked:

    Show download link
    Show image info on top
    Use custom stylesheet

    Plugin Author Sayontan Sinha

    (@sayontan)

    OK – try as I might, I am always able to see the thumbnails when I select the “Disable popup linking” checkbox.

    At this point I would suggest trying a different lightbox plugin for the rest of your images. In the next release I will offer a capability to handle non-Photonic images through Photonic’s lightbox; that should take away the need for a separate lightbox plugin.

    Thread Starter alawil78

    (@alawil78)

    Weird, i tried that setting again and now its working. Thanks for all your help.

    Taking away the need for a separate lightbox plugin in a future release would be great.

    Thread Starter alawil78

    (@alawil78)

    I have updated to the latest version and have found the option to use the Photonic lightbox for non-Photonic images.

    With wp-jquery-lightbox i am able to create groups using:

    <a href="image-1.jpg" rel="lightbox[roadtrip]">image #1</a>

    details at https://wordpress.org/plugins/wp-jquery-lightbox/installation/

    Is such a thing possible with the Photonic implementation?

    Plugin Author Sayontan Sinha

    (@sayontan)

    Yes – each of the lightboxes included with Photonic supports this.

    Since this question is not related to your original question, can you please start a new thread?

    Thread Starter alawil78

    (@alawil78)

    will open another post for the new question.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Problem after upgrade from 1.51 to 1.52’ is closed to new replies.