Ning Developer Network

Ernie H.

New Hack: Add an Album Dropdown to a Photo Page

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.

Reply to This

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

Reply to This

When adding a photo to an album we keep getting a < script error.
Does the < script require amending?
Thank you - Alex

Reply to This

Hello Ernie?
Has this bug been fixed yet -?

Thanks - Alex

Reply to This

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.

Reply to This

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:

Reply to This

I'm getting the same thing?
Keith

Reply to This

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

Reply to This

Aaack, sorry about. My copy and paste left out a "{" in the Javascript code. Try now. Sorry for all the inconvenience, you guys.

Reply to This

Oof! Okay, just updated another version of the code... try now.

Reply to This

Excellent, many thanks
Keith

Reply to This

Thanks Ernie

Your last update working perfectly

JEF

Reply to This

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

Reply to This

  • 1
  • 2

RSS

Documentation & Tips

© 2008   Created by Ning Developer Admin

Badges  |  Report an Issue  |  Privacy  |  Terms of Service