URL Link format has changed?
DTMPhotos
Registered Users Posts: 47 Big grins
Ok...First, I did try to search but my brain is a bit fried and I couldn't figure out the right combo to narrow down to a list worth digging through so I apologize in advance if this has been covered.
I use some customized code to offer some products that SM doesn't carry (acrylic cutouts) which I grabbed from someone (Andy?) a few years ago. It passes the URL of the image that a customer wants ordered to paypal. Now the URL format seems to have changed and when I get the link in the paypal form, I can't use it to link to the image (and order the correct one).
Here's what I'm using now:
function setPaypalForm(form) {
urlToImage = webServer + "/gallery/" + AlbumID + "/1/" + ImageID + "/Large";
form.item_name.value = urlToImage;
}
Can someone tell me what I need to do to pull the new format URL's?
Thanks!!!!
Derek
DTM Photos
I use some customized code to offer some products that SM doesn't carry (acrylic cutouts) which I grabbed from someone (Andy?) a few years ago. It passes the URL of the image that a customer wants ordered to paypal. Now the URL format seems to have changed and when I get the link in the paypal form, I can't use it to link to the image (and order the correct one).
Here's what I'm using now:
function setPaypalForm(form) {
urlToImage = webServer + "/gallery/" + AlbumID + "/1/" + ImageID + "/Large";
form.item_name.value = urlToImage;
}
Can someone tell me what I need to do to pull the new format URL's?
Thanks!!!!
Derek
DTM Photos
0
Comments
http://blogs.smugmug.com/release-notes/2008/02/08/smugkeys-unlisted-and-lock-it-down/
Holler with questions, okay?
Portfolio • Workshops • Facebook • Twitter
Andy - Sorry for being dense...So how do I pass this new "with keys" URL? I'm not using "lock it down" but I'm not sure how to pass the correct image URL to PayPal so that I can easily figure click via the link to the image being ordered. Right now I have to manual decode the url gallery number and image number. Tedious to say the least...
D.
http://www.smugmug.com/help/picture-sharing
http://www.smugmug.com/help/picture-sharing-links
Portfolio • Workshops • Facebook • Twitter
If it helps, here's a link to a gallery so you can see the buttons for ordering and the code above shows how they currently capture the URL:
http://www.dtmphotos.com/gallery/3737795_QCheF/1/215216435_CZscR#215216435_CZscR
i don't know the exact variable - post in the API Hacks forum, the guys there will know.
I'll also try and get someone to come here and post.
Portfolio • Workshops • Facebook • Twitter
Any chance SM will expand their gift base...These acrylic cutouts are the rage with my clients (especially the ornaments at the holidays)...
D.
Portfolio • Workshops • Facebook • Twitter