• Resolved pbnet

    (@pbnet)


    I can see all albums listed, but when I browse the album, I don’t get all the photos in the album.Example: the album has 386 items when I see it directly in Google Photos, but I only see 20 photos by using the Photonic Plugin on my site.
    Could you give me any clues ?

    Thanks.

    The page I need help with: [log in to see the link]

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

    (@sayontan)

    When you create a gallery, on the last screen before your gallery block / shortcode is generated, there is an option to specify how many photos you want to show. You can provide the count over there.

    Note that you have to enable the display of an overlaid popup for this to work. See the last example here.

    • This reply was modified 5 years, 10 months ago by Sayontan Sinha. Reason: Added clarity
    Thread Starter pbnet

    (@pbnet)

    Thanks a lot Sinha.
    Worked like a Charm.

    Quick questions:
    1) is there a way to make the overlay not come over the page’s already existing background photos?

    Example: https://pbnet.ro/forkim/exampleissue.png

    2) Since I’m using CloudFlare, the HTTP request is limited, and, when I edit the page containing the Photonic album, I get a “request too large” error, although everything works fine in “view” mode. Is there a workaround ?
    Example: https://pbnet.ro/forkim/REQTooLarge.PNG

    Thanks a lot,
    Andrei

    Plugin Author Sayontan Sinha

    (@sayontan)

    For #1 you can resolve it with an addition to Appearance → Customize → Additional CSS in your WP dashboard:
    .photonicModalOverlay { z-index: 10; }

    For #2 I have no idea – sorry. I have never used Cloudflare and I am not familiar with this error either. How were you able to create the gallery with this?

    Thread Starter pbnet

    (@pbnet)

    Thanks.

    For #1: It’s a bit better, but when the gallery is opened at a certain part of the screen (e.g. without scrolling to the “Photo Gallery” text, the “X” close sign is not visible anymore:

    https://pbnet.ro/forkim/NOK1.PNG

    If you do scroll to “Photo Gallery” text (so the top of the page is barely visible), everything works, and the “X” close sign is visible.

    https://pbnet.ro/forkim/OK1.png

    For #2: it just works (guess the POST request is shorter than the GET request… just a supposition. I’ll have to run a Fiddler trace to be sure).

    Best regards,
    Andrei.

    Plugin Author Sayontan Sinha

    (@sayontan)

    For #1: It’s a bit better, but when the gallery is opened at a certain part of the screen (e.g. without scrolling to the “Photo Gallery” text, the “X” close sign is not visible anymore:

    Sorry, I should have checked this. If you set z-index to 100 instead of 10 it will be fine.

    Regarding #2, I am reading through CloudFlare’s documentation, and it says that if the request URI is larger than 32KB you will get this error. That is a very, very large number! For plain-text URLs each character is 1 byte, and 32KB is 32,768 characters. That is huge, and Photonic doesn’t have GET URLs that are so long. So it would be interesting to see what the actual request is.

    Thread Starter pbnet

    (@pbnet)

    Hello again.
    For #1: Fixed !!! – Thanks a lot !!!
    For #2:
    Here is the request: https://pbnet.ro/forkim/REQUEST.txt
    And the response: https://pbnet.ro/forkim/RESPONSE.txt
    Exported from Fiddler while the error occurred.

    Thanks,
    Andrei

    Plugin Author Sayontan Sinha

    (@sayontan)

    OK – how many albums do you have, and what exactly are you trying to show? It looks like you have selected 186 albums in your filter!!! Each album has an ID length of 76 characters, and selecting 186 albums automatically adds more than 14000 characters (!!), which then get encoded to make it bigger.

    Here are some basic rules:

    1. If you want to show all albums, select the “Automatic all (will automatically add new albums)” option, not the “Selected Albums” option. This way you will not have to make changes to the shortcode if you add new albums.
    2. If you have 200 albums and and want to show 186 among them, it would make sense to select “All except selected albums”, and select the 14 ( = 200 – 186) that you want to exclude, instead of adding all the 186 that you want to include.

    Note that the front-end and editor make the same calls to Google, but here the problem is occurring before you even get to Google – by selecting 186 albums the initial URL itself is so big that it is not even reaching Photonic to make a call to Google.

    Thread Starter pbnet

    (@pbnet)

    It’s way over 300 albums, and I’ve selected all except 1 album (which contains some hangouts photos backups).
    What would you recommend in this case ?

    Thanks,
    Andrei.

    Plugin Author Sayontan Sinha

    (@sayontan)

    I would recommend the second option. To quote from the above:

    If you have 200 albums and and want to show 186 among them, it would make sense to select “All except selected albums”, and select the 14 ( = 200 – 186) that you want to exclude, instead of adding all the 186 that you want to include.

    In your case you will pick “All except selected albums”, and select just the one you want to exclude.

    In terms of the shortcode it would be something like this:
    [gallery type='google' view='albums' filter='comma-separated-ids-to-exclude' filter_type='exclude']

    Thread Starter pbnet

    (@pbnet)

    Works great !!!

    Thanks a million for all your help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Not getting all album photos’ is closed to new replies.