Forums

Portfolio Slideshow
multiple slideshows on one page? (40 posts)

  1. mtgentry
    Member
    Posted 1 year ago #

    Hi Dalton,

    Firstly, thanks for this awesome plugin!

    Is it possible to have multiple slideshows on one page? I tried to create two slideshows where each one calls different ID numbers but only the first slideshow seems to work.

    see here: http://faucetface.net/gentryremodeling/?page_id=5#1

    cheers, Mason

  2. Dalton Rooney
    Member
    Posted 1 year ago #

    Hi Mason,
    There is currently no way to put two slideshows on the same page. The programming gets a lot more complicated to do that, and I haven't quite figured it out. I've been getting better at jQuery, though, I'll add it to the list of features I'd like to add.

    Cheers,
    Dalton

  3. mtgentry
    Member
    Posted 1 year ago #

    No worries, I think I can work around the issue, but yes that would be a nice feature to have for future releases.

    thanks!

  4. ninetienne
    Member
    Posted 1 year ago #

    Hey Dalton Rooney, mtgentry,

    Have you managed to make multiple galleries? This is one of the most wanted feature for WP default gallery alternatives!

    Please let me know, how it is going.

    BR,

    Sergey

  5. Dalton Rooney
    Member
    Posted 1 year ago #

    Hi Sergey,
    I have a big plan to clean up the javascript code in the plugin, which will allow me to add the multiple galleries feature. (I already did it in my Haiku plugin, for example, although that one is a bit simpler). It's a big job, though - I don't yet have an ETA for when it will be ready. Hopefully before the end of the year.

    Cheers,
    Dalton

  6. ninetienne
    Member
    Posted 1 year ago #

    I think it is pretty easy to implement the function.

    The user shall simply add an ID to the shortcode:

    [portfolio_slideshow id="1"] and the plugin shall assign the ID to JS.

    What do you think?

  7. Dalton Rooney
    Member
    Posted 1 year ago #

    Yes, but each slideshow already has an ID which is based on the Post ID, which is necessary for index pages. Plus I don't want users to have to think about this stuff - if they forget to add an ID they will wonder why it's broken and email me. : )

    So I need to implement an ID system which is compatible with both single pages & index pages. It's just incrementing a static variable - you're right, not so hard.

    But I really want to move the javascript to an external file as well. Each individual slideshow has it's own list of options which need to be accounted for, so I need to get the options from PHP into the JS, and I haven't decided on the best way to do it.

  8. Dalton Rooney
    Member
    Posted 1 year ago #

    OK, you talked me into it. I went ahead and switched the slideshow IDs to a static incrementing variable and moved a few things around. 0.5.9 now has multiple slideshow/page support! I just uploaded it to the repository, give it a try and see what you think.

    Next up is really cleaning up my javascript, though. It's just too messy with all of the inline scripts& re-declaring everything for each iteration of the slideshow.

  9. ninetienne
    Member
    Posted 1 year ago #

    Thank you very much Dalton!

    How many slideshows can I use? Any number?

    I also played with some styles of your slideshow in order to align navigation to the right, it is OK in the first slideshow, but the second one is wrong - still aligned to the left. Don't think it will be hard to realign it myself, however it's pretty weird, since both of the appearances shall be one and the same.

    Thank you very much again for the great plugin.

  10. ninetienne
    Member
    Posted 1 year ago #

    Sorry, it was the matter of my cache, both slideshows are aligned perfectly.
    Thanks!

  11. Dalton Rooney
    Member
    Posted 1 year ago #

    Yeah, I think it should support any number of slideshows. The images *must* be on attached to the current page/post though. This is because of a missing feature in WP. Technically I can grab attachments from other posts but there's no way to sort them, so I've turned that off for now.

  12. Dalton Rooney
    Member
    Posted 1 year ago #

    OK, glad to hear that it was just a cache issue!

  13. ninetienne
    Member
    Posted 1 year ago #

    Cool, it can support any number of slideshows now! Now it's the best slideshow plugin for WP!

    Grats!

  14. biskitwheels
    Member
    Posted 1 year ago #

    According to the readme

    "Multiple slideshows per post/page

    As of 0.5.9, you can insert multiple slideshows per post/page, by including different attachment ids in your shortcode. Example:

    [portfolio_slideshow include="1,2,3"]

    [portfolio_slideshow include="4,5,6"]

    This example will create two slideshows on the page with two sets of images."

    I've installed the plugin, configured the slideshow features and styled it successfully, the sideshow works and is beautiful! Now I am trying to add a 2nd slideshow to a page and can't seem to get past the "include="1,2,3" addition to the shortcode.

    the code for the single slideshow (the one that works)
    <div class="sensesSlide">[portfolio_slideshow]</div>

    Of course, I started by adding all attachment IDs, instead of testing it with a few.

    <div class="sensesSlide">[portfolio_slideshow include="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18"]</div>
    <div class="sensesSlide">[portfolio_slideshow include="19,20,21,22,23,24,25,26,27"]</div>

    That didn't work, so I went with something simple, like this:
    <div class="sensesSlide">[portfolio_slideshow include="1,2,3"]</div>

    And the slideshow is still no longer visible. Thoughts?

    using WP3.0.2
    Portfolio Slideshow v0.5.9.2

  15. Dalton Rooney
    Member
    Posted 1 year ago #

    Are you sure those attachment IDs are images that were actually uploaded to the page you're inserting the slideshow on? This is a little confusing, maybe the documentation needs to be clearer, but it only works with images that are attached to the page you're on. It's a limitation with WordPress' query sort features.

    Dalton

  16. biskitwheels
    Member
    Posted 1 year ago #

    Thank you for the prompt reply.

    I am positive the files are uploaded to that page. However, I am not clear on Attachment IDs. A thumbnail rollover (ff or safari) does not show attachment id. A search for attachment id tells me the same thing, that a rollover of the thumb in the add media popoup interface will reveal it, but i do not see an ID in the status as you do when you determine a post id. I cannot find it in the resulting html either.

    I used "1,2,3" in the shortcode, but I think that is referring to the sort order. They are the only numbers I could find that are associated with the images I've uploaded.

    I have checked the rollover status of the thumbnails in 5 locations - 2 each in page specific gallery and the "media library", both with the "show" on and "hide" on. I even tried it with the thumbnail found in the image editor. I copied the image location from the editor and saw a number that looked interesting, but it is indeed random.

    postid=2085&rand=37397

    I believe this is the issue.

  17. Dalton Rooney
    Member
    Posted 1 year ago #

    Hi there,
    Just to make sure we're talking about the same thing, can you take a look at this screenshot? The page you want to be on is the Media Library page:

    https://skitch.com/daltonrooney/rd2ch/portfolio-slideshow-screenshot-5

    I've verified that the attachment ID feature works with the latest version of the plugin & the latest version of WordPress. So if it's missing on yours, is it possible that you've got a conflicting plugin or an older version of WordPress?

    From the Media library, if you click on Edit for a particular image, you'll come to a page with a URL that looks a little like this:

    yoursite.com/wp-admin/media.php?attachment_id=62&action=edit

    That attachment_id=X is the same number, it will work in the shortcode for the include attribute as well.

  18. biskitwheels
    Member
    Posted 1 year ago #

    There it is!

    I was accessing the media library via the the "Upload/Insert" lightwindow that is page/post specific, the icons to the left of the visual/html toggle and just above the html markup and text field. From here I could not find the attachment id.

    Since I've never used the Media Library feature on the left sidebar, it did not occur to me to look elsewhere.

    Thanks for going over the top on this. Donation on its way.

  19. Dalton Rooney
    Member
    Posted 1 year ago #

    Ah, you got it! Glad to hear that it's working now. I'll make sure I update the documentation to make it more clear where to find the Media Library.

    I really wish I could make this feature a little more user friendly but I haven't been able to find a way to do it. The obvious idea is to use the Gallery feature that's part of the uploader, but I can't find the WordPress hooks to put it there - so I had to use the regular Media Library. It's a little bit of a workaround, but it works!

    Dalton

  20. biskitwheels
    Member
    Posted 1 year ago #

    To contribute a bit more here - you can copy the media library with a mouse drag and it copies the image, file name and the attachment ID. Paste it into a text editor and your workflow is much easier.

    One additional thing to add to the readme - clearly state in the beginning that there is a settings page in the admin! I did not read this, and I spent a short while snooping around the php to control the catpions/autoplay et al. Once I saw the code for the admin in the php I realized where to go. Maybe this mistake, and the media library issue I had are fundamental things I should know about WP, but the way I use it, I Don't always look at the left toolbar and usually dive straight into the code after I check the readme.

    Keep at it, simplicity and elegance are not easily achieved.

    Great plugin.
    Thanks again!

  21. Dalton Rooney
    Member
    Posted 1 year ago #

    Thanks for the feedback. Enhancing the documentation is a major to-do on my list. I am very much hoping to get version 1.0 out by the end of the year which will not add any new features but will clean up the code considerably and the improve the documentation, including a video walkthrough.

  22. liv_singer
    Member
    Posted 1 year ago #

    Dalton, thanks for this great plugin!

    Is there any pre-loading actually taking place here, or do we need to wait until all the slides are loaded prior to seeing the first slide displayed?

    Or is jquery loading the first slide, displaying that, then loading the next before transitioning, then the next and so on (are they loaded individually and sequentially)?

    We're going to be using about 10 slides adding up to around 1M so load time is a factor.

    Best,

    Chris

  23. Dalton Rooney
    Member
    Posted 1 year ago #

    Chris,
    There is no pre-loading going on, all the images are loaded on the page in the background in the usual manner. This can be a performance problem for very large slideshows, bit I think 10 is a reasonable number. I've seen slideshows of 30 images or more. The only way to know for sure is to try it out.

    Pre-loading may come in v 1.1, but that's definitely a little ways off.

    Dalton

  24. liv_singer
    Member
    Posted 1 year ago #

    I see, thanks Dalton.

    I *may* try to implement a pre-loading solution for the plugin if there's time and will contact you if I get anywhere with it.

  25. Dalton Rooney
    Member
    Posted 1 year ago #

    Thanks, I would love the help! I am just finishing up a few fixes for 0.5.3, which should be out soon. Then I am going back to clean up the javascript & some PHP in time for 1.0. So if you had anything to suggest I'd be glad to take it into consideration.

    Dalton

  26. vengist
    Member
    Posted 1 year ago #

    Dalton, Hi.

    I've installed the plugin and setup slideshows per documentation.

    However, in the page where it should be showing a slideshow it merely displays the images one after another, as if no javascript is being used. Other slideshow plugins work fine but do not support multiple slideshows per page as is necessary for the site I am working on.

    I even tried to manually load the javascript you mentioned in the faq in the header.

    <script type='text/javascript' src='http://www.thelandfill.org/wordpress/wp-includes/jquery/jquery.cycle.all.min.js'></script>

    Anything obvious that I am missing? Here is a link to a page with a slideshow malfunction.
    http://thelandfill.org/wordpress/archive/f002-party-time/

  27. vengist
    Member
    Posted 1 year ago #

    FIXED IT! Nevermind.

    Checked to make sure both wp_head() was in the header.php and wp_footer() was in the footer of the custom theme to ensure javascript was loading fully.

  28. amandavestberg
    Member
    Posted 1 year ago #

    Hello Dalton!

    My question is how I can controll the order of the images that I've included in the slideshow? I've put the attachment-ID in the order I want them to be shown, like this:

    [portfolio_slideshow include="105, 100, 93, 10"]

    But the code automaticly shows the images in the order of the attachment-IDs, from low to high.

    Can I add something to the shortcode for showing the highest attachment-ID first in the slideshow?

    Best regards / Amanda

  29. leslietrosset
    Member
    Posted 9 months ago #

    I'm trying to put one slideshow with specific images on several pages. I setup the gallery page to show all images and it worked just fine. Yet when I specify certain id's to show up on a page, nothing at all shows up - similar to what happened above with @biskitwheels.

    Here's the full gallery slideshow: http://allsignsny.com/custom-signs-gallery/

    and here's the code I'm trying to use on another page on the same site:
    [portfolio_slideshow include id="143, 144, 145"]
    143-145 are uploaded to the server and assigned to the gallery. Yet nothing at all shows up on the page when I insert this shortcode.

    Any ideas to help me correct this problem?

  30. Dalton Rooney
    Member
    Posted 9 months ago #

    Hi Leslie,
    You've got the include and the ID shortcode attributes mixed up.

    The include attribute is when you want to include a selection of images attached to the current page. People usually use this if they've got 10 images attached to a page and only want the slideshow to feature a selection of those images. This only works with items attached to the current page, you cannot just select random images from the media library, unfortunately.

    I believe what you're looking for is the id attribute. You would use this to grab all of the children images from another post. Say you created a post with 10 images attached, and the post ID was 33. If you wanted to reference those same 10 images in another post, the shortcode would look like

    [portfolio_slideshow id=33]

    Does that make everything a bit more clear?

    Dalton

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic