1) animasanaGroup: Members Posts: 3Joined: 19 Aug 2006Location: Geneva, SwitzerlandIP: 89.217.--.--
Posted:
Hi there, I was considering how this script may be expanded and become more easily used, with less code. I am, unfortunately, not a coder, but still love to think up ideas that seem logical, then leave the logic to those who can code! Here is my idea:
1. Store the images in an XML file with one of the child nodes being the "id". That way, the photos album/albums can be updated/created just by updating an XML file and adding the "base script" into the page you want to use.
2. It may even be possible in the future to add a php file upload option which uploads your files to the server and auto-creates the XML file!
Anyhow, I dont know how keen you are on the idea, but I thin it would make a great addition to the photo album. All the best!
Stu.
2) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 203.109.--.--
Posted:
These are probably both better done server-side...
1) That's be simple with PHP, pull in an XML file and convert ir to UL/LI for the script. To do it on the client side would mean building in an AJAX library which I feel is unneccessary bloat. Plus, having the images in a normal list means that old browsers can see 'em, too.
2) Er... that's a fine idea, but there are a lot of PHP uploader scripts out there already you can download and install! I don't see the need to write another :).