printAlbumMenu functions also print unpublished/protected albums

I would like to use the printAlbumMenuList() function in my theme, but it seems to print all the albums in the gallery, even those that are unpublished or protected; same goes for the printAlbumMenuJump() function apparently.
What must I do in order to prevent users to see albums they are not allowed to browse?

Thanks for your advice.

Comments

  • acrylian Administrator, Developer
    It does only print the unpublished ones if your are loggedin with the appropiate rights.
  • Hmmm... I just noticed that the unpublished albums are also displayed in the main block; in my local gallery that is, because everything works fine on the online gallery.

    Is there a parameter somewhere that could make this difference? I don't remember having set both galleries differently (in fact, one is originally copied from the other).
  • I've found a difference between the 2 galleries, though I don't really understand what this means; in the users tab of a gallery admin I have this message:
    - local gallery: The Zenphoto_Authority object supports a higher version of user rights than currently selected. You may wish to migrate the user rights to gain the new functionality this version provides.
    Migrate rights
    - online gallery: You may wish to revert the user rights Zenphoto_Authority to version 3 for backwards compatibility with prior Zenphoto releases.
    Revert rights

    Any advice on what I should do?
  • The difference in the authority versions features is that with the most current you can create users who cannot change their own credentials.

    On the other hand, the values stored for all these rights are different among authority versions, and the newer version may not work if you decided to install an older version of Zenphoto that did not know of it.

    So, as long as you are satisfied with the version of Zenphoto you are running you can upgrade the version of the aurhority if you want the new feature. But you do not need to do anything. At some point Zenphoto will upgrade the version when it no longer supports the older one.

    As for your other problem, carefully look at the publish state of the items. That is probably where they are different.

    If you want to see you gallery the way a normal user sees it use the `show_not_loggedin` plugin. But be aware. It does just what it says--makes it look like you are not logged in when you view the front-end of your gallery.
  • Thanks for your explanation, things are clearer now.

    It's my mistake for the published/unpublished album: when I imported the whole albums tree from one gallery to the other, I didn't realize I had to re-specify each album status! Sorry for that disturbance.

    I will have a look at the `show_not_loggedin'; it might be handy for the near future.
  • acrylian Administrator, Developer
    If you import via FTP no data is carried over. If you want to do that you need to use the database backup tool on the admin overview (instructions to use that on the user guide's installation article).
  • vincent3569 Member, Translator
    The difference in the authority versions features is that with the most current you can create users who cannot change their own credentials.
    acrylian, could you explain how I can do that ?
    I want to create generic login and I don't want that users can modify some information as password for example.
  • acrylian Administrator, Developer
    I think only give that user access rights and no manage rights (haven't used this feature myself yet). But sbillard can surely answer more specifially.
  • Thanks for your information, acrylian.
    I'm currently working on my theme and the gallery is not in production yet; I won't be copying albums to-and-fro when it's live.
  • The option prevents the user from changing his credentials such as password...
  • vincent3569 Member, Translator
    hi,

    what option are you speaking about ?
  • The one acrylin mentions, of course.
Sign In or Register to comment.