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

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

0 Members and 1 Guest are viewing this topic.

Offline Lucas

  • Pre-Newbie
  • Posts: 3
    • View Profile
[Plugin] Batch Import
« Reply #60 on: December 07, 2002, 10:05:53 AM »
Quote from: mblond
Quote from: mblond
I would like to be able to insert a user id from within the control panel rather than having a default_user_id in the php script this way I can change the userid for the each batch of images being uploaded.  Without having to edit the php file each time.

I have programming experience but am just getting familiar with php any help in getting this done would be greatly appreciated.

Thank you.


I figured out how to do this let me know if you are interested, if there seems to be interest I will post it.

Please i am getting the same problem u did how can i fix it?

Offline sticky

  • Pre-Newbie
  • Posts: 2
    • View Profile
import_php
« Reply #61 on: December 20, 2002, 10:47:22 AM »
hallo jan!
das script funktioniert super, aber ein problem hab ich noch mit den thumbnails.

ich habe zb ein verzeichnis mit den bildern und den thumbnails ... ABER die tumbnails beginnen mit TN_xxxxxx? wie kann ich das am besten lösen, damit ich das import script verwenden kann und er auch die thumbnails übernimmt?

danke
sticky

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Batch Import
« Reply #62 on: December 20, 2002, 11:31:33 AM »
Das kannst Du einstellen:
Code: [Select]
$thumbnail_options = array(
  "prefix"     => "",
  "suffix"     => "",  
  "subfolder"  => "",
  "extensions" => array("jpg", "JPG", "jpeg", "JPEG", "gif", "GIF", "png", "PNG")
);

Bei "prefix" kannst Du "TN_" eintragen.

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

Offline sticky

  • Pre-Newbie
  • Posts: 2
    • View Profile
[Plugin] Batch Import
« Reply #63 on: December 20, 2002, 01:16:54 PM »
hi jan!
tnx .... hab ich echt übersehen ;)
danke... funktioniert nun wunderbar

muss sagen, echt geniales script!

Offline TheOne

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Warning: open_basedir restriction in effect
« Reply #64 on: December 23, 2002, 08:04:30 PM »
Quote from: Seatboy

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 (40, '', '', , 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


Import finished!

[Back]  

Whats wrong ?


hmmm...i got this error as well. I tried moving the image folder inside the plugins folder and it still could not work. Can someone please help me. Thanx!!

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Batch Import
« Reply #65 on: December 30, 2002, 09:05:55 AM »
The folder structure should be:

Code: [Select]
import_folder
- category1_folder
  - image1.jpg
  - image2.jpg
- category2_folder
  - image1.jpg
  - image2.jpg

Be sure that there are no image files in the folder "import_folder".

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

Offline bluegirls

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Warning: open_basedir restriction in effect
« Reply #66 on: January 03, 2003, 05:34:20 PM »
Quote from: TheOne
Quote from: Seatboy

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 (40, '', '', , 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


Import finished!

[Back]  

Whats wrong ?


hmmm...i got this error as well. I tried moving the image folder inside the plugins folder and it still could not work. Can someone please help me. Thanx!!

i got the same error.moved the folder to be imported to plugins folder but no diffrence.
where this folder import_folder be located

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Batch Import
« Reply #67 on: January 03, 2003, 06:48:17 PM »
Thats the folder you should create on your server and place the category folders in it.

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

Offline bluegirls

  • Pre-Newbie
  • Posts: 7
    • View Profile
[Plugin] Batch Import
« Reply #68 on: January 03, 2003, 07:24:55 PM »
Quote from: Jan
Thats the folder you should create on your server and place the category folders in it.

Jan

oh thnkx got it working. but it do not automatically creat any thumbnails with the default setting. is it supposed to creat auto thumbs .or must make thumbs manually ?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[Plugin] Batch Import
« Reply #69 on: January 03, 2003, 07:59:50 PM »
u can batch import images together with thumbnails (need correct batch import settings), or click on "auto thumbnails" after u import the images.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline bluegirls

  • Pre-Newbie
  • Posts: 7
    • View Profile
great
« Reply #70 on: January 04, 2003, 06:00:40 AM »
great ,thnx a lot ,

Offline julien

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://julienbayle.net
[Plugin] Batch Import
« Reply #71 on: January 08, 2003, 01:07:54 PM »
Hey !

What file must I use for batch_import fixed ?????

Is the first file of the first post of thisthread is ok or not ????
Julien

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Batch Import
« Reply #72 on: January 08, 2003, 02:29:19 PM »
Yes, the file from the first post is the right one.

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

Offline julien

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://julienbayle.net
[Plugin] Batch Import
« Reply #73 on: January 08, 2003, 05:31:41 PM »
Ok Jan :)

Thank you very much!
Julien

Offline PaulC2K

  • Pre-Newbie
  • Posts: 8
    • View Profile
    • http://qazwert.com
[Plugin] Batch Import
« Reply #74 on: February 07, 2003, 07:45:54 PM »
Hi,

Can someone help me with this error please:

I've changed the path line to $data_src_path = "../../../../gallery";
which is the online folder where the images are stored.
That is the ONLY thing that i've edited in the whole of the batch_import.php file

The error im getting is:
Quote
5 images in 911gt1. Importing image 1 to 5

Import category 911gt1 ...
Warning: mkdir() failed (Permission denied) in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 367

Warning: mkdir() failed (Permission denied) in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 368
OK

1. Importing image frame.htm

Warning: Unable to create './../../data/media/66/frame.htm': No such file or directory in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 122
Copy Image: Error while copying image ../../../../gallery/911gt1/frame.htm
Skipping.....

2. Importing image left.htm

Warning: Unable to create './../../data/media/66/left.htm': No such file or directory in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 122
Copy Image: Error while copying image ../../../../gallery/911gt1/left.htm
Skipping.....

3. Importing image photos.html

Warning: Unable to create './../../data/media/66/photos.html': No such file or directory in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 122
Copy Image: Error while copying image ../../../../gallery/911gt1/photos.html
Skipping.....

4. Importing image right.htm

Warning: Unable to create './../../data/media/66/right.htm': No such file or directory in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 122
Copy Image: Error while copying image ../../../../gallery/911gt1/right.htm
Skipping.....

5. Importing image top.htm

Warning: Unable to create './../../data/media/66/top.htm': No such file or directory in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 122
Copy Image: Error while copying image ../../../../gallery/911gt1/top.htm
Skipping.....


All thats in that folder is html files

however, in the /pics folder to that one, i have a bunch of photos which i want in the gallery.
This errors:
Quote
Import category pics (Parent category: 911gt1) ...
Warning: mkdir() failed (Permission denied) in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 367

Warning: mkdir() failed (Permission denied) in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 368
OK

1. Importing image 1-133.jpg

Warning: Unable to create './../../data/media/67/1-133.jpg': No such file or directory in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 122
Copy Image: Error while copying image ../../../../gallery/911gt1/pics/1-133.jpg
Skipping.....

2. Importing image 1-320.jpg

Warning: Unable to create './../../data/media/67/1-320.jpg': No such file or directory in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 122
Copy Image: Error while copying image ../../../../gallery/911gt1/pics/1-320.jpg
Skipping.....

3. Importing image 1-800.jpg

Warning: Unable to create './../../data/media/67/1-800.jpg': No such file or directory in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 122
Copy Image: Error while copying image ../../../../gallery/911gt1/pics/1-800.jpg
Skipping.....

4. Importing image 2-133.jpg

Warning: Unable to create './../../data/media/67/2-133.jpg': No such file or directory in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 122
Copy Image: Error while copying image ../../../../gallery/911gt1/pics/2-133.jpg
Skipping.....

5. Importing image 2-320.jpg

Warning: Unable to create './../../data/media/67/2-320.jpg': No such file or directory in /home/spazstix/public_html/php/gallery/admin/plugins/batch_import.php on line 122
Copy Image: Error while copying image ../../../../gallery/911gt1/pics/2-320.jpg
Skipping.....


And its exactly the same for a dozen of these folders until it gets to the end.
It creates the folders, but obviously doesnt put the images in there.

Can anyone help me out on this?
Ive seen a few people with this 'line 122' error, but no english reply, so i've not been able to use the previous posts to this problem

Many thanks in advance

PaulC2K

 

Post your comments here