• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Support Simple way to direct a customer to a gallery that hasn't been created yet

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Oct-01-2009, 09:18 PM
#1
BeachBill is offline BeachBill OP
Hurry up and wait
BeachBill's Avatar
Simple way to direct a customer to a gallery that hasn't been created yet
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"
__________________
Bill Gerrard Photography - Facebook - Interview - SmugRoom: Useful Tools for SmugMug
Old Oct-02-2009, 08:08 AM
#2
phototristan is offline phototristan
SmugMug Support Hero
phototristan's Avatar
Hi,

Nicenames do work in unlisted galleries.
__________________
Tristan
Suport Hero
Smugmug
http://help.smugmug.com/
Old Oct-02-2009, 08:35 AM
#3
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by phototristan
Hi,

Nicenames do work in unlisted galleries.
They don't appear to work in unlisted galleries when I try them and as I understand it, they are disabled on purpose because unlisted galleries are supposed to require both album number and key for privacy reasons.

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.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Oct-02-2009, 10:48 AM
#4
BeachBill is offline BeachBill OP
Hurry up and wait
BeachBill's Avatar
Quote:
Originally Posted by phototristan
Hi,

Nicenames do work in unlisted galleries.
From the NiceNames release notes:

Quote:
If the gallery is Unlisted, it requires the albumID_Key to be included in the URL. That prevents someone from “guessing” the URL and finding an Unlisted gallery.
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...
__________________
Bill Gerrard Photography - Facebook - Interview - SmugRoom: Useful Tools for SmugMug
Old Oct-02-2009, 10:59 AM
#5
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by BeachBill
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.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Oct-02-2009, 12:18 PM
#6
BeachBill is offline BeachBill OP
Hurry up and wait
BeachBill's Avatar
John, you got me thinking. I don't want to hide via CSS because the categories and galleries would still be visible to anyone viewing the source. Also I don't want the other galleries accessible to people viewing their own gallery within the Sessions category.

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.

Code:
function redirectCategory() { // called from custom header
// prevent access to a category page; redirecting user to alternate page

  if (YD.hasClass(document.body, 'loggedIn')) // don't run when logged in
    return;

  re = /my.smugmugdomain.com\/CategoryName$/i; // case insensitive
  tmp = window.location.href;
  if (re.test(tmp)) {
    window.location.href = "http://url.to/somepage.html";
  }

}
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!
__________________
Bill Gerrard Photography - Facebook - Interview - SmugRoom: Useful Tools for SmugMug
Old Oct-02-2009, 06:25 PM
#7
pilotdave is offline pilotdave
Major grins
I'd use Vanity URLs (or whatever they call em). Javascript redirects that give simple names. It's documented in the customization forum somewhere... maybe someone can post a link.

Dave
Old Oct-02-2009, 06:46 PM
#8
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by pilotdave
I'd use Vanity URLs (or whatever they call em). Javascript redirects that give simple names. It's documented in the customization forum somewhere... maybe someone can post a link.

Dave
Vanity URLs.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Oct-02-2009, 07:59 PM
#9
BeachBill is offline BeachBill OP
Hurry up and wait
BeachBill's Avatar
Yes, I've got lots of vanity URLs, been using them for a few years now, but they are a manual process (plus they bloat the code that has to be read by a browser every time someone views a page, whether they are using them or not).

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.
__________________
Bill Gerrard Photography - Facebook - Interview - SmugRoom: Useful Tools for SmugMug
Tell The World!  

Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump