WordPress.org

Forums

WP jQuery Lightbox
[resolved] not working on photospace gallery (12 posts)

  1. Majklas
    Member
    Posted 3 years ago #

    Hi,
    I'm new to coding, but I've checked the option to Auto-lightbox image links. The thing is: HTML looks the same, but the browser opens a image in a blank page, not flashy awesome LightBox :/
    Could You please see the miglenarbutaite.com homepage and initial pages with galleries. Lightbox is not working on those galleries, but has rel=lightbox feature.
    Looking forward,
    M.

    http://wordpress.org/extend/plugins/wp-jquery-lightbox/

  2. ulfben
    Member
    Plugin Author

    Posted 3 years ago #

    It seems like you're streaming the gallery in, after page load. The lightboxing-script runs when the page is loaded, if the link is not there at the time it won't be hooked up.

    The development version has a public javascript function 'doLightbox()' - which allows you to apply lightboxing at arbitrary times. Added this to support infinite scroll and similar plugins. Try that.

  3. Majklas
    Member
    Posted 3 years ago #

    Thanks for a quick responce :)
    Settings | Version 1.3.4.2 | By Ulf Benjaminsson | Visit plugin site
    I already have the development latest version installed.
    So should I put that doLightbox(); in javascript in gallery js or just anywhere at the post end <script>doLightbox();</script> ?

  4. ulfben
    Member
    Plugin Author

    Posted 3 years ago #

    You know your own javascript; you need to run this function once your content is in place. You can call it as many times as you want.

    The smart way to go about it is to first check and make sure the function exists (avoids javascript errors if jQuery Lightbox changes or isn't loaded yet);

    if(typeof doLightBox !== 'undefined' && typeof jQuery !== 'undefined'){
       doLightBox();
    }
  5. Majklas
    Member
    Posted 3 years ago #

    sorry, maybe I'm too dumb to get the code working, but i pasted it in script type javascript brackets in the footer, just before the body tag..
    Still no chance of getting "Full size" link to work as a lightbox.. :(

  6. Majklas
    Member
    Posted 3 years ago #

    Also, please include lithuanian language :) link

  7. ulfben
    Member
    Plugin Author

    Posted 3 years ago #

    It won't help adding it at the page footer - after all; the jquery lightbox is run after page load anyway, right? You must find our where in your gallery script the images are finished loading in, and perform the doLightBox there.

    Translation is in trunk, thanks!

  8. Majklas
    Member
    Posted 3 years ago #

    well. did not work either.. I do know how to JS, just php/html.
    I put in gallery's js end jQuery(document).ready(function($){doLightbox();})
    and the whole thing crashes.. Firebug errors: doLightbox is not defined

  9. Majklas
    Member
    Posted 3 years ago #

    Dear ulfben, could You please show me some magic? I'm new to js and cannot make it by myself.

    There's no way I can edit that jquery.galleriffic.js and find a perfect spot for :

    if(typeof doLightBox !== 'undefined' && typeof jQuery !== 'undefined'){
       doLightBox();}
  10. ulfben
    Member
    Plugin Author

    Posted 3 years ago #

    Contact me via email if you need a quote for freelance work. I'm closing this topic as it is not a support question for my plugin, but for your other scripts.

  11. Majklas
    Member
    Posted 3 years ago #

    well, thank You for a great plugin, but I do not have enough savings 4 U..

  12. niallmurphyphotography
    Member
    Posted 2 years ago #

    Hello, I am new to WordPress and as a photographer really need to become more computer literate!

    I have set up a gallery on wp with Lightbox Plus plug-in. Followed tutorial steps but my image won't even open onto it's own page never mind opening with lightbox.

    My URL is http://www.niallmurphyphotography.com If anyone can help me with this I will be eternally grateful!

    thanks

    Niall

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP jQuery Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic