• [Plugin] Batch Import 5 0 5 1
Currently:  

Author Topic: [Plugin] Batch Import  (Read 283655 times)

0 Members and 1 Guest are viewing this topic.

Offline Poul

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [Plugin] Batch Import
« Reply #30 on: October 22, 2002, 06:16:48 AM »
I got the batch_import and it is working fine when i import images.

But i can't get the thumbnail...i got the files on my server (The thumbnails got the same name as the imagefiles)....to where do i opload the thumbnailfiles ?

I have try'ed to uploade to /data/thumbnails = not working.
I have try'ed to uploade to /data/tmp_thumbnails = not working.

I am not using the auto_thumbnailer system (i can't, no IM, GB or NetPBM on my server)

What do i do to import the thumbnail with the images ?????

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Batch Import
« Reply #31 on: October 22, 2002, 08:02:12 AM »
@WoodShedd:
Try to use / (slashes) instead of \ (backslahes in the path.

@Poul:
Are you talking about the batch_import.php or about the "Check new images"-function in the Control Panel.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Poul

  • Newbie
  • *
  • Posts: 11
    • View Profile
[Plugin] Batch Import
« Reply #32 on: October 22, 2002, 09:08:26 AM »
Quote from: jan

@Poul:
Are you talking about the batch_import.php or about the "Check new images"-function in the Control Panel.

Jan


Hi Jan

I am talking about batch_import.php

Poul

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Batch Import
« Reply #33 on: October 22, 2002, 09:24:40 AM »
If you upload images and thumbnails directly to the category folders (media/<cat_id> and/or thubnails/<cat_id>) you can add these images with "Check new images". Try this...

The batch_import.php is only useful if you have already a lot of images on the server.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Poul

  • Newbie
  • *
  • Posts: 11
    • View Profile
[Plugin] Batch Import
« Reply #34 on: October 22, 2002, 10:46:25 AM »
Quote from: Jan
If you upload images and thumbnails directly to the category folders (media/<cat_id> and/or thubnails/<cat_id>) you can add these images with "Check new images". Try this...

The batch_import.php is only useful if you have already a lot of images on the server.

Jan


OK the "Check new images" is working fine.

Thank you, Jan.

Offline WoodShedd

  • Pre-Newbie
  • Posts: 3
    • View Profile
[Plugin] Batch Import
« Reply #35 on: October 22, 2002, 06:28:12 PM »
Quote from: Jan
@WoodShedd:
Try to use / (slashes) instead of \ (backslahes in the path.
Jan


Thanks, Jan, but no change :(

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Batch Import
« Reply #36 on: October 22, 2002, 08:33:03 PM »
Are you sure? I tried it with exact the same path on my windows system. It works...

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Amosnet

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • Bilder verkaufen
[Plugin] Batch Import
« Reply #37 on: October 22, 2002, 10:19:31 PM »
Hi Jan, erstmal tolles Script.

Kann ich nicht einfach von meiner alten Website Importieren mit diesem Script ? Alle Bilder liegen in Verzeichnissen incl. Thumbnails.

Ich habe so an die 1000 Bilder auf meiner Page und will nicht alle nochmal Uploaden, geht das irgendwie Jan ?

Vielen Dank dir
I love 4images! http://www.fotos-verkaufen.de Fotos verkaufen online Tips und Tricks und http://www.fotoskaufen.de

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Batch Import
« Reply #38 on: October 22, 2002, 11:00:28 PM »
Da Du ja hier im Beitrag gepostet hast, bist Du ja schon auf dem richtigen Weg. Jetzt musst Du nur noch das Script ausprobieren.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Amosnet

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • Bilder verkaufen
[Plugin] Batch Import
« Reply #39 on: October 22, 2002, 11:20:31 PM »
Habe ich ja schon, und du kansst als Source leider nicht einen anderen Server/Website mit Unterverzeichnissen angeben, und genau das will ich ja.. noch eine Idee ?
I love 4images! http://www.fotos-verkaufen.de Fotos verkaufen online Tips und Tricks und http://www.fotoskaufen.de

Offline WoodShedd

  • Pre-Newbie
  • Posts: 3
    • View Profile
[Plugin] Batch Import
« Reply #40 on: October 23, 2002, 01:14:15 AM »
Quote from: Jan
Are you sure? I tried it with exact the same path on my windows system. It works...

Jan


Yes, I'm sure.

The configuration for this appears as:
Code: [Select]

Path to the directory the image data are stored.
// No trailing slash!
$data_src_path = "c:/FoxServ/lake";
//


When I attepmt to import the images I get the following:
Quote

1. Importing image AUTOEXEC.BAT

Warning: Unable to create './../../data/media/3/AUTOEXEC.BAT': No such file or directory in c:\foxserv\www\4images\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /AUTOEXEC.BAT
Skipping.....

2. Importing image CONFIG.SYS

Warning: Unable to create './../../data/media/3/CONFIG.SYS': No such file or directory in c:\foxserv\www\4images\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /CONFIG.SYS
Skipping.....

3. Importing image Delapp.bat

Warning: Unable to create './../../data/media/3/Delapp.bat': No such file or directory in c:\foxserv\www\4images\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /Delapp.bat
Skipping.....

4. Importing image INSTALL.LOG

Warning: Unable to create './../../data/media/3/INSTALL.LOG': No such file or directory in c:\foxserv\www\4images\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /INSTALL.LOG
Skipping.....

5. Importing image IO.SYS

Warning: Unable to create './../../data/media/3/IO.SYS': No such file or directory in c:\foxserv\www\4images\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /IO.SYS
Skipping.....

6. Importing image MSDOS.SYS

Warning: Unable to create './../../data/media/3/MSDOS.SYS': No such file or directory in c:\foxserv\www\4images\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /MSDOS.SYS
Skipping.....


and it continues on and on.

I'm not sure what to do.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Batch Import
« Reply #41 on: October 23, 2002, 08:37:53 AM »
@Amosnet:
Nein da geht nicht. Das Script kann keine Dateien von einem auf den andere Server transferieren.

@WoodShedd:
Strange...last chance, try to use a relativ path.
Code: [Select]
$data_src_path = "../../../lake";

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Amosnet

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • Bilder verkaufen
[Plugin] Batch Import
« Reply #42 on: October 23, 2002, 09:16:04 AM »
Ich würde gerne nicht immer die Variable data_src_path = in deinem Script eingeben, sondern in der Weboberfläche, ist das möglich?
I love 4images! http://www.fotos-verkaufen.de Fotos verkaufen online Tips und Tricks und http://www.fotoskaufen.de

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Batch Import
« Reply #43 on: October 23, 2002, 09:22:20 AM »
Das Script ist eigentlich nur für einmalige Imports gedacht. Wenn Du regelmässig Dateien per FTP uploaden willst, kannst Du sie in die Kategorie-Ordner laden und dann per "neue Bilder checken" hinzufügen.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Scene

  • Pre-Newbie
  • Posts: 1
    • View Profile
[Plugin] Batch Import
« Reply #44 on: October 25, 2002, 05:57:55 PM »
Bei mir kommt immer:

15 images in . Importing image 1 to 15

Import category ...
DB Error: Bad SQL Query: SELECT cat_order FROM 4images_categories WHERE cat_parent_id = ORDER BY cat_order DESC LIMIT 1
You have an error in your SQL syntax near 'ORDER BY cat_order DESC LIMIT 1' at line 4

DB Error: Bad SQL Query: INSERT INTO 4images_categories (cat_id, cat_name, cat_description, cat_parent_id, cat_order, auth_viewcat, auth_viewimage, auth_download, auth_upload, auth_directupload, auth_vote, auth_sendpostcard, auth_readcomment, auth_postcomment) VALUES (2, '', '', , 10, 0, 0, 2, 2, 9, 0, 0, 0, 2)
You have an error in your SQL syntax near ' 10, 0, 0, 2, 2, 9, 0, 0, 0, 2)' at line 4
FAILED

1. Importing image .domains

Warning: Unable to create './../../data/media/2/.domains': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /.domains
Skipping.....

2. Importing image .htaccess

Warning: Unable to create './../../data/media/2/.htaccess': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /.htaccess
Skipping.....

3. Importing image .passwd

Warning: Unable to create './../../data/media/2/.passwd': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /.passwd
Skipping.....

4. Importing image .password

Warning: Unable to create './../../data/media/2/.password': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /.password
Skipping.....

5. Importing image Bilder der heiligen Drachen.doc

Warning: Unable to create './../../data/media/2/Bilder der heiligen Drachen.doc': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /Bilder der heiligen Drachen.doc
Skipping.....

6. Importing image DRAGONBALL GT-Die sieben Heiligen Drachen.doc

Warning: Unable to create './../../data/media/2/DRAGONBALL GT-Die sieben Heiligen Drachen.doc': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /DRAGONBALL GT-Die sieben Heiligen Drachen.doc
Skipping.....

7. Importing image Dragonball-TV-Guide.doc

Warning: Unable to create './../../data/media/2/Dragonball-TV-Guide.doc': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /Dragonball-TV-Guide.doc
Skipping.....

8. Importing image Dragonball.doc

Warning: Unable to create './../../data/media/2/Dragonball.doc': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /Dragonball.doc
Skipping.....

9. Importing image batch_import.php

Warning: Unable to create './../../data/media/2/batch_import.php': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /batch_import.php
Skipping.....

10. Importing image bg.gif

Warning: Unable to create './../../data/media/2/bg.gif': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /bg.gif
Skipping.....

11. Importing image new_name.exe

Warning: Unable to create './../../data/media/2/new_name.exe': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /new_name.exe
Skipping.....

12. Importing image newname.ini

Warning: Unable to create './../../data/media/2/newname.ini': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /newname.ini
Skipping.....

13. Importing image tca.nfo

Warning: Unable to create './../../data/media/2/tca.nfo': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /tca.nfo
Skipping.....

14. Importing image tn_DBZ_2 Image.jpg

Warning: Unable to create './../../data/media/2/tn_DBZ_2 Image.jpg': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /tn_DBZ_2 Image.jpg
Skipping.....

15. Importing image whats_new.txt

Warning: Unable to create './../../data/media/2/whats_new.txt': No such file or directory in D:\wampp13a\htdocs\gallary\admin\plugins\batch_import.php on line 122
Copy Image: Error while copying image /whats_new.txt
Skipping.....


Import finished!


Ich weis nicht mehr weiter :( Ich hab alles was hier steht ausprobiert hat scheinbar nichts gebracht :(

 

Post your comments here