Web Gallery

Get help using Construct 2

Post » Sun Feb 10, 2013 1:07 am

That's php.
If you have a server that runs php you can create a file name for instance
list.php
you copy/paste this code in it
you put this file where the images are
and you modify event 2 to call list.php instead of list.txt

The php script will just look into the folder it is in, list all the files with extension, png, jpg, gif, or bmp like they are in list.txt (one file by line)
It's just more automatic. It facilitate update since you'll just have to add images in the folder.
However you'll have no control over ordering. (I don't know if the script orders alphabetically, or by date of modification...)Yann2013-02-10 01:09:24
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sun Feb 10, 2013 1:35 am

yeaaaaaaaaaah thanks again for all your great help :D

result :D

http://mattepainting.be/test/index.htmlimothep852013-02-10 01:37:14
B
32
S
9
G
6
Posts: 1,467
Reputation: 7,951

Post » Sun Feb 10, 2013 7:54 am

Hey neat art :D
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sun Feb 10, 2013 10:15 am

thanks :D (the prime pictures present in the gallery you made ar not mine, only mattepainting.be are my different works).imothep852013-02-10 10:16:10
B
32
S
9
G
6
Posts: 1,467
Reputation: 7,951

Post » Tue Jun 25, 2013 4:21 pm

[QUOTE=Yann] https://dl.dropbox.com/u/23551572/C2/imageViewer.capx

you need to put a file named list.txt in the folder IMAGE_FOLDER (by default 'gallery') relative to your index.html

?>[/code][/QUOTE]

Hi there, thanks for your help. But can u show me how to relative Image folder to your capx :( ? Just put it in same place with capx file doesn't work . And can I make a image viewer apps with this sample ? :D
B
6
Posts: 3
Reputation: 313

Post » Fri Jan 16, 2015 12:33 am

Yann Sorry, exactly how do you use the canvas plugin here? I still don't get that part.
B
4
Posts: 5
Reputation: 210

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests