Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to create a webpage that allows the user to choose photos to then play in a slideshow. So one page with a library of images that the user can choose from to create a slideshow of their own, watch it and then be able to edit it/ change the images and watch again.
This mootools shopping cart [^]works great, but what code do I need to learn to be able to create the slideshow? I know a little PHP, MySQL but not enough to make this happen. Do I need Ruby or can the PHP, MySQL do this if I learn enough?

I know that this is an extensive project. I am not asking for a play by play necessarily (although that would be awesome) I'd love to be pointed in the right direction.

Any help would be much appreciated.

What I have tried:

HTML, CSS, Mootools, PHP. I thought about setting up zencart to use as the backend, but that seems like an out of the way work around. I've started learning Ruby but want to be sure I'm learning the right things in order to make this happen.
Posted
Updated 16-Apr-17 20:49pm
v2
Comments
[no name] 20-Sep-16 11:34am    
Search google for slideshow on a webpage and see how everyone else did it, then learn that.
Member 12750248 20-Sep-16 12:04pm    
I haven't seen this done. I want the users to be able to curate the slideshow. so that every slideshow would be different. So one page with a library of images that the user can choose from to create a slideshow of their own, watch it and then be able to edit it/ change the images and watch again.
[no name] 20-Sep-16 12:17pm    
Okay... I still don't see a specific question regarding your code here. Google the specific problem that you are experiencing and try that. "I don't know how to do my entire application" is not really a question. I would think that Ajax would be more suited to your application.

1 solution

So you know little about programming but you want to build complicated applications. You've got a lot of work to do, it can be done but it will take you time, a lot of frustration and to be honest...you'll probably give up. That is unless you truly want to learn and be good at programming.

So to answer your question, if what you want to do is in that link, then all you need is a javascript library (or you can roll your own if you are brave) such as jQuery or Mootools. To implement that link, all you need is javascript. To make it persist and save selections per user, that is where you need a server side language and a data layer (PHP and MySQL).

PHP and Ruby serve the same purpose in your instance. Both are considered server side in what you want to do. Pick one and go with it. PHP typically has a lower barrier to entry but really...figure out which one you like and run with it. I started with PHP...doesn't mean i liked it.

The other issue you need to address is being able to take a huge application and break it down into smaller pieces. If you can't do this, you will get discouraged and abandon your project, I guarantee it. Since you are new, don't look at this as implementing a shopping cart, break it down into pieces. You don't know how to code that well to begin with so the first thing you need to conquer is rendering something from mysql on a web page. So start there, learn how to connect to mysql from PHP. Then learn how to execute a sql query. Then learn how to display the sql query results using PHP in your HTML. It will take a while, but next thing you know you'll have half the functionality you need based on your sample link and you may have learned a few tricks along the way.

You mention that you thought about using zencart but you've chosen to try and create your own shopping cart. That right there is typical new developer mistake. Why are you reinventing the wheel? You are just going to create a buggy piece of software. Using Zencart (or an equivalent) you are selecting a battle tested piece of software that may still have issues, but it won't have issues like you would if you write it from scratch. There is an argument for build vrs "buy" but in your case, if this is going to be used in a production environment and given what little i know about your skills, I would recommend "buy" rather than build for you.

The last tidbit I'll share is that if you tackle this project with little knowledge of programming with the idea you are going to create a shopping cart like functionality in a short amount of time you are setting yourself up for failure.
 
Share this answer
 
Comments
Member 12750248 20-Sep-16 12:23pm    
This is very helpful. Thanks so much for your insight and thoughtful answer. Much appreciated!
David_Wimbley 20-Sep-16 12:27pm    
Glad it was helpful. If you get into it and have issues, feel free to come back with a clear explanation of your problem and code samples that people can try and replicate your issue with. I'm sure if you do that, you'll get some worthwhile help from someone on here.
Member 12750248 9-Nov-16 13:51pm    
So I've tried a few things. I feel like this shouldn't be that complicated. I've been trying a different approach but still unsure about how to make the dynamic update happen. See what you think if you have the time. Thanks!
http://www.codeproject.com/Questions/1154765/How-to-load-dynamic-elements-into-lightgallery-js
David_Wimbley 9-Nov-16 18:38pm    
Ill take a look in a bit
Member 12750248 10-Nov-16 13:21pm    
am I even close here? http://codepen.io/ssab/pen/QGyKVO

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900