WordPress.org

Ready to get started?Download WordPress

Forums

Slickr Flickr
Fix for Slickr Flickr 1.28 + wp-prettyPhoto (7 posts)

  1. Michael Dozark
    Member
    Posted 3 years ago #

    Currently, Slickr Flickr does not make use of wp-prettyPhoto lightbox galleries due to incorrect rel tags.

    Simple fix is to change line 204 of slickr-flickr-public.php from

    case "prettyphoto": $lightboxrel = 'rel="wp-prettyPhoto-'.$rand_id.'"' ; break;

    to

    case "prettyphoto": $lightboxrel = 'rel="wp-prettyPhoto['.$rand_id.']"' ; break;

  2. Russell Jamieson
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Michael,

    Thanks for the suggestion.

    However when I tried it, it caused my browser to go into a loop and the lightbox was not displayed at all. (well only a small black square with no photo). When I did "inspect element on Chrome" there were hundreds of javascript errors.

    I think this is down to different WP Pretty Settings. What settings are you you using?

    My settings were as follows :
    - DISABLE Automatic replacement of all supported media types
    - DISABLE Automatic replacement of image links (BMP, GIF, JPG, JPEG, PNG)
    - ENABLE Show title (value of the links' ALT attribute) inside prettyPhoto box.
    - ENABLE Allow the prettyPhoto box to be resizeable

    With my settings the lightbox works fine - however as you correctly point out the galleries do not operate and neither are next and previous arrows displayed. This is not a good solution so I need to revert to your solution but also need instructions of what configuration is required to make it work.

    One other thing
    Wp Pretty photo uses the image alt and title tags the opposite way around to other lightboxes - it puts the Photo Title in the alt and the description in the title. The next version of Slickr Flickr will swap these around to WPpPretty photo will now support photos descriptions.

  3. yardena613
    Member
    Posted 3 years ago #

    @powerblogservice did you find a solution for this problem?

  4. Russell Jamieson
    Member
    Plugin Author

    Posted 3 years ago #

    Unfortunately not. Your suggested fix still breaks my browser (Chrome, Firefox, Safari on MacBook) whatever theme I chose - even Twenty Ten- and is also unaffected by WP Pretty Photo settings.

    There is an error on line 55 of jQuery.prettyPhoto.js Uncaught Type Error : cannot call method 'match' of undefined.

    This error is repeated in an infinite loop.

    It is really down to the WpPrettyPhoto plugin developer to handle the scenario where the ItemSrc variable is undefined.

    Please can you supply a URL where you have it working - I am curious to see what else you are running that makes it work for you but not for me.

  5. Michael Dozark
    Member
    Posted 2 years ago #

    In the wp-prettyPhoto settings, try checking the option "Replace WordPress' jQuery with bundled version."

  6. Russell Jamieson
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Michael,

    Thanks for the suggestion.

    However it is not ideal as WP PrettyPhoto is running jquery-1.4.2.min.js while WordPress is bundled with 1.6.1.

    I will verify your solution works for me and add this an option in the next release of Slickr Flickr.

    So there will be two options for WpPrettyPhoto in Slickr Flickr Admin LIghtBox setting
    dropdown listbox

    1. Wp-PrettyPhoto (single photos only)
    2. Wp-PrettyPhoto (with gallery - requires using bundled jQuery 1.4.2)

    Hopefully WP-PrettyPhoto will update to jqQuery 1.6.1 pretty soon and the problem will resolve itself

  7. Russell Jamieson
    Member
    Plugin Author

    Posted 2 years ago #

    Slickr Flickr 1.32, released today, now supports WP-Pretty Photo with gallery (if you set the WPP option to use the bundled jQuery)

    If you want to use the latest jQuery then you can still use WP Pretty Photo in single photo mode.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic