Random Block on Postnuke 0.714

joyfulcity
joyfulcity's picture

Joined: 2002-08-20
Posts: 3
Posted: Tue, 2002-08-20 10:42

Has anybody tried this on Postnuke 0.714? I've just started playing around with this block and it seems like it does not obey the permissions that I have set for my albums, there are certain albums which I have only allowed certain userids to view, however under the random block, it still displays these photos from these albums :sad:

Anyway will be looking at the codes, just hoping someone had encountered this before so I don't need to hack into the codes.

Thanks!

 
joyfulcity
joyfulcity's picture

Joined: 2002-08-20
Posts: 3
Posted: Thu, 2002-08-22 15:38

Oh after exploring around I found out that the random block codes were working great. However, I have found that the error I was getting because of permission settings for nested albums. eg I have a main album WORLD, than sub-albums AFRICA and ASIA. I set permissions for WORLD, such that only user ABC, DEF can view this album, however, once you set this permission for the main album, the sub-albums AFRICA and ASIA, do NOT also inherit this permission. Hence sub-albums AFRICA and ASIA can still be seen by EVERYONE group. Since the random block codes, looks for albums visible by EVERYONE, it still includes these supposedly hidden albums into the array for display.

My solution was go into sub-albums, AFRICA and ASIA and to remove the EVERYBODY group and set the proper permissions..... is the nested albums supposed to work this way?

Anyway, great work on gallery, it's working great for me :smile:

<!-- BBCode Start --><A HREF="http://www.joyfulcity.com" TARGET="_blank">Joyfulcity.com</A><!-- BBCode End -->

Quote:
Has anybody tried this on Postnuke 0.714? I've just started playing around with this block and it seems like it does not obey the permissions that I have set for my albums, there are certain albums which I have only allowed certain userids to view, however under the random block, it still displays these photos from these albums :sad:

Anyway will be looking at the codes, just hoping someone had encountered this before so I don't need to hack into the codes.

Thanks!