• Resolved kristenphotos

    (@kristenphotos)


    Hi there,

    I’ve looked through all the options and can’t find the setting for number of photos per gallery–is there a way to show all the photos in a smugmug gallery and not just 100?

    Thank you so much!
    Kristen

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    There isn’t an inbuilt option, and since I have never worked with albums containing more than 100 pictures, I am not sure if what I am going to suggest will. Try this: go to the file wp-content/plugins/photonic/extensions/Photonic_SmugMug_Processor.php, and head down to line 147, which says:

    $ret = '';
    

    Right before this line put in this code:

    $args['count'] = 500;
    

    Save the file, and reload your page. If this works, well and good. Otherwise the solution is a bit more complex (really a SmugMug limitation), and cannot be handled by adding one line of code.

    Thread Starter kristenphotos

    (@kristenphotos)

    Thanks for getting back to me. It looks like that didn’t fix it. It wasn’t an issue in the last version; there was a option for a “view more” button I think, and then it would load more as you scrolled down (I think). If it’s not an option now, I can definitely work around it in the future.

    Plugin Author Sayontan Sinha

    (@sayontan)

    I am pretty sure there has never been any capability to “load more” on the same page ??

    Moreover, paged viewing has not been available for SmugMug at any time, let alone on the same page. Flickr, Picasa and 500px have had a capability to “Show More”, but through a rather convoluted approach, using WP’s native <!-- more --> button.

    Let me think of a way to bundle in the capability.

    Plugin Author Sayontan Sinha

    (@sayontan)

    OK – I have figured out a way to provide this option. Let me work on it, since I will have to replicate this across Flickr, 500px and Picasa as well.

    I just ran into the same issue today… Sayontan, it would be awesome if you could find a way to provide this option!

    Thanks!!

    Plugin Author Sayontan Sinha

    (@sayontan)

    It will be there in the next update (1.60?). This needs rather extensive testing across multiple providers (Flickr, SmugMug, Zenfolio, 500px, Picasa and Instagram), multiple scenarios (regular photo streams / searches, albums, galleries), multiple layouts (square, random tiled etc.). All in all, the scope is massive, so I am trying to do my due diligence.

    That’s awesome! Fully understand that this needs time, I’ll be happy whenever it’s going to be available. Thanks!!

    Plugin Author Sayontan Sinha

    (@sayontan)

    Folks,
    Please take a look at the second example here: https://aquoid.com/news/plugins/photonic/smugmug/smugmug-photos/. Let me know if this is in accordance with what you desire.

    count=10 more='Show More'

    So ‘count’ specifies the number of photos to display on initial page load, and the ‘more’ button will load the next number of photos, and so forth?

    Thats’s awesome! Granted, a paged mechanism would be nice, but if as you said SmugMug doesn’t even support paging then this good enough and a great compromise!

    Thanks Sayontan for you work, can’t wait to get my hands on this! ??

    Plugin Author Sayontan Sinha

    (@sayontan)

    Well, SmugMug API v1.3, which Photonic used until version 1.56, didn’t have paging (at least, I don’t see it in the documentaiton). But SmugMug API v2, which Photonic switched to in 1.57 does support paging. What I meant in my statement above is that Photonic’s SmugMug interface has never supported paging in the past, regardless of whether SmugMug supported it.

    So far, for all other providers I do support paging but in a different way – it makes use of WP’s native paging capabilities as well as Photonic’s paging.

    The “Load More” capability is is new, obviously. Your guess is correct. If your album has 55 photos, and you choose to say count=20 more='Load More', you will first be shown 20 photos and a button that says “Load More”. Upon clicking the button you will be shown 20 more photos, and then when you click the button a third time, you will be shown 15 photos (and the button will go away).

    I have added this capability across all providers.

    One downside to this capability is that it will not support search engine indexing, but IMO your first 20 photos are indexed anyway, so you are not going to gain much more by indexing the rest in one shot.

    Another way to do this is using what I have suggested above. Basically you can use the “nextpage” tag of WP, then, on the first WP page show 20 photos, on the next WP page show 20 more photos, and on the last WP page show 15 photos. For this you will do 3 invocations of the shortcode, one on each page, with an additional start parameter. So start=1 count=20 will show you the first 20 photos, start=21 count=20 will show you the next 20 and start=41 count=20 will show the last set of photos.

    This kind of an approach will keep your photos indexed as well. As far as I can remember, this capability does exist in Photonic for Flickr and Picasa at least, and with the next release it will be available for all providers.

    One downside to this capability is that it will not support search engine indexing

    Another downside I can see is with large albums. If you e.g. have hundreds of photos in one collection then the page load will get slower and slower as you show more photos (up to the point where it will become unusable)

    As far as I can remember, this capability does exist in Photonic for Flickr and Picasa at least, and with the next release it will be available for all providers.

    That’s awesome. Having both options available will be great!

    Thanks!

    Plugin Author Sayontan Sinha

    (@sayontan)

    Another downside I can see is with large albums. If you e.g. have hundreds of photos in one collection then the page load will get slower and slower as you show more photos (up to the point where it will become unusable)

    No, it wouldn’t. In fact performance is pretty good with this approach. As it is, even with albums containing several hundred photos, just the initial load is minimally affected. Once loaded, the lightboxes are rendered pretty quickly. If you put in the “Load More” feature, at any point of time you are controlling how many photos are being fetched, and even if you are fetching 100 photos at a time, it doesn’t take long. I have tested this out pretty comprehensively with a couple of Flickr albums, one with 355 photos, and one with over 1000 photos.

    Bear in mind that the “Load More” is a “lazy loading” feature, i.e. it only makes a call to the server when you click on “Load More”. If I set count=100 the initial call to the server when your page is loading will fetch only 100 photos. Companies such as SmugMug, Flickr, Zenfolio and Google have full-blown CDNs that are primed to deliver large numbers of photos to you, so even with 100 photos the speed and performance from their end are pretty good. Now, when you click on “Load More”, that will fetch the next batch of 100 photos. From the point of view of your user, this is a lot better than having to reload the page and re-fetch everything from your server (and from your photo provider), and unless you have a page with really badly written JS, there is no sluggishness.

    Also note that when you are displaying photos in a “square” or “circle” layout, it fetches thumbnails from the server, which are smaller images. Those load pretty quickly. Subsequently when you open an image in a lightbox, it fetches one full image at a time, which is again not a performance hit.

    Cool. I thought it’ll be implemented in a way that it would fetch also the previous photos every time you load more. Perfect. Thanks!

    Plugin Author Sayontan Sinha

    (@sayontan)

    @kristenphotos, @dflachbart,
    Please let me know if this can be closed now. I released version 1.60 that supports a “Load More” capability. See here for details.

    “Load More” works perfectly, thanks!!

    Though, I tried the “nextpage” approach, and the page breaks don’t seem to work, all photos are getting displayed on the same page… Could there be any WP settings that would prevent WP from paging?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Smugmug gallery, limit of 100 photos in gallery?’ is closed to new replies.