WordPress.org

Forums

NextGEN Gallery
[resolved] Can't get Lightbox to work (26 posts)

  1. IAmMadDog
    Member
    Posted 2 years ago #

    Looking forward to getting NextGen gallery plugin to work. Looks awesome!

    Having an issue. I have a page that I've inserted a gallery onto. When I preview the page and click on an image, it loads on a separate page. I may have overlooked it, but is there any documentation that shows what some of the plugin options are about? I have lightbox selected as the style.

    Here are some of the particulars:

    WordPress up to date? Yes.
    NextGEN up to date? Yes

    (please confirm the following, with your server host tech) :
    MySQL up to date (5.2.4)? 5.1.39
    PHP up to date (5.0)? 5.2.17
    The mod_rewrite Apache module activated? Waiting to hear back from host.
    PHP Safe Mode OFF? Waiting to hear back from host.

    and if you're willing to share:
    Who are you hosted with? dreamhost
    What theme are you running? prime press
    Which plugins do you have installed and activated? I have many installed, but have disabled them all.

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. IAmMadDog
    Member
    Posted 2 years ago #

    mod_rewrite is enabled.
    PHP Safe Mode is off.

  3. DoubleSixx
    Member
    Posted 2 years ago #

    Lately I've been recommending the following :

    Now I use jQuery Lightbox (balupton edition).

    Make sure in Gallery->Options->Effects had the following setting :

    JavaScript Thumbnail effect: Lightbox

    Link Code line: rel="lightbox[%GALLERY_NAME%]"

    http://balupton.github.com/jquery-lightbox/demo/

    You'll see the download.

    After the plugin has been installed you find jQuery Lightbox in the setting section of the admin bar.

    Good luck.

  4. TraciBunkers
    Member
    Posted 2 years ago #

    I am having the same problem, except it used to work for me. I've got it set up as image list when I insert it into a page. I'm not sure when it stopped. What makes it stranger is I have a "test blog" where it DOES work. So I know it's not an issue with my server.

    In trying to troubleshoot, I've disabled all plugins except nextgen gallery, and changed to twenty-eleven default theme, and it still doesn't work. So it's not an issue with a plugin or my theme.

    I've looked at the source code of both my regular blog & test blog to see if I could figure anything out, and even though the CSS for the plugin is in the source code, the javascript isn't. My test blog shows these 3 nextgen gallery scripts in the source code:

    nextgen-gallery/shutter/shutter-reloaded.js
    nextgen-gallery/js/jquery.cycle.all.min.js
    nextgen-gallery/js/ngg.slideshow.min.js

    my regular blog doesn't, but I've checked my nextgen gallery folder, and they are there. So for some reason, they aren't being called. I'm using the latest version of both wordpress & nextgen gallery, although I was having this problem with the previous version of wordpress also. I don't know if I have a corrupt file somewhere that's causing this or what it could be. I've spent days trying to figure it out.

    I really don't want to install another plugin because I use nextgen gallery in my header with JJ Nextgen JQuery cycle, and I already have too many plugins.

    How can I tell what is causing the javascript not to be called?

  5. DoubleSixx
    Member
    Posted 2 years ago #

    @TraciBunkers

    Check the settings against test blog and the one with the problem.

    jQuery Lightbox (balupton edition). won't change anything other than how the images are displayed on the site.

    I have nggallery in my header to and I don't have any issues.

    Good luck.

  6. TraciBunkers
    Member
    Posted 2 years ago #

    I've got the settings in both exactly the same.

    I just didn't want to add another plugin since I've got too many already, but can't really bare to get rid of them.

    And it seems like there's a "simple" reason why it's working on my testblog, and not my regular blog. But other than the troubleshooting I've done, I'm not sure how else to figure it out.

  7. TraciBunkers
    Member
    Posted 2 years ago #

    I just uploaded the jQuery Lightbox plugin, and it works. Which is great, so than you for the suggestion. Now I'm even more curious why Nextgen Gallery wasn't working on its own.

    I'd still like to figure it out, but this is will work in the mean time

  8. IAmMadDog
    Member
    Posted 2 years ago #

    Okay, I downloaded/installed/activated the jQuery Lightbox plugin. Still not working. I'm getting the same results: I open the page where the gallery is, I inserted the gallery as image list, I click on an image and the image loads in a new page. In Gallery > Options > Effects, I have:

    JavaScript Thumbnail effect: Lightbox
    Link Code Line: rel="lightbox[%GALLERY_NAME%]"

    On the page it shows the gallery properly: [nggallery id=2]

    I still have all plugins disabled except NextGen and the new jQuery plugin. The jQuery plugin I have is as described above...

    Used to overlay images on the current page. Original jQuery Lightbox by Balupton. Version 0.22 | By Pedro Lamas | Visit plugin site

    Bummer....

  9. IAmMadDog
    Member
    Posted 2 years ago #

    I could uninstall/reinstall NextGen, but would hate to do that...would lose galleries...

  10. IAmMadDog
    Member
    Posted 2 years ago #

    In fact, I guess that's what I'll do, as whatever effect I choose, I get the same result: image opens in new/separate page.

  11. IAmMadDog
    Member
    Posted 2 years ago #

    Won't let me delete the plugin, after deactivating plugin and deleting galleries...this sucks.

  12. TraciBunkers
    Member
    Posted 2 years ago #

    Make sure your theme has this code in the header.php file:

    <?php wp_head(); ?>

    I had tried deleting it also, and had problems. So I deactivated it from the plugins, then deleted the files via FTP.

    Make sure you have that code first, because without it, it won't work.

  13. IAmMadDog
    Member
    Posted 2 years ago #

    Yep, the code is in the header.php file. I'll ftp in and remove the plugin and try to reinstall...

  14. IAmMadDog
    Member
    Posted 2 years ago #

    Same thing.........after reinstall plugin, I checked settings, then created new gallery, added images and inserted onto page. Click on image, it opens in individual page.

  15. Ipstenu-DH
    DreamHost Rep
    Posted 2 years ago #

    Have you tested with another theme, IAmMadDog? I saw that Traci did.

  16. IAmMadDog
    Member
    Posted 2 years ago #

    Tested with another theme and same thing.

  17. shaki
    Member
    Posted 2 years ago #

    Hello,

    Had similar issues with a couple themes, and now they're working. Just added <?php wp_head(); ?> into header.php, before closing </head>.

    Done. :)

  18. IAmMadDog
    Member
    Posted 2 years ago #

    Yep. That's where I have it...

  19. TraciBunkers
    Member
    Posted 2 years ago #

    I wish I could figure out why nextgen gallery isn't doing this feature on its own (anymore for us). I also can't get just the slideshow to work. I just get the spinning ball forever. I was hoping with the update yesterday it would fix it, but I guess it addressed other things and other people aren't having this problem that we are.

  20. photocrati
    Member
    Plugin Author

    Posted 2 years ago #

    Hey everyone!

    NextGEN Gallery requires a Lightbox plugin to be installed alongside it, this one we tested and confirmed works well with the plugin for the Lightbox Effect: http://wordpress.org/extend/plugins/wp-jquery-lightbox/

    The other effect options have worked automatically, and should still, but lightbox requires a bit more, and needs a lightbox specific plugin installed additionally.

  21. IAmMadDog
    Member
    Posted 2 years ago #

    Any changes/adjustments to the 'new' plugin on the settings page? With this new plugin and accepting the default configuration, I tried and am still not getting the lightbox effect.

  22. TraciBunkers
    Member
    Posted 2 years ago #

    photocrati: without a lightbox plugin, none of the effect options work for me--shutter & thickbox used to. And they still do on my testblog, on the same server as my blog. But they don't on my main blog. I'm not sure why they used to and now don't. When I was trouble shooting, I disabled all plugins except nextgen, and switched to one of the default themes, and it still didn't work. When I look at my source code on a page, the javascript doesn't show for the nextgen plugin, but the CSS does-- the javascript does show on my testblog source code.

  23. TraciBunkers
    Member
    Posted 2 years ago #

    Oh, I found this link: http://thescube.com/blog/2009/07/20/nextgen-effect-error/

    and pasted the code into my header, changing the info for my site. And, all of the apostrophes are curled, so those need to be changed to straight ones (').

    Now the shutter effect works without the lightbox plugin (but not the thickbox).

    EDIT: I just discovered this for some reason only works in Safari. and on a desktop computer. I tried firefox, chrome & opera, and it still opens the image in it's own page. Safari on my iPad does the same thing.

  24. TraciBunkers
    Member
    Posted 2 years ago #

    I've done some experimenting, and all that I needed in my header to get the shutter effect working is this code:

    <script type='text/javascript' src='http://www.MY-SITE.com/wp-content/plugins/nextgen-gallery/shutter/shutter-reloaded.js?ver=1.3.3'></script>

    it works in the other browsers and on my ipad as well.

    But I still can't get the thickbox to work. I pasted in this to my header hoping it would also do the trick, but it didn't:

    <script type='text/javascript' src='http://www.MY-SITE.com/wp-includes/js/thickbox/thickbox.js'></script>

  25. IAmMadDog
    Member
    Posted 2 years ago #

    As it stands, I ended up changing plugins. Now using CataBlog.

  26. jlsa
    Member
    Posted 2 years ago #

    Great instructions, Thanks!

    Too bad there's nothing there to download :(

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic