Advanced search  

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

Pages: [1]   Go Down

Author Topic: Bulk Upload of pics + automatic sorting into albums  (Read 6276 times)

0 Members and 1 Guest are viewing this topic.

caiusjuliuscaesar

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Bulk Upload of pics + automatic sorting into albums
« on: August 02, 2009, 12:12:22 pm »

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
Logged

Nibbler

  • Guest
Re: Bulk Upload of pics + automatic sorting into albums
« Reply #1 on: August 02, 2009, 01:05:14 pm »

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.
Logged

caiusjuliuscaesar

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Bulk Upload of pics + automatic sorting into albums
« Reply #2 on: August 02, 2009, 01:45:36 pm »

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
Logged

Nibbler

  • Guest
Re: Bulk Upload of pics + automatic sorting into albums
« Reply #3 on: August 02, 2009, 02:03:38 pm »

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/
Logged

caiusjuliuscaesar

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Bulk Upload of pics + automatic sorting into albums
« Reply #4 on: August 02, 2009, 07:05:32 pm »

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
Quote
Fatal 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.
Code: [Select]
sudo apt-get install php-pear

But this did not help.

What is to do?

Many thanks - CJC
Logged

Nibbler

  • Guest
Re: Bulk Upload of pics + automatic sorting into albums
« Reply #5 on: August 02, 2009, 07:24:15 pm »

Logged

caiusjuliuscaesar

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Bulk Upload of pics + automatic sorting into albums
« Reply #6 on: August 02, 2009, 08:48:43 pm »

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".
Quote
uld 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
Logged

caiusjuliuscaesar

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Bulk Upload of pics + automatic sorting into albums
« Reply #7 on: August 02, 2009, 10:12:51 pm »

Thew error message is:

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

Nibbler

  • Guest
Re: Bulk Upload of pics + automatic sorting into albums
« Reply #8 on: August 03, 2009, 12:00:35 am »

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

caiusjuliuscaesar

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Bulk Upload of pics + automatic sorting into albums
« Reply #9 on: August 03, 2009, 09:14:16 pm »

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
Logged

caiusjuliuscaesar

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Looking for Desciption of timer.php and CPGMassImport
« Reply #10 on: August 04, 2009, 08:49:17 pm »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Looking for Desciption of timer.php and CPGMassImport
« Reply #11 on: August 05, 2009, 08:01:58 am »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.