Bulk Upload of pics + automatic sorting into albums Bulk Upload of pics + automatic sorting into albums
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Bulk Upload of pics + automatic sorting into albums

Started by caiusjuliuscaesar, August 02, 2009, 12:12:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

caiusjuliuscaesar

Hi all,

i managed to bulk upload a complex hierarchie of directories and pics via ftp. For example:

+ Family 1
++ 2009
+++ Anniversary1
+++ Anniversary2
+++ Holidays
+++ Christmas
...
++ 2008
...
++ 2007
...
+ Family 2
...
+ Family 3

No I woluld like to make these Directories, Subdirectories and Subsubdirectories being automatically taken as Albums, Subalbums and Subsubalbums

Is there any possiblity to do so?

Regards, CJC

Nibbler

There are scripts posted already that do that. Search for timer.php. Coppermine doesn't support sub albums though so you need to make sure your hierarchy can be represented using categories, subcategories and albums.

caiusjuliuscaesar

Hello,

thanks a lot.

I googled for "coppermine timer.php"  but I got no hint, where to download this script not to mention how to use it. Maybe you have any suggestion what to do?


Thanks a lot,

CJC

Nibbler

Use the forum's own search instead of google.

Original script is here: http://forum.coppermine-gallery.net/index.php/topic,13949.0.html
Plugin version is here: http://forum.coppermine-gallery.net/index.php/topic,27566.0.html

cpg-contrib appears to be down, so you'll have to download it directly from http://sourceforge.net/projects/cpg-contrib/files/

caiusjuliuscaesar

Hello Nibbler,

ok - i am not sure whether i understood, what you suggested,
- but I took the timer.txt file,
- saved it as timer.php to the root-directorxy ($DOC-ROOT/fotos) of my coppermine installation,
- logged me in with administrative accounts,
- and called it via /10.8.0.1/fotos/timer.php

I got the error message
QuoteFatal error: Call to undefined function db_query() in /var/www/cpg14x/timer.php on line 218
structure created, 0 files to add.

After googling this error message, I installed PEAR.
sudo apt-get install php-pear


But this did not help.

What is to do?

Many thanks - CJC


caiusjuliuscaesar

Thanks once more.

I read the thread, which is not easy to understand, and got the script up and running after inserting "cpg_db_query" instead of "db_query".
Quoteuld just need to change the db_query's with cpg_db_query's.

But the script stopped after some 10 pictures and categories or after some 10 seconds.

Invoking the script once more, to do the rest, did not work.

???

What was wrong?

Might it be better to use the suite CPG_MassImport?

Regards CJC

caiusjuliuscaesar

Thew error message is:

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/cpg14x/include/picmgmt.inc.php on line 273

Nibbler

Judging by your previous message you have root access to the server so just disable the execution time limit in php.ini

caiusjuliuscaesar

Thanks another time. I #commented the appropriate line.

No I got the script up and running, for a larger period than 30 s. But unfortunately it stopped after some time (1 hour?), maybe because my Notebook went into Standby Mode. Or does it work still, even if I disconnect from the server?

If I call the script once more, it does nothing. But the work is not ready - there a still several Directories to process.

What about the parameters Sleep=1000, Limt =0? I do not know the meaning.

Regards CJC

caiusjuliuscaesar

Hello,

I am looking for a Desciption of timer.php and CPGMassImport.
What do the following parameters mean?

- Sleep between additions (ms): ???
- Limit additions per refresh ??

Is there any description, how the scripts behave and what they do?

- Do they run as daemons or do they need a connection to a browser?
- What happens if the script is invoked twice or several times
- What does the script do?

Regards,

CJC

Joachim Müller

No, there is no such description, it comes as-is. And those mods/plugins go unsupported here as per announcement thread.
I merged your request with the other one that deals with the identical issue.