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.
Archived [?]: orphaned: broken links









You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:
Commented (7)
And then set a var pathsep with ”\” or ”/”
Keep up the good work!
Great plug in!
NOTE: Don’t forget to chmod(777) your uploaded folders!
great plugin! very usefull.
The problem is that now I have hundreds of images in my library and it’s almost impossible to browse them with the standard textpattern admin interface.
I was wandering if it is possible to write a plugin for selecting (showing) only a given category in the admin panel.
Any idea on how to do this ? I’d like to try to write something myself, but I’ve no idea on how to do this. Do you think I should write a plugin or is it a matter of modifying the original code ?
I’m playing with the idea of creating a sort of “nhn_image_organizer” as plugin that does what you want. But at the moment there is not enough time to really start coding it. It’s not that complicated, but it will take a lot of time because it’s a huge task to rewrite the image section.
If you have any ideas, post it on the forum. Perhaps we find a group working on that.
Regards,
Nils
Garbage. Another dead link. Should be removed from all listings.
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site.
Would you care to write a comment or visit the forum discussion?