jharlap
01-02-2006, 09:05 PM
I've added some fairly simple functionality to the copy_folder.php addon distributed with PP1.5BETA1 so that it can read titles and descriptions from a textfile included with the directory of images. As the change is so simple (and I secretly hope that it'll make it into PP1.5 instead of the one in BETA1) I didn't change the namespace of the functions, so it's not compatible with the original copy_folder.php - so move the old one out of the way if you want to use it. If you don't include a titles.txt file in your upload directory, the behaviour is identical to the original file, so this shouldn't be a problem.
The format of the title listing file is newline separated records containing comma separated, double-quote encapsulated fields. The field order is filename, title, description. It's very easy to make this kind of file in a text editor or (possibly even easier) in a spreadsheet package (OpenOffice, gnumeric, Excel, etc).
Hope it saves someone some time - I know it did for me ;)
Suggestions/comments are welcome, of course...
Cheers,
Jon
The format of the title listing file is newline separated records containing comma separated, double-quote encapsulated fields. The field order is filename, title, description. It's very easy to make this kind of file in a text editor or (possibly even easier) in a spreadsheet package (OpenOffice, gnumeric, Excel, etc).
Hope it saves someone some time - I know it did for me ;)
Suggestions/comments are welcome, of course...
Cheers,
Jon