Member
Member
tosca   2012-09-11, 18:00
#1

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.

Administrator
Administrator
acrylian   2012-09-11, 19:19
#2

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

Member
Member
tosca   2012-09-11, 20:15
#3

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

Member
Member
tosca   2012-09-11, 21:30
#4

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?

Member
Member
sbillard   2012-09-11, 22:41
#5

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.

Member
Member
tosca   2012-09-12, 06:26
#6

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.

Administrator
Administrator
acrylian   2012-09-12, 08:21
#7

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

Member
Member
vincent3569   2012-09-12, 12:23
#8

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.

Administrator
Administrator
acrylian   2012-09-12, 12:40
#9

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.

Member
Member
tosca   2012-09-12, 20:41
#10

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.

Member
Member
sbillard   2012-09-12, 23:23
#11

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

Member
Member
vincent3569   2012-09-17, 18:45
#12

hi,

what option are you speaking about ?

Member
Member
sbillard   2012-09-17, 19:33
#13

The one acrylin mentions, of course.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.