Unpublish album problem

Hi All,

I have problem when want to unpublish album it's still visible in public even if I logout from admin panel.

Can you please tell me what funcion in public part of script in checking is "show" 0 or 1

Thanks,
Nikola

Comments

  • nikola Member
    Ok, I fixed it:
    in functions.php
    in function sortAlbumArray() just add WHERE 'show'='1'
  • acrylian Administrator, Developer
    Actually an album should be unpublished if you set it to unpublish in the admin edit page of that album.

    If that is not so and you are literally think that is a bug we would need some more info. Additionally some browser do sometimes not log out correctly (exactly, don't clear the cookies correctly, Safari does that sometimes).
  • nikola Member
    Ok.
    I try first to change status of album in admin panel and I checked in database that show is set to 0, so admin panel is working.
    But in public site album is always visible.
    I cleared cookies from firefox and also open site in opera and IE that didn't have cookies from admin panel.
  • nikola Member
    acrylian, can you please tell me where is function that checking in public album is album published or not?

    one more question:
    how to turn on/off cache ?
  • acrylian Administrator, Developer
    Sorry, I can't reproduce the issue you are reporting neither with Zenphoto 1.1.5 nor the nightly build. You might try enabling gallery sessions in admin options -> gallery configuration (at the bottom).

    The cache can't be turned off. Why do you want to do that? Turning off would mean that Zenphoto would process each thumbnail and sized image every time. That would add a lot of overhead and make your site slow.
  • nikola Member
    But can you please tell what function is checking is album published or not?
    It's not easy for me to search all files and functions.

    Thanks,
    Nikola
  • trisweb Administrator
    Nikola, if it's a real bug here, we should try to find it and fix it in the Zenphoto codebase, not just fix it once for you.

    So, we would appreciate it you would work with us to debug this.

    But, if you do manage to fix it, maybe you can tell us what's wrong. So, look on `template-functions.php` line `926`, function `getAlbumThumbImage`, and the same on line `982` for custom sizes. It's possible that you just don't have the stylesheet setup correctly... but you could also modify it to just skip the album completely.

    Can we see your site? It might help diagnose the problem.
  • I've never seen an album marked unpublished while logged out. I have 11 albums but only 1 is public. I only see the 1 when logged out. Mac Safari, Mac Camino, Mac Firefox. And, I don't always remember to clear cookies.
Sign In or Register to comment.