WordPress.org

Ready to get started?Download WordPress

Forums

Flickr Gallery - Why doesn't Lightbox work? (44 posts)

  1. ikjosh
    Member
    Posted 4 years ago #

    I installed the latest version of Flickr Gallery, but the Lightbox feature does not work.. I enable it, doesn't do anything - When I click on the thumbnails, it just takes me to the Flickr page.. I put a rel="lightbox" within the code, on the thumbnails, and Lightbox works, but it only shows the thumbnail..

    Any help here is appreciated

    Thanks

  2. ben.teoh
    Member
    Posted 4 years ago #

    I think it's to do with certain themes. It works on the default template, but not on some others. I'm trying to work it out now!

  3. ben.teoh
    Member
    Posted 4 years ago #

    You need to make sure that your theme supports the wp_head hook.

    The easiest way to do it is to edit your themes header.php and make sure you put this code in between the header tags:

    <?php wp_head(); >

  4. Jamie Marsland
    Member
    Posted 4 years ago #

    Hi ,

    My theme has this but the light box does not work? . I am using buddypress default theme.

    james

  5. idckamikaze
    Member
    Posted 4 years ago #

    If you're having this problem, it's more than likely a conflict with another plug-in you have installed that's using the jQuery library. Check your headers for any plug-in that loads a jQuery script after the flightbox jQuery and disable that one to see if the lightbox works (it should).

    Unfortunately, I'm not too familiar with how jQuery loads or how to modify the plug-in code to get this to work well with other plug-ins. Maybe the developer can shed some light on this.

  6. DanCoulter
    Member
    Posted 4 years ago #

    Usually it is a problem with a theme or plugin loading Javascript by manually inserting a <script src="jquery.js"> type tag into the site which can overwrite the properly enqueued jQuery object that my plugin uses. All themes and plugins need to use wp_enqueue_script() to load Javascript files, but tons of them do not.

  7. DanCoulter
    Member
    Posted 4 years ago #

    You can find out what is causing your problems by disabling all of your other plugins and re-enabling them one at a time until you find the one that breaks it. If turn off all of your plugins does not fix it, you can try out the default theme to see if your theme is breaking it.

  8. zeaks
    Member
    Posted 4 years ago #

    I had this same problem, I disabled my plugins and lightbox began to work again. Turned out to be the viddler comment plugin I had installed earlier that day. Not sure if there's a way to work around it.

  9. hybridmovement
    Member
    Posted 4 years ago #

    I disabled all plugins except Flickr Gallery and activated default theme, lightbox still won't work for me. Could it be anything else?

  10. darkpollo
    Member
    Posted 4 years ago #

    My theme is not working with the gallery plugin installed.
    Do you think is it possible to fix to use both?

    The frontpage is not working when i activated the Gallery plugin.
    You can check the frontpage: http://www.planetahuevo.es

    The plugin is great, but dificult to use. :)
    Thanks

  11. DanCoulter
    Member
    Posted 4 years ago #

    @hybridmovement Could you send me an example? I might be able to spot a problem. http://co.deme.me/contact/

    @darkpollo Which pictures are using my plugin?

  12. pnelson7428
    Member
    Posted 4 years ago #

    Having same issues with the next button not working, it just gives a blank page, and then the page needs to be reloaded in order to see the first set of images.

    Checked the header, hook is there, no other jquery scripts, tried disabling other javascripts just in case. Still no luck.

    any ideas?

    thanks,
    paul

  13. pnelson7428
    Member
    Posted 4 years ago #

    correction, i do see a jquery script being loaded from google, but it doesn't seem to be inherent in either the theme or plugins, for when i use default theme and no plugins, it's still there in the code.

    thanks,
    paul

  14. DanCoulter
    Member
    Posted 4 years ago #

    @pnelson7428, I can't be sure unless you send me a link.

  15. DanCoulter
    Member
    Posted 4 years ago #

    Also, WordPress does not load the Google versions of jQuery. It distributes its own versions and only uses those. Something would have to be adding the Google-hosted version.

  16. pnelson7428
    Member
    Posted 4 years ago #

    i setup a quick test page so you can look.

    i do have askimet running to fight spam comments... i haven't had time to see if that is what is loading the google jquery script. i tried commenting out the extra scripts in the header.php pages with no luck. i also tried the default theme with no plugins (other than askimet). i will try playing with it a bit more later today, but if you see something that jumps out at you as interfering that would be great.

    thanks for the help!
    http://illuminatedvagabond.com/?page_id=853

    -paul

  17. pnelson7428
    Member
    Posted 4 years ago #

    Did one more test with default theme, it doesn't load the other jquery, just the one that wp uses itself, still no luck with the next button working. so i left the test page above active for now. there are several other js being called in the head, but it is the same problem whether they are there or not.

    thanks again, sorry for the multiple updates.

    -paul

  18. Lynda
    Member
    Posted 4 years ago #

    I'm having the same problem described by pnelson at my site. An example with images:

    http://www.digitalwoe.com/2010/07/friday-finds-macros/

    Lightbox and next page doesn't work. It was working fine and somewhere recently along the way it stopped.

    I went through all the plugins I installed recently and deactivated them - no luck. It's going to take me a while to go through every one of my plugins, but from what I can tell there are no other jquery scripts being used.

  19. Lynda
    Member
    Posted 4 years ago #

    okay, very strange. It has to be something on that page causing the problem. It's working fine on another page:

    http://www.digitalwoe.com/2010/07/friday-finds-camera-phone-shots/

    What's even stranger is that I posted that first entry into a new draft and previewed it. Technically, everything on the page is exactly the same - yet on one the lightbox/next works and on the other it doesn't.

    The only difference is the comments.

  20. TAFLAUN
    Member
    Posted 4 years ago #

    trying to get this plugin to work properly, lightbox doesn't work and I have weird borders around the images. any tips?

    http://taflaun.com/2010/07/10-07-24-midsummer-cruise/

  21. jwsloan
    Member
    Posted 4 years ago #

    Hi. So I have determined that my lightbox is not working because of my theme. It is a theme I created myself. I am a complete WordPress noobie. What do I need to add to my theme to make this work?

    Thanks for your work on this, by the way. I think it will be a great addition to my brand new site!

  22. marktis
    Member
    Posted 4 years ago #

    Weird, I just had an issue with it as well. I've been re-doing my site and tried the plug-in for the first time a few days ago (very good plugin by the way!).

    Anyway, this morning I noticed it wasn't working. I figured I'd added something that made it quit. Then I decided that maybe it was because I moved my files from the sub-domain I'd been testing on and maybe it needed to be re-authorized or whatever through flickr, so I went through that process again and did notice that the website set up on the flickr app needed to be updated to match my main site.

    Still no dice, so I tried changing themes to the standard 2010 theme. Still no dice. I had tried turning off a couple of plugins to no avail and finally reading this thread turned them all off and then turned back on Flickr-gallery. Yes, it works! So, I figured some plugin was indeed to blame. The weird thing? I've just re-enabled every single one of them and it's still working?!?

    Any clues? I'm kind of afraid that it will start not working again without me being aware.

    A link to a page using it on my site if it help in the suggestions is:

    http://www.marktisdalephotography.com/photos/travel/paris-2010/

    The symptoms match this thread, the lightbox would start to load and then it would just fail and go straight to flickr. If you weren't watching you'd have missed that the lightbox even tried it was so quick.

  23. DanCoulter
    Member
    Posted 4 years ago #

    Unfortunately, unless I can see it when it isn't working, I usually can't tell what the conflict is. Let me know if you have problems.

  24. DanCoulter
    Member
    Posted 4 years ago #

    @TAFLAUN,

    The lightbox is not working because you have a theme or plugin that is improperly loading jQuery over the one included by WordPress and wiping out any loaded extensions (like my lightbox).

  25. DanCoulter
    Member
    Posted 4 years ago #

    @lyndasu,

    The reason that your lightbox is not working is because I think you've included HTML code into the tag parameter. If you can't see any indication of the HTML, switch to the HTML view and then make sure that you don't have any HTML code inside your shortcode.

  26. Lynda
    Member
    Posted 4 years ago #

    Dan, I only post in the HTML view. There is no HTML in my shortcode. Here it is exactly:

    [flickr-gallery mode="search" tags="dwcff-macro" group_id="1478338@N23"]

    It's not working on this page either: http://www.digitalwoe.com/2010/07/12-wordpress-plugins-i-cant-live-without/

    I'm not sure why lightbox is selective about when it will and won't work. The only thing differentiating a page that does work with one that doesn't is extra text and maybe a little HTML (outside the shortcode, of course.)

    Any other ideas?

  27. Lynda
    Member
    Posted 4 years ago #

    Also, I'm starting to think this might have something to do with how many images are being returned. Seems to work fine when fewer images are being returned. I could deal with lightbox not working, but the Next / Prev page links aren't working either.

  28. Miguel Peixe
    Member
    Posted 4 years ago #

    lyndasu, I'm pretty sure your problem is because of javascript conflict... check your theme and plugins, I recommend analyzing with Google Chrome's "Resources" check, on the Inspect Element area.

    I'm having a problem after the lightbox is loaded, it seems that the image loads correctly, but it doesn't show up. the image style stays on display:none and the loader.gif stays on the screen...)
    anybody help?

  29. Lynda
    Member
    Posted 3 years ago #

    It's strange though, because there's no javascript difference between the pages it's working on and isn't working on.

  30. DanCoulter
    Member
    Posted 3 years ago #

    @lyndasu, Something is adding in a link anywhere the word "macro" is used in the post. This is messing with a Javascript object and breaking the script. That's why it's not happening on every page.

Topic Closed

This topic has been closed to new replies.

About this Topic