Really Need Help needed with permissions/password module

Dozza
Dozza's picture

Joined: 2007-08-28
Posts: 112
Posted: Wed, 2008-09-24 20:35

The site I need some help rectifying the functionality of is at http://www.milliepilkington.co.uk/

I styled and configured this site last year and got it functioning exactly how the client wanted - however something has been changed in the backend recently by another 'site admin' and I am trying to get it back functioning how it was! Trouble is a year is a long time and I've lost touch with G2 a bit.

This is how it was set up and functioning:
http://www.milliepilkington.com/index.htm is a dummy home page to hide the root G2 page at http://www.milliepilkington.com/main.php. This is still OK.

The top right navigation, which still works fine, is a custom css menu I added: Children, Adults, Wedding & Other link to 'portfolio' G2 albums. These have no sub-albums, and all users/guest can view all items and resizes. These are for viewing only and not for puchasing/ordering/downloading etc.

The Client link is different from the others though. This links to a parent album (Clients) that has numerous client sub-albums (children), one for each of her clients that she has photographed. The Client sub-albums are all enabled with 'checkout' and 'checkOut via email' modules so that each client (and their friends/family) can view their photoshoot and send orders to the photographer via email. She then processes the order and payment is done 'manually'. A decision was made early on to avoid the use of 'user registration' and make use of a single password (password module) to protect each client sub-album. This afforded the individual clients privacy of their photos, and also offered a single password that the photographer could distribute to the specific client, which they could then distribute to their family/friends to access the specific photoshoot. I customised 'Checkout Via email' to allow 'guests' with the correct password to input their specific contact/address details during the checkout process, rather than the order being linked to a 'registered user' details.

OK. The parent Client album should let 'everybody' group see all sub-album item thumbnails - but when they click on a client sub-album thumbnail they should be prompted for the album password. On entering the correct password, they then see all the thumbnails within the client sub-album and can view resizes and add to cart etc.

The photographer uploads new client sub-albums of client photoshoots to the parent Clients album using Gallery Remote - she then assigned a password to the album (Edit album>General>password protection) and informed the client of it. These new sub-albums uploaded via G.Remote were all created/inherited? the correct album/theme set up (i.e. shopping cart info & add to cart blocks in the sidebar, view resizes available, checkout via email enabled).

This was all working fine.... until....

Now all the client sub-albums are viewable by 'everybody' even though passwords were assigned to them all over the course of last year. On testing new albums uploaded via G.Remote, new client -sub albums are not visible by 'guest/everybody' and the permissions have to be updated manually (add [core]ViewItem) so they can be seen. This also conflicts with what the password module tells you

Quote:
Assigning a password will remove "View item" permission for guest users to ensure guests must enter the password. Note that any other users that already have "View item" permission will not need to enter the password. Remove this permission for any users or groups that should require the password. Make sure to remove only "View item" permission (see next section).

I also have to add the Checkout blocks to the sidebar, before assigning the password to the album. The password is then NOT asked for???

I'm concerned about changing permissions on all the existing sub-albums that have password protection already enabled, as I have experience that this corrupts the album access and it has to be re-uploaded (see http://gallery.menalto.com/node/73367). I don't want to tell the client she has to do this!

I'd REALLY appreciate some assistance on getting this Clients album (and sub-albums) back to how it was and that new client sub-albums, uploaded via G.Remote, inherit the correct client sub-album settings and only need a password assigning.

Anyone?

Quote:
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.8 cgi
Webserver = Apache/1.3.34 Ben-SSL/1.55
Database = mysqlt 5.0.51a-log, lock.system=database
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, Thumbnail, Gd, jpegtran, SquareThumb
Acceleration = none, none
Operating system = Linux infong 2.4 #1 SMP Wed Sep 26 00:19:50 CEST 2007 i686 GNU/Linux
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.18
Rows in GalleryAccessMap table = 4139
Rows in GalleryAccessSubscriberMap table = 2818
Rows in GalleryUser table = 14
Rows in GalleryItem table = 2815
Rows in GalleryAlbumItem table = 31
Rows in GalleryCacheMap table = 0