Okay, so it’s a bad plugin name but it does what it says, pretty much.
This plugin creates a copy of your wp-content folder (excluding any backups made by this plugin) and creates an archive, that archive is then uploaded to the DreamHost backup server. A backup of your sql database can also be created and uploaded for you. As per the DreamHost style I went ahead and made this as simple as possible with 1 click backups for each option.
Just enter your backup username and password and click on backup. You can grab a copy of the plugin from here, I’ll be submitting it to the WP Plugin Directory soon.
So I work with the NextGEN Gallery plugin pretty often for various websites and one of the things we constantly find ourselves doing is downloading zip files of content, then uploading them to the system in order to import them. From time to time I would run into a max upload size problem which meant uploading outside the usual interface or doing things in portions.
I decided I needed to get around this problem so I went ahead and made what turned out to be a pretty simple modification of the NextGEN Gallery plugin. Here’s what I did:
- I modified admin/functions.php and added a function:
- I modified admin/addgallery.php in various spots
The first modification is easiest, I just took the code from the import_zipfile function and modified it so that rather then expecting the file from the $_FILES variable I used curl to grab the zip file from the URL, save it to the /tmp directory with a random name, then followed the process from the original function. Easy!
The only other modification that was needed was the admin form for adding a gallery. The file that handles that is admin/addgallery.php and after taking a look at it I found it really wasn’t a complex form at all. I did the following:
- I modified the <ul> with the id “tabs” adding the following pointing the link to the following: <a href=”#zipimport”>
- Then I added a div with the actual form with the id “zipimport” – it takes in the url for the zip file and the gallery selection
- Finally I added another POST variable check: $_POST['zipimport'] which executes the new function which was added to functions.php
Test it out, as long as PHP was compiled with cURL this should work pretty smoothly. You can grab a copy of the files I modified from here:
Let me know if you have any questions!
Getting an error like this one?
Fatal error: Cannot redeclare pclziputilpathreduction()
Chances are you’ve got the Automatic WP Upgrade plugin enabled. Although this really was a wonderful plugin and it was highly useful to many of us it is no longer needed. WP has an update capability built in now.
Also, it causes the above error to show up when you attempt to install or update plugins automatically! Go disable it, really, it’s no longer needed and interferes with the awesome new install/update capability in WP.
Hope this helps!
WordPress is one of the most beautiful chunks of software I’ve ever had the pleasure of playing, working, and generally having a lot of fun with. This software is quickly learned by most technically challenged people and can actually help out those people who just want to publish information and get their name out there.
With a combination of WordPress and websites like digg, technorati, and stumbleupon, a blog or website which might not get the best traffic response can grow (with some work) to hundreds, even thousands, or more visitors a day. Like all things, it does require dedication and some knowledge about your topic or topics.
So for those people willing to dedicate some of their time writing about whatever they may be passionate about, wordpress is a wonderful way to just start writing. For those who are interested but don’t want to spend the time to install and setup the various features of the software, feel free to let me know and I will do the WordPress setup and install for you, for a small fee.
Email me at: firstname.lastname@example.org
Or leave me a comment to this post.