WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] [closed] [NextGen Gallery] Open album in lightbox (75 posts)

  1. inMotionGraphics
    Member
    Posted 1 year ago #

    Hi Stephanie,

    My apologies for getting to the party a bit late... I can imagine how frustrated you must feel, so let me see if I can help you as well.

    It is quite a while back since I looked at this, so my memory is a bit rusty as to what I did, but I'm pretty sure I didn't change anything in functions.php, as I was specifically try to avoid making any changes to core files.

    So let's run through the steps you need to do once you have pretty photo installed:

    1) Select "Custom" from the "JavaScript Thumbnail effect" dropdown menu in Gallery -> Options -> Effects in NextGen Gallery.

    2) Add the following code to the field "Link Code line" in the Effects tab:

    rel="prettyPhoto[%GALLERY_NAME%]"

    3) Call the gallery with the shortcode [nggallery id=3] where id is the ID of your photo gallery.

    I think your problem might lie with the shortcode you are using, so try the above shortcode and let me know if it works. Don't make any changes to functions.php just yet.

    Good luck.

    Brendon

  2. steffy65
    Member
    Posted 1 year ago #

    Hi Brendon,

    Thanks for the reply.. I have done what you suggested but I am still getting the full view of pictures on my site (http://steffykat.com). (I did have the wrong shortcode before - I was trying to get an album not a gallery up).

    I have amended two lots of photos in one of the posts (David Sheldrick) and you should be able to see that the last two lot are the full gallery instead of the one picture - a preview picture has been selected for each gallery.

    cheers

    Stephanie

  3. mvandemar
    Member
    Posted 1 year ago #

    @Brendon - I just looked at the page that you linked to originally, and it looks like you are not doing what the other people here are attempting to do. You still have a layout that shows all of the thumbnails for the entire gallery at once. What this tutorial does is it allows you to launch an entire gallery from a single thumbnail. Your site is just using the normal behavior.

    @Stephanie, shoot me an email, I can set it up for you if you like, it should only take me a couple of minutes. It's michael at endless poetry dot com, no spaces.

  4. steffy65
    Member
    Posted 1 year ago #

    thanks all,

    Stephanie

  5. inMotionGraphics
    Member
    Posted 1 year ago #

    @Michael... Ah, I see what you mean now... "Open album in lightbox", and you are right that I don't make use of the Album feature. My apologies for misunderstanding the thread.

    @Stephanie, hopefully Michael can help you get your album's sorted, as he is right that I'm not doing what you are actually looking for it seems.

    Best of luck.

  6. cocoonfxmedia
    Member
    Posted 1 year ago #

    To get a lightbox to work with NG Gallery you need to install a plugin called "wp-jquery-lightbox" and then in the Options/Effects select lightbox.

  7. piodok
    Member
    Posted 1 year ago #

    @Michael, you mentioned you had to de-link the name of the gallery in the text link below the thumbnails..

    could you share some details on that, please ? how you did it ?

    thanks,
    Piotr

  8. ForMe
    Member
    Posted 1 year ago #

    Hello,

    I'm using this code, too - since today ;) It is THIS code I was looking for the last days ... and it works fine... but only with galleries / album which where at wordpress BEFORE edit the code / made changes... all galleries / albums I make new, there is now thumbnail at the album-overview :-(

    what can the problem be? any ideas?

  9. ForMe
    Member
    Posted 1 year ago #

    more information: when I have a NEW gallery and take it in an "old" album - it is shown with thumbnail in overview... but as soon as I take it in a "new" album (made aber changing the code) - then the thumbnail is black and no pic in it.

    oh and question - isn't it possible to EDIT or DELETE a post here in the forum?

  10. javieruy
    Member
    Posted 1 year ago #

    Hi, First of all the adaptation works really great. Do you have the code to the extend album?

    Thanks in advance
    javier

  11. ForMe
    Member
    Posted 1 year ago #

    sure I have ;)

    THIS is a link that WORKS (with thumbnails)
    [nggalbum id=12 template=lightbox]

    and THIS is a link without thumbnails)
    [nggalbum id=14 template=lightbox]

    oh and I found out - a album with ID 2 .. that is made before changing code, but still - no thumbnails. When I made ne galleries and take them to ID 12 there the thumbnails are visible.

    here's a link: http://test.betti.ist-im-web.de
    -- international is working (made all before changing code)
    -- roy hammer & national is not working :-(

  12. kepongcoder
    Member
    Posted 1 year ago #

    I am thinking if it would be possible to have a extra selection in Edit Page when you click the [Add NextGEN gallery].

    At the moment there are two options under Album tab:
    -Extended version
    -Compact version

    Would it be good if we can add in "LightBox" into this option selection.

    Anyone have any idea. Sorry, I am a newbie to WP, so not good at looking for the codes.

  13. ForMe
    Member
    Posted 1 year ago #

    oh I just select compact and then change it in lightbox.... as long as it works... at the moment I have the problem with thumbnails :-(

  14. kepongcoder
    Member
    Posted 1 year ago #

    Your International Cover Image is linked to http://test.betti.ist-im-web.de/wp-content/gallery/mf12-07-2012/thumbs/thumbs_08_imgp5796.jpg
    but your National image is linked to http://test.betti.ist-im-web.de/national/

    You can double check your image linking. Otherwise its best to re-upload your National gallery.

  15. ForMe
    Member
    Posted 1 year ago #

    it looks like it's an error with the gallerie plugin .. don't know how to change the links... with roy hammer - i deleted and made the album new and uploaded all images new - but it will not work. back to "original ngg" it's still not working, too with compact albumview. But don't know what the error is.

    Just wondering why it works with some album and not with all (newer ones)...

  16. kepongcoder
    Member
    Posted 1 year ago #

    Do you mean the NextGEN Gallery or the prettyPhoto Media plugin ?
    Have you check your WP version and the gallery version ? Are they the latest version?

  17. ForMe
    Member
    Posted 1 year ago #

    oh sorry - mean NextGEN Plugin ... and yes - have the latest version - just installed last weekend ;)

  18. javieruy
    Member
    Posted 1 year ago #

    Anyone have the code to do the same "Open album in lightbox" in extend mode?

  19. finkdb
    Member
    Posted 1 year ago #

    I too am very interested in displaying an album in extended mode while the individual galleries are displayed using lightbox. My current code for the album is [album id=1 template=lightbox].

  20. markali
    Member
    Posted 1 year ago #

    I followed your directions, @mvandemar but I am not getting the photos to stack on top of each other as yours is. I added the code to functions. I created the new template, installed prettyPhoto Media, changed effects to custom and added the template to the shortcode when calling gallery or album. I want to build this page like you have the the dentist photo gallery page.

    Gallery Page

  21. mvandemar
    Member
    Posted 1 year ago #

    @markali - fire me an email with the details and I will take a look. My email address is in an earlier post.

    @javieruy & @finkdb - it's been a while since I worked on this, or any site with NextGen installed, I will have to set up a dev site and play with it to see what you are asking for. Do either of you have a link to an existing gallery, so I can see the difference?

  22. finkdb
    Member
    Posted 1 year ago #

    @mvandemar - I just sent you an email at the address you listed in a previous post showing both the Lightbox album thumbnails and the Extend album thumbnails. Thanks for looking at this.

  23. samuelr2010
    Member
    Posted 1 year ago #

    @mvandemar, thanks man! Now after the custom effects to prettygallery I really like the new look of my nggallery slideshow.

  24. markali
    Member
    Posted 1 year ago #

    @mvandemar - sent you email yesterday, I just want to have the stacking effect to my galleries.

  25. finkdb
    Member
    Posted 1 year ago #

    I think I figured it out.

    Change mvandemar's album-lightbox.php file to reflect the following changes.
    1) Change Line 22: replace ngg-album-compact with ngg-album
    2) Change Line 23: replace ngg-album-compactbox with ngg-album

    This worked for me. Now I have an album in extended view that displays a thumbnail of each gallery. When each thumbnail is clicked, the respective gallery opens in Lightbox.

  26. markali
    Member
    Posted 1 year ago #

    @finkdb Did you add the code to the functions.php? I had trouble with that in that it crashed my site.

  27. finkdb
    Member
    Posted 1 year ago #

    @marali - No, I changed the album-lightbox.php file.

  28. markali
    Member
    Posted 1 year ago #

    Well, now my page is only showing a blank gallery stacked image and no copy. This just doesn't seem to work for me. Here is the page now
    http://sheldrakeyc.org/gallery/

  29. finkdb
    Member
    Posted 1 year ago #

    It looks like you are still linked to the Compact and not the Extend format. When you copied mvandemar's code for functions.php and album-lightbox.php, did you grab the RAW code? If not, do that. The additional function in the functions.php file should not have crashed your site. Also, are you trying to display an album with multiple galleries or just a single gallery?

  30. markali
    Member
    Posted 1 year ago #

    When I copy over the raw functions code, I get the code at the head of my page as well as across the top of wp admin. I'm putting this code in the theme functions not nextgen functions, correct?

    http://sheldrakeyc.org/gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic