Content last modified Monday 3 September 2018
hop to #bottom
Categories:
Author:
Current version:
0.2
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

nhn_image_import

I needed to upload dozens of images to my textpattern installation for a gallery on one of my sites. As it is not funny to upload a lot of images manually, I started to write my first admin-side plugin ever – I’m not a programmer, but it works fine for me and maybe it could be usefull for somebody else, too.

That’s what the script does:
1. It creates an new folder called import in the image folder.
2. All images uploaded via ftp to this folder will be imported into textpattern.

How to use it:
1. Upload your images via ftp to the import folder.
2. If you want to add the images to a special category, simply create another folder (chmod 777) with the name of the category in the import folder. If the category already exists, the images will be added to it, otherwise the category will be created.
3. Open the image tab in the content area: abracadabra the images should be imported.

Update: Version 0.2

  • support of unicode categories (tested on localhost)
  • support of thumbs: simply upload your thumb image to the same folder. If the image is called holiday.jpg, the thumb has to be called thumb-holiday.jpg to be recognized.

Disclaimer: It works without trouble on my site, but I don’t take any warranty for it on other sites.

Article Request Count:

Archived [?]: orphaned: broken links

Initially released:
2005-06-30
Posted here:
04 Jul 2005

You know you want to visit the Archives.
Published with Textpattern