ZenphotoCMS Forum
printAlbumMenu functions also print unpublished/protected albums - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: printAlbumMenu functions also print unpublished/protected albums (/thread-10400.html)



printAlbumMenu functions also print unpublished/protected albums - tosca - 2012-09-11

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.




printAlbumMenu functions also print unpublished/protected albums - acrylian - 2012-09-11

It does only print the unpublished ones if your are loggedin with the appropiate rights.




printAlbumMenu functions also print unpublished/protected albums - tosca - 2012-09-11

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).




printAlbumMenu functions also print unpublished/protected albums - tosca - 2012-09-11

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?




printAlbumMenu functions also print unpublished/protected albums - sbillard - 2012-09-11

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.




printAlbumMenu functions also print unpublished/protected albums - tosca - 2012-09-12

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.




printAlbumMenu functions also print unpublished/protected albums - acrylian - 2012-09-12

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).




printAlbumMenu functions also print unpublished/protected albums - vincent3569 - 2012-09-12

Quote: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.




printAlbumMenu functions also print unpublished/protected albums - acrylian - 2012-09-12

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.




printAlbumMenu functions also print unpublished/protected albums - tosca - 2012-09-12

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.




printAlbumMenu functions also print unpublished/protected albums - sbillard - 2012-09-12

The option prevents the user from changing his credentials such as password...




printAlbumMenu functions also print unpublished/protected albums - vincent3569 - 2012-09-17

hi,

what option are you speaking about ?




printAlbumMenu functions also print unpublished/protected albums - sbillard - 2012-09-17

The one acrylin mentions, of course.