Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

How can I make a user-upload for a lightbox?

I'm building a website for a local tattoo shop. Everything else on the website is finished, but they want me to set it up so that they can easily upload and delete their own photos without having to call me every time or having to go into the code. I've made an employee login, but how can I make a lightbox CMS so that they can just point and click to add and remove images to their individual galleries?

Or if I duplicate the gallery, what JS functions would I use to remove images or add images and the required HTML for the CSS to apply without having to go into the code?

1 Answer

Brian Holland
Brian Holland
3,508 Points

Easy: Set them up with a twitter account and link to their twitter account from the website.

Medium: WordPress Plugins

Hard: Password protected site to alter an 'images' folder

I'm going for the hard method. They're trying to steer clear of social media because the owner doesn't like it. I've got everything set up, but once they login, what methods would I use to make the gallery editable?