Export Wordpress to Tumblr
Well I finally made the switch. After ignoring my old (Wordpress) blog for 2 years I decided to make the move to Tumblr.
I didn’t want to lose all of my previous content but for some reason it was rather difficult to find a solid way to import my old Wordpress content into Tumblr.
The best I found was
Override Wordpress Htaccess with Custom Rewrite Rules
I was working on a client project that used Wordpress as it’s main method for content management. In addition to Wordpress, it had a seperate admin/member area hosted on the same domain. In this member area I had implemented several uses of Mod Rewrite to make cleaner urls. However, when Wordpress was installed it’s htaccess rules took over request, no matter what I had entered and in what order. Here what my htaccess file looks like to allow other rewrite rules to run side by side with Wordpress:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(file|member|photo) [NC]
RewriteRule . /index.php [L]
RewriteRule ^member/([0-9]+)/ /member_profile.php?m=$1
RewriteRule ^file/([0-9]+)/(.+)? /file.php?f=$1
RewriteRule ^photo/([^/]+)/([^/]+)/(.+)? /file.php?type=$1&ref_id=$2&photo=1
</IfModule>
Comment to Email - Wordpress Plugin
The Comment to Email Wordpress Plugin allows you to reply to a comment and have your response be sent simultaneously to the commenter via email and posted as a regular comment in your comment section, killing two birds with one stone. As some of you have probably noticed, I like to try to email commenters personally. The main reason I do this is because I assume that the commenter is not going to be checking back routinely to see if I posted a response. The only problem with emailing a response is that it takes the conversation away from your comment section, meaning anyone else who has the same problem or question will miss the answer. Because of this I would find myself copying and pasting my emails back into the comments, which is just tedious. So I decided to create a better solution.
How it Works
It’s quite simple. After installing the plugin:- Under the Comments menu select ‘Reply to Comments’.
- Click ‘Reply’ on the comment you wish to reply to.
- Enter your message with WYSIWYG editor.
- Click Send.
- An email is sent to the commenter and your email is posted as a comment.
Features In the Works
As I said, I just quickly whipped this up today and I’m working on another idea at the time being, so I couldn’t do everything I wanted yet. Here’s what I’m hoping to add to it in the near future:- Ability to provide independent footers for the email and for the comment. This will allow you to say “I’m going to post this email in the comments so that others can see our discussion” to the email, but not have it appear in the actual comment.
- Adding a flag in the subject line of the BCC email so that you can setup a message filter in Outlook, Thunderbird, etc to automatically have the BCC’d email drop into your sent items. This way it will be as if you sent it from your own email like normal.
- What else can you think of?
Install/Configuration
- Download the plugin
- Upload the plugin to your /wp-content/plugins/ directory
- Under the ‘Plugins’ menu in your WP Admin, click ‘activate’ next to the plugin.
- Note: The email that messages are sent as (and bcc’d to) is the email address in your user profile in Wordpress. You can change this under the ‘Users’ menu.
Download
Test it out and if you run into any problems, drop me a note in the comments. Download - Version 0.4 (Requires Wordpress 2.5+) Download - Version 0.2 (For Wordpress 2.0 - 2.3)Wordpress Plugin: Extra Comment Fields
Overview
This Wordpress plugin allows you to add additional fields for users to complete when submitting a comment. The extra data will be saved in the wp database and can be retrieved when showing a post’s list of comments. The extra comment variables will show up in the list of comments in your Wordpress admin and are editable through the standard admin comment edit page. This plugin requires a basic knowledge of HTML to modify your comment form. Jump to DownloadExample of Use
For this example, we are going to add a field asking for a users age to the comments form.1. First, add the field to your comments form.
Typically your comments form is in your theme folder and is comments.php Most likely: (/wp-content/themes/YOURTHEME/comments.php) Enter the HTML of your new field into the desired spot. To add a textfield for the user to enter their age into, you would add the following to your form. I’ll add mine right below the url textfield.<p><input type="text" name="age" id="age" size="22" /> <label for="url"><small>Website</small></label></p>
2. Next, we need to add the field-variable to Wordpress.
Inside your Wordpress admin, click the ‘Settings’ menu. Then click the ‘Extra Comment Fields’ menu. Next, enter the name of the field. This has to be the exact name attribute you gave to the field you added to your comments form. For example, I added this field to my form:<p><input type="text" name="age" id="age" size="22" /> <label for="url"><small>Website</small></label></p>
3. Last we want to make use of the data somehow when showing comments.
Your extra fields will be in the $comments variable retrieved by Wordpress. The extra fields you added will have a prefix of ‘extra_’. So to access the data for our ‘age’ field, we use $comment->extra_age inside the comments loop. So, for example, if I modify the default theme’s comment.php file, I just insert one line to display the extra comment information (highlighted in bold).Another Example Posted on Problogger
How I added the Twitter ID field to comments on Twitip.comVersion History
1.2 - June 23rd, 2008- Corrected behavior when deleting/changing status of comment
- Fixed blank comment content field
- Updated for WP 2.5
- Added ability to edit comments
- Added ability to view comments in admin
- Extra Comments data deleted when comment is deleted
- Fixed database table prefix
- Initial Release
