Ning Developer Network

Hey everyone; we just posted a hack that adds a dropdown menu of albums on your photo detail page, and if you choose the option, adds it to your album automatically. While the interface is a bit rough, it should give developers an idea of the APIs we use to display the album listings as well as the POST url and parameters we use to add a photo to an album. You can take a look at the code here.

[UPDATE: Due to recent changes we've made to the Tracking and Analytic box, this tutorial is no longer available. I've removed the tutorial and closed this discussion.]

Share

Replies are closed for this discussion.

Replies to This Discussion

Added this to my site through your instructions and the add to album link shows but has this error:
'there was an error adding this to the album'

one of the photos is here...

http://www.unsignedchart.com/photo/photo/show?id=1683114%3APhoto%3A...

keith
When adding a photo to an album we keep getting a < script error.
Does the < script require amending?
Thank you - Alex
Hello Ernie?
Has this bug been fixed yet -?

Thanks - Alex
Hi Alex (and everyone!) - a new version of the code has recently been updated. I added a couple of basic checks, including having the dropdown not display if there are no albums, and the removal of a javascript alert(); command which was for testing.
there is still a bug into the code - receive the following (see attached file) alert when I click on the ADD to album button
Attachments:
I'm getting the same thing?
Keith
Hi Jef and Keith,

You're right, there was an additional alert bug when adding a photo to an album. I went ahead and copy & pasted a new version of the Javascript in the article. Thanks for letting us know. -Ernie
Aaack, sorry about. My copy and paste left out a "{" in the Javascript code. Try now. Sorry for all the inconvenience, you guys.
Oof! Okay, just updated another version of the code... try now.
Thanks Ernie

Your last update working perfectly

JEF
Excellent, many thanks
Keith
Hi Ernie

works perfect and this makes adding pictures to albums (on the go) so much more fun and fast.
One little thing - just to let you know - when I use Safari on the Mac I see the pop-up but not the "Add" button. No problem with firefox.

Thanks for this hack - really cool

fom - fit older men

RSS

© 2009   Created by Ning Developer Admin

Badges  |  Report an Issue  |  Privacy  |  Terms of Service