Batch Import-Script (Beta) 

This script will import image data from an existing folder structure. The script goes recursively through the folders, creates categories for each folder (subcategories for subfolders) and imports the images. 


Installation: 

--------------------------------------------------------------------------------- 
- Create a new directory called plugins in your admin-folder (if it yet does not exist) 
- Extract the zip and open the file batch_import.php 
- At the top you will find the configuration part. Edit this part according to your requirements. You will find an explanation there for each part 
- Copy the file batch_import.php to the plugins-directory 
- Log in to your Control Panel, a new link should appear in the left navigation frame beneath "PlugIns" 
- Click it and have fun 



--------------------------------------------------------------------------------
 
This is what i've been waiting for..!! 

For the last couple of days.. i've been working hard to make something like this on my own since I didn't got any response in this forum about batch import! 

But I must say.. this script is way better than I could do myself  

 
had a few problems with this mod, but got them worked out on my side with a few changes.. first error that came up was: 

Code: 
Parse error: parse error, unexpected T_STRING in /home/httpd/html/4images/admin/plugins/batch_import.php on line 70 
 


i believe that was because of the missing " on line 67: 

Code: 
// Default description for each image, can be left blank 
$default_image_description = "; 


which I changed to: 

Code: 
// Default description for each image, can be left blank 
$default_image_description = ""; 


I then ran into a new error: 

Code: 
Fatal error: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php') in /home/httpd/html/4images/admin/plugins/batch_import.php on line 29 
 


which threw me off for a while, but I realized that for whatever reason, my system was not properly reading the root_path using this line: 

Code: 
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../"; 


the only way I could get it to work with my limited knowledge of PHP was just to customize it specifically to my system which turned out to be: 

Code: 
$root_path = (/home/httpd/html/4images/"); 


after making these two changes the plugin worked flawlessly! 

btw, great addition, this was a major feature I was looking forward to, thanks!  
 
