I have been using gallery for my forum - but your module seems very cool indeed, and I'd like to use it instead.
My only problem is that my gallery consists of over 300 images.. and I'd hate to have to add them manually, one by one (or 8by8 actually).
Is there an option to import from a certain local folder, like gallery does?
If not, would you consider helping me implementing this - I have my own server, so I can easily give you the access you'd need and test too.
Posted: 20.11.2003, 10:58
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
That's possible. Login as admin. Go to Photoshare upload page. Now you have a special "import from local folder" link!
Posted: 20.11.2003, 11:22
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
jeez- I missed that - it's a bit inconspicuous :)
To make importing from gallery easier, it would be very cool if I could apply a filter to the files imported.
The gallery folder holds files with names like:
/www/webhotel/html/modules/gallery/albums/Galleri/snapshot_xtmultiKhaki.png
/www/webhotel/html/modules/gallery/albums/Galleri/snapshot_xtmultiKhaki.sized.png
/www/webhotel/html/modules/gallery/albums/Galleri/snapshot_xtmultiKhaki.thumb.png and sometimes other variables before the png.
perhaps a regexp like [^.]+.png - that should match the files with only a .png in the end - and no . in the name.
For now I'll write some shell script to do it.
Posted: 20.11.2003, 11:30
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
It doesn't work very well.
The session times out appereantly, and it only succeeds in adding a handlful (15-20 images), then it stops.
If I retry, it starts over so I get the same images again - instead of continuing from where it left off :(
Any suggestions as how this could be made to work?
Posted: 20.11.2003, 11:48
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Yeah, the PHP/web-server timeout is a pain in the but - nothing to do about it. Neither is there any support for checking how far the last import went.
I do like the file mask idea which will be added some day.
Posted: 20.11.2003, 12:46
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Gallery does this. I'll have to look into how it does it - cause this works.
For now is it possible to call the import feature from the commandline? this would also be a neat extra possibility.
Perhaps if you could tell me what function does this importing, I could write a small shell-script that sends the necessary HTTP-emulating vars to the same funtion - so it works as if it was called from the webserver.
Posted: 20.11.2003, 15:18
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
it's ofcourse doimportimages - but it's a hell of a mess - as it's using all those PN functions. I'm not used to writing functions using the PN framework..
Is it possible to write a PHP-CLI script that calls doimportimages, or would it be easier to write a custom script for doing it without using doimportimages?
Posted: 21.02.2004, 01:22
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Is the import from local folder link in 3.3.0? If it is, I'm missing it.