WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Slideshow of RECENT or RANDOM photos (23 posts)

  1. careyz
    Member
    Posted 4 years ago #

    I see instructions for the slideshow command.

    The width and height can be set using the w and h attributes. Example :
    [ slideshow id=x w=width h=height ]
    (without the spaces after/before the brakes)

    BUT would like to use it with RECENT or RANDOM photos instead of a single gallery is this possible? HOW?

    Also is it necessary to spec W & H? What if you want to display full images in original size? Possible?

    Thank you!

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

  2. careyz
    Member
    Posted 4 years ago #

    Note I want to put the slideshow on a Page or Post not in a sidebar widget.

  3. Paulio51
    Member
    Posted 4 years ago #

    If you are still looking and for anyone else that runs into this situation, I have found a way to show tagged photos in a slideshow that you can place anywhere on either the page or post, whiched worked in my situation and may (or may not) work in yours.

    Please excuse the crudeness of this hack since I haven't had much time to make it user friendly and hopefully over the next week or so I can get this to work with the built in recent and random functions as well.

    Anyways, here is what you need to do.

    /*-- Instructions to add custom slideshow in NextGen Gallery --*/

    Open file: ..\plugins\nextgen-galery\xml\imagarotator.php

    Add an elseif {} statement under the heading ' //get the pictures ' that looks something like this:

    `elseif ($galleryID == 999) {
    $thepictures = nggTags::find_images_for_tags('favorite' , 'ASC');
    }`

    where $galleryID is some arbitrary gallery that is called by either <?php echo nggShowSlideshow(999, width, height) ?> in a template file or [slideshow id=999] in a post and 'favorite' is the name of the tag that you used on your photos that you want shown in this slideshow(in this case I used favorite).

    Hope that helps someone and let me know if anything isn't clear.

  4. paulc8712
    Member
    Posted 3 years ago #

    Thanks.
    That worked perfectly for me. :-)

  5. Paulio51
    Member
    Posted 3 years ago #

    Cool!

    Still looking to get Recent/Random working with this. Just need some time.

    Paul

  6. careyz
    Member
    Posted 3 years ago #

    Thanks Paulio for the suggestion. Glad it woked for others but...

    Not much of a hacker so prefer to find another route to do this with Random or Recent.

    If you manage this, please advise!

    Thanks again!

  7. bazel
    Member
    Posted 3 years ago #

    this hack is not working for me, and I really need to show only some pictures in the slideshow. The slideshow is loading but not the images.
    which version of nextgen you are using?

  8. Paulio51
    Member
    Posted 3 years ago #

    careyz - I can try and submit the suggestion on Google Code but I know that Alex is busy with, among other things, a jQuery alternative to the flash slideshow. It's pretty cool what it can do so worth the wait.

    bazel - I'm using 1.5.5. Post some code and I can see what I can do to help(i.e. how are you calling the function and where did you put it in imagerotator.php). And have you double checked that the tags that you used on your photos are the same as the one you used in the function?

    Paul

  9. bandfreq
    Member
    Posted 3 years ago #

    There are two new shortcodes for NextGen Gallery:

    [recent max=4] and [random max=4]

    Set the 'max=' value to number of pics you want returned and displayed. You can also include the optional 'mode=' parameter to grab pics by most recent date (i.e. [recent max=4 mode=recentdate] ). Finally, if you want to use this shortcode outside of content in a loop for posts, you can add the following PHP directly into a template file (i.e. to place in sidebar on a Page or something):

    <?php echo do_shortcode('[recent max=4 mode="recentdate"]'); ?>

    Hope that helps!

  10. Paulio51
    Member
    Posted 3 years ago #

    Yes, that is great for showing thumbnails in a grid but those shortcodes don't work in a slideshow, or I haven't figured out a way to make it work.

    If you have please post your code. :)

    Paul

  11. jordanewert
    Member
    Posted 3 years ago #

    Just so I can keep this alive... has anyone found anything? I'm having the same problems that Pailio51 is having.

  12. careyz
    Member
    Posted 3 years ago #

    Thanks to ALL for keeping this thread alive.

    Looks like several of us (at least) are still looking for a solution that would allow creation of a Random or Recent slideshow.

    If anyone can crack this it would much appreciated...

  13. dansalmon
    Member
    Posted 3 years ago #

    I'd also love to be able to add a random slideshow but can't see anyway to currently do it. Assume the new random/recent shortcodes need to be integrated into the slideshow functions. Any NextGEN gallery developers keen to do this? Cheers.

  14. rapscalli
    Member
    Posted 3 years ago #

    +1, slideshow of recent images please!!

  15. Bare
    Member
    Posted 3 years ago #

    I'll only mention this in case it solves some people's problems here - you can use the "random" command in the slideshow command like this:

    [slideshow id=x random]

    And it results in a random slideshow from gallery "x". The problem that I have with this is that I would like it to be a random slideshow from ALL galleries. You can use "all galleries" as an option for the slideshow sidebar widget and this generates a gallery id of "0", but setting id=0 in that slideshow command doesn't work.

    I'll also add that I'm unsure how the width/height integrate into the command with the random call, I never tried it because I didn't need it, but I'd bet that you can just enter them after random and it will work.

    If anyone can figure out how to make this id=0 call work in this command I'd really appreciate it!

    Edit: I found this:

    http://wordpress.org/support/topic/plugin-nextgen-gallery-slideshow-from-album?replies=7

    So it appears that you used to be able to accomplish this via an album ID, but it doesn't seem to work anymore. Just throwing this out in case someone smarter than I can use this to implement a solution...

  16. tallhat
    Member
    Posted 3 years ago #

    hi bare,
    i thought for a moment the 'random' parameter in the slideshow shortcode you were suggesting was my holy grail but it doesn't appear to work for me. where is the reference for this parameter? i have the latest plugin.
    anyone know a way of achieving a random (or shuffled) playback in for a jquery (NOT a flash!) slideshow?

  17. Bare
    Member
    Posted 3 years ago #

    I can't provide a reference for that parameter, I imagine if I have it (and I do, lol) that I must have found it through scouring the internet for a solution the same way everyone in this thread likely has been.

    What about it isn't working for you? I have the latest version of the NextGen plugin (1.7.2 at the time of this posting) and it works perfectly for me, I just want it to be "all galleries" instead of just one specific gallery. When I put id=0 it shows [gallery not found] in my posts, but when I put id=1 (or any other working gallery id number) it works beautifully. I even double checked myself just now to be sure that it is actually random, and it is.

    To be clear, the only thing you should need to change from:

    [slideshow id=x random]

    is the "x".

    I'd love to help you figure this out if it would fix your problem, but I'm afraid this is all I can offer help with. I'm not sure if I'm using jquery or flash so perhaps that's the hangup, if you tell me how I can check I'll be glad to - I set mine up so long ago I forget what I'm using.

  18. tallhat
    Member
    Posted 3 years ago #

    ah, i suspect you're using the Flash slideshow rather than the jquery only option. is 'Enable flash slideshow' checked under >gallery >options >slideshow

    It's a random ***jquery*** slideshow for nextgen that would be fantastic to have - given that flash is being frowned upon a bit these days in terms of accessibility.

  19. Bare
    Member
    Posted 3 years ago #

    You are absolutely right, the flash box was checked. I actually appreciate you pointing that out to me as I prefer to stay away from flash for the same reasons you mentioned and I didn't even realize I had checked this.

    Oh well, back to the drawing board for me... In any event, the random does work for people using the flash version of the slideshow... At least we were able to sort that out for anyone reading this thread.

  20. Bare
    Member
    Posted 3 years ago #

    Hoping to get this figured out, perhaps by someone more familiar with the plugin than I am... I have been digging for 2 solid days now and several other days in the past, still with no success. I have stumbled across 2 articles on placing the slideshow sidebar widget in the header:

    http://www.scotproof.com/inserting-a-nextgen-slideshow-in-your-header/

    http://www.mackmangroup.co.uk/adding-a-nextgen-slideshow-to-your-wordpress-template

    Neither of those solves my problem, but I thought they might help someone else figure this out. I continue to believe that if the slideshow can display random images from ALL galleries in the sidebar widget then it can do it in a post.

    I will add that there is a "hack" way to do this by turning on the sidebar widget, load your site and copy/paste the source code into a post. What you should end up with is something that looks similar to this (depending on your settings):

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Obviously yours will look different based on the options you have defined for your slideshow, but I was able to make the changes in the widget and have them appear in my post. The problem I ran into was that when I removed the sidebar slideshow widget (I didn't want the slideshow in my sidebar) it stopped working in my posts also...

    As I said, this is a hack way to do this for sure, but it might work well enough for some people, or even help someone figure out the proper solution. Please keep in mind that this is all flash stuff for people using the flash imagerotator.swf file.

  21. Bare
    Member
    Posted 3 years ago #

    I'm not sure why the code was moderated, it was 3 lines and the rules say use the paste bin for more than 10. Regardless, I think most of you get the idea of what I was saying if you're reading this.

    I'm still digging for answers here, if anyone has anything constructive to add I'm all ears.

  22. apurdam
    Member
    Posted 3 years ago #

    Missing back-ticks, perhaps?

  23. Bare
    Member
    Posted 3 years ago #

    Nah, I put the ticks in, I try to be pretty particular about all that, and I even re-read the post after I made it to be certain.

    No worries, it's back now - now if I can just figure this out, heh... ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.