Simple way to direct a customer to a gallery that hasn't been created yet
BeachBill
Registered Users Posts: 1,311 Major grins
I'm working on setting up a simple way to allow a customer to find the gallery containing the images from their photo session. I thought NiceNames would be perfect for this because I could write down a "session ID" in the form of "SessionNameSessionDate", for example "Smith091201" or "eagle100215" on the back of my card and hand it to them at the end of the photo session.
1) Take photos
2) Give them card with session ID
3) They go to my website (external from Smugmug)
4) Enter the session ID in the form I provide
5) Instantly redirects them to their unlisted gallery on Smugmug
The Session ID and NiceName would be identical. The script on my page would do a simple redirect to www.mysmugsite.com/sessioncategory/[Session ID entered in my form]
Unfortunately session ID's do not work with unlisted galleries so this very easy to maintain simple just won't work.
Instead I will need to manually maintain my own external database or lookup table that maps a session ID to a smugmug gallery unique URL.
Can anyone think of an easier (automatic) way to do this (like what the nicenames would give me).
P.S. It would be nice if there was just an option in the Smugmug Control Panel / Settings / Site Privacy and Security that would ask "Allow Nicenames for unlisted galleries"
1) Take photos
2) Give them card with session ID
3) They go to my website (external from Smugmug)
4) Enter the session ID in the form I provide
5) Instantly redirects them to their unlisted gallery on Smugmug
The Session ID and NiceName would be identical. The script on my page would do a simple redirect to www.mysmugsite.com/sessioncategory/[Session ID entered in my form]
Unfortunately session ID's do not work with unlisted galleries so this very easy to maintain simple just won't work.
Instead I will need to manually maintain my own external database or lookup table that maps a session ID to a smugmug gallery unique URL.
Can anyone think of an easier (automatic) way to do this (like what the nicenames would give me).
P.S. It would be nice if there was just an option in the Smugmug Control Panel / Settings / Site Privacy and Security that would ask "Allow Nicenames for unlisted galleries"
0
Comments
Nicenames do work in unlisted galleries.
Suport Hero
Smugmug
http://help.smugmug.com/
Here's the nicename URL to an unlisted gallery of mine. Try going there (when you are not logged in or when you don't have any Smugmug employee superpowers): http://jfriend.smugmug.com/Other/Color-Calibration-Images-old. You will just end up at the category level, not at the gallery.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
From the NiceNames release notes:
The problem with this is that I do know what the NiceName will be while I'm doing a photo shoot, but I don't know what the albumID_Key will be. Also if I did know the albumID_Key (say if I created the gallery ahead of time) I still wouldn't want to give it out because it's a meaningless (to the client) string of letters, numbers and an underscore that I know the client will mess up when typing it in.
As I said earlier... It would be nice if there was just an option in the Smugmug Control Panel / Settings / Site Privacy and Security that would ask "Allow NiceNames for unlisted galleries? Yes/No"
I'm going to look into the API to see if I can build something that can retrieve the albumID_Key based on me giving it a NiceName URL to a gallery, or if I can't do that, maybe I can use the API to pull down *all* gallery names/URLs from my account and grep for the NiceName match then redirect to the matching URL. As I said I want to automate this process and that little option in the control panel would save me a lot of time...
If you don't really need the true privacy of unlisted galleries (which it sounds like you do not), then perhaps a different solution is in order. How about not making them unlisted and just hiding them from your normal web display with CSS? If the only goal of yours is that people don't just casually browse to them on the web, you can achieve that by hiding them with CSS. You can either hide an entire category (if displaying by category) or individual galleries (if displaying by gallery) or both.
Customization #14 here gives you the ability to hide things.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
However based on your comments I came up with another solution, that also nicely solves another issue I knew I was going to have--what if someone tries viewing a gallery that doesn't exist...
I am using a bit of javascript to redirect anyone (not logged in) who tries viewing the category page back to my "enter your session ID" page, this logic also redirects them back to my "enter your session ID" page when they try viewing a gallery that doesn't exist because Smugmug automatically redirects to the category page.
If anyone is interested, here is the logic (code is in my Top Javascript and it is executed from the Custom Header.
I may or may not hide the category from my category list. It might be useful if it stays visible.
Thanks again John for sparking the idea!
Dave
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
The simple system I've set up for these photo sessions is completely automatic. I only have to create a gallery and specify the NiceName that I gave the customer. The customer enters the nicename in the form on my website and their gallery is displayed.