forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 upload => Topic started by: maverik-svao on March 23, 2011, 01:12:29 pm

Title: Autoindex of new photos
Post by: maverik-svao on March 23, 2011, 01:12:29 pm
Hello!
I have written a script, which can place new photos from the other site to the coppermine folder in automatic mode.
But I need a script to put this photos into a base.
So I give to this script folder name and album name (id) and it returns pids of placed images.
I tried to create it from searchnew.php, but I can't understand exactly the code of this file.
On the other hand I tried to search something close to this script in this forum, but nothing found...
Thank you for your help!

P.S. Excuse me, if my english is bad. I'm russian...
Title: Re: Autoindex of new photos
Post by: Αndré on March 23, 2011, 01:22:02 pm
I'm not sure if I understodd you correctly. You created a script that copies files from somewhere to Coppermine's albums directory and now you want to know how you can assign those files to an album?
Title: Re: Autoindex of new photos
Post by: maverik-svao on March 23, 2011, 06:14:02 pm
Yes!
I'm looking for a script which can assign photos to albums.
Like searchnew.php, but fully automatically.
Title: Re: Autoindex of new photos
Post by: Αndré on March 24, 2011, 09:11:15 am
I think your script has to do the following:
1. Scan your directory and determine which files are new and which are already assigned to albums
2. POST the needed data to searchnew.php
Title: Re: Autoindex of new photos
Post by: maverik-svao on March 25, 2011, 07:17:50 pm
Yes! Should I write it myself, or there is anything already wrote?
Title: Re: Autoindex of new photos
Post by: Αndré on March 26, 2011, 09:49:10 am
Afaik such a script doesn't exist yet.
Title: Re: Autoindex of new photos
Post by: maverik-svao on March 30, 2011, 06:30:46 pm
Thank you!
I'll write it myself!