• [PLUGIN] Batch Import From ZIP Files 5 0 5 1
Currently:  

Author Topic: [PLUGIN] Batch Import From ZIP Files  (Read 218212 times)

0 Members and 1 Guest are viewing this topic.

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 From ZIP Files
« Reply #30 on: April 03, 2003, 07:21:16 AM »
Quote from: bosco
i find the php_zlib.all in my php dir amd copy to c:\winnt,then restart the php server it haven't error)

no no no!
no-error - doesnt mean it works :roll:
u dont need copy anything to winnt folder, but u need properly setup your php.ini file.
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 bosco

  • Pre-Newbie
  • Posts: 5
    • View Profile
[PLUGIN] Batch Import From ZIP Files
« Reply #31 on: April 03, 2003, 04:42:37 PM »
cry........................>.<
Yes,you are right........
if i copy the file in c:\winnt.......than the 4images is can't open ......
....>.<
sorry............
i useing PHP Version 4.2.3
thank you

Offline bosco

  • Pre-Newbie
  • Posts: 5
    • View Profile
[PLUGIN] Batch Import From ZIP Files
« Reply #32 on: April 03, 2003, 07:02:18 PM »
in the php.ini i make zlib.output_compression = Off
i can use this PLUGINS...
you are right i do not need copy file just edit the php.ini
thank you very much
thank you again
happy ~~~~~

Offline HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
[PLUGIN] Batch Import From ZIP Files
« Reply #33 on: April 13, 2003, 08:08:24 AM »
V@no,

Thanks for the great mod. I've been using it successfully.

1.  What do I need to do to make images that are added be under the user "Guest" and not the admin?

2.  How can I use this Mod to batch-upload to an "existing" category?

Thanks.

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 From ZIP Files
« Reply #34 on: April 13, 2003, 08:29:34 AM »
Quote from: HelpMeNow
1.  What do I need to do to make images that are added be under the user "Guest" and not the admin?

what do u mean by that?
like do u want the imported picture were "registered" to guest, not to "yourname - admin" ?

Quote from: HelpMeNow
2.  How can I use this Mod to batch-upload to an "existing" category?

I tryed figure out how it works, but failed...:cry:
sry.
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 HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
[PLUGIN] Batch Import From ZIP Files
« Reply #35 on: April 13, 2003, 08:37:46 AM »
Quote from: V@no

like do u want the imported picture were "registered" to guest, not to "yourname - admin" ?


Right. I want the uploaded pictures to be as if a "guest" uploaded them. This is because I'm converting files from an image gallery script which is done in cgi and paid so much for it too!!!!! But, after my purchase I saw this script and fell in love with it. On the old gallery, guest could upload pictures. So I need to transfer them to 4images and have them show that they where uploaded by "guest."

Is there a way to do that???

Thanks.

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 From ZIP Files
« Reply #36 on: April 13, 2003, 09:56:51 AM »
Please redownload the plugin.
I added "select user by name" not by ID.
and also fixed one minor little bug
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 HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
[PLUGIN] Batch Import From ZIP Files
« Reply #37 on: April 13, 2003, 04:02:47 PM »
V@no,

I just downloaded the latest and tried it. It's PERFECT. Thank you.

stuartam

  • Guest
[PLUGIN] Batch Import From ZIP Files
« Reply #38 on: May 26, 2003, 11:41:55 PM »
im having a few problems getting this mod to work, i tryed it and got the following error:

Quote
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. Check the manual that corresponds to your MySQL server version for the right syntax to use 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 (7, '', '', , 10, 9, 0, 2, 2, 9, 0, 0, 0, 0)
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' 10, 9, 0, 2, 2, 9, 0, 0, 0, 0)' at line 4
FAILED

1. Importing image .autofsck

Warning: copy(./../../data/media/7/.autofsck) [function.copy]: failed to create stream: No such file or directory in /home/stuartam/public_html/lm_pics/admin/plugins/batch_zip_import.php on line 213
Copy Image: Error while copying image /.autofsck
Skipping.....

2. Importing image .bash_history

Warning: copy(/.bash_history) [function.copy]: failed to create stream: Permission denied in /home/stuartam/public_html/lm_pics/admin/plugins/batch_zip_import.php on line 213
Copy Image: Error while copying image /.bash_history
Skipping.....


Import finished!


i also tryed putting in the exact path and i got the same error, then i checked the 'Only show extracted files (debug, not actual import)' bax and there was no error.

can somone help me get it working.

regards

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 From ZIP Files
« Reply #39 on: May 27, 2003, 12:03:24 AM »
it seems u have the same problem as the guy from first page of this thread. There is no sollution for this, because its probably the specific server configurations or something like that....
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)

stuartam

  • Guest
[PLUGIN] Batch Import From ZIP Files
« Reply #40 on: May 27, 2003, 12:43:51 AM »
Quote from: V@no
it seems u have the same problem as the guy from first page of this thread. There is no sollution for this, because its probably the specific server configurations or something like that....


problem solved, i was making the zip file wrong!!!!

all i did was add the pics to the zip, but i should of made a a folder with the pics in and added the folder to the zip  :oops:

regards

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 From ZIP Files
« Reply #41 on: May 27, 2003, 12:51:31 AM »
phew :lol:
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 bruceho

  • Pre-Newbie
  • Posts: 3
    • View Profile
Problem.........i am newbie
« Reply #42 on: June 08, 2003, 05:12:23 AM »
I am facing a problem,after i unzip the file and i can see the PLUGINS part in the control panel,but it shows the following error messages

Warning: main(./../admin/admin_global.php) [function.main]: failed to create stream: No such file or directory in /home/photobruce/4images/admin/plugins/batch_zip_import.php on line 29

Fatal error: main() [function.main]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/local/lib/php') in /home/photobruce/4images/admin/plugins/batch_zip_import.php on line 29

what can i do and what i need to config???

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 From ZIP Files
« Reply #43 on: June 08, 2003, 06:13:22 AM »
did u create .zip file in correct format?
u can not just zip images and do import, read the part where I explain how .zip files must be prepared.

also, maybe u'll need do this change:
http://4homepages.de/forum/viewtopic.php?p=26035#26035
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 bruceho

  • Pre-Newbie
  • Posts: 3
    • View Profile
[PLUGIN] Batch Import From ZIP Files
« Reply #44 on: June 09, 2003, 10:22:13 AM »
thankz
the last problem has been fixed
but now it shows "Abort pclzip.lib.php : Missing zlib extensions"
what can i do???
thankz again