Programatic Access to Gallery "Privacy"
largelylivin
Registered Users Posts: 561 Major grins
I cannot see how the Privacy switch on galleries is implmented.
Can it be set programmatically from JS? I was think that I could implement a JS routine that uses a list of 2007 galleries to make them unlisted in order to hide from users upon request.
Can it be set programmatically from JS? I was think that I could implement a JS routine that uses a list of 2007 galleries to make them unlisted in order to hide from users upon request.
Brad Newby
http://blue-dog.smugmug.com
http://smile-123.smugmug.com
http://vintage-photos.blogspot.com/
Canon 7D, 100-400L, Mongoose 3.5, hoping for a 500L real soon.
http://blue-dog.smugmug.com
http://smile-123.smugmug.com
http://vintage-photos.blogspot.com/
Canon 7D, 100-400L, Mongoose 3.5, hoping for a 500L real soon.
0
Comments
Look under "security & privacy"
http://blue-dog.smugmug.com
http://smile-123.smugmug.com
http://vintage-photos.blogspot.com/
Canon 7D, 100-400L, Mongoose 3.5, hoping for a 500L real soon.
bump
http://blue-dog.smugmug.com
http://smile-123.smugmug.com
http://vintage-photos.blogspot.com/
Canon 7D, 100-400L, Mongoose 3.5, hoping for a 500L real soon.
bump
http://blue-dog.smugmug.com
http://smile-123.smugmug.com
http://vintage-photos.blogspot.com/
Canon 7D, 100-400L, Mongoose 3.5, hoping for a 500L real soon.
I don't see any easy way to do what you are trying to achieve.
SmugMug API Developer
My Photos
Gallery naming convention: the title of year specific galleries begin with "2007" or "2008". Non-year specific don't start with a year so wont be effected. If I'm a little more cleaver I could make it work for any year.
In JS On Load:
1. I cycle through every gallery and attach an element either: year2007 or year2008 according to title naming convention. Both are initially display:display.
Using YUI event:
1. Create a three way button (2007,2008,all)
3. when the event runs I set the year2007 and year2008 switches accordingly to:
a. event 2007: change year2008 to display: none; and year2008 to display: display
b. event 2008: change year2007 to display: none and year2008 to display: display;
c; event ALL: change year2007 and year2008 to display: display.
I'm thinking this will work but I'm no expert. If you say it will work then I'll hammer it out.
http://blue-dog.smugmug.com
http://smile-123.smugmug.com
http://vintage-photos.blogspot.com/
Canon 7D, 100-400L, Mongoose 3.5, hoping for a 500L real soon.
bump
http://blue-dog.smugmug.com
http://smile-123.smugmug.com
http://vintage-photos.blogspot.com/
Canon 7D, 100-400L, Mongoose 3.5, hoping for a 500L real soon.
bump
http://blue-dog.smugmug.com
http://smile-123.smugmug.com
http://vintage-photos.blogspot.com/
Canon 7D, 100-400L, Mongoose 3.5, hoping for a 500L real soon.
bump
http://blue-dog.smugmug.com
http://smile-123.smugmug.com
http://vintage-photos.blogspot.com/
Canon 7D, 100-400L, Mongoose 3.5, hoping for a 500L real soon.
SmugMug API Developer
My Photos