Reply to topic  [ 5 posts ] 
Galleria - Loading a folderful of images 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5151
Location: /dev/tty0
Reply with quote
Hullo all,

I'm building a website in Flux, and I'm using the Galleria action (basically just adds in the basic code and CSS for galleria).
Now, I have 93 items to put into one of these galleries and I don't fancy putting them in one by one. Surely there must be a way to go "oi! Just go handle this folder!" :?:
The structure of files are as follows
/galleries
/galleries/myFirstGallery.html
/galleries/images
/galleries/images/myFirstGallery
/galleries/images/myFirstGallery/[lots of image files].png
/galleries/images/myFirstGallery/thumb/[corresponding thumbnails]_thumb.png

I don't suppose anyone could lend a hand?


Cheers,
Ben


Mon Feb 20, 2012 7:58 pm
Profile WWW
Site Admin
User avatar

Joined: Fri Apr 24, 2009 6:12 am
Posts: 7011
Location: Wiltshire
Reply with quote
I'm probably missing something here. Why not just ftp a load of them into the site? or if its local copy and paste. :?

_________________
<input type="pickmeup" name="coffee" value="espresso" />


Tue Feb 21, 2012 7:05 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5151
Location: /dev/tty0
Reply with quote
No. the way the gallery works is you do something like this:
Code:
<a href="images/myFirstGallery/img1.png"><img src="images/myFirstGallery/thumb/img1_thumb.png" /></a>

Or I can use JSON notation (not that I've any idea what that is!)
But rather than adding that for each of the 93 images, there must be a way through either PHP or (preferably) JavaScript to just go and get all of the images from the folders?


Tue Feb 21, 2012 11:16 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:58 pm
Posts: 8767
Location: behind the sofa
Reply with quote
Found a couple of things that might be some help:

very complete php script that generates a nice slideshow by browsing a folder:
http://panmental.de/public/programming_ ... 0in%20PHP/

And a simpler one:
http://www.javascriptkit.com/javatutors ... php2.shtml

Not exactly what you asked for, but should give some clues?

_________________
jonbwfc's law: "In any forum thread someone will, no matter what the subject, mention Firefly."

When you're feeling too silly for x404, youRwired.net


Tue Feb 21, 2012 12:49 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5151
Location: /dev/tty0
Reply with quote
Cheers JJ :)


Tue Feb 21, 2012 1:04 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.