Moblogging with Wordpress 2.0
Moblogging is posting articles to the internet from a mobile device such as your mobile phone, PDA, or laptop.
By default, Wordpress comes with the functionality to let you post items from your email account or mobile phone. However there are some limitations, for example the default wp-mail.php file doesn’t support attached images or files, at least in the v2.0 R133 version of Wordpress I’m using now. It takes a bit of work, but it is possible to set up a very flexible moblogging system on your Wordpress blog.
I was just about to start hacking the default wp-mail.php file when I found the excellent Postie plugin at Economysizegeek which has all the features you’ll ever need. The only problem is that it needs to be patched before it will work with Wordpress 2.0. Heres how…
- First download Postie and uncompress it into your wp-contents\plugins\postie folder
- Make two directories in your main wordpress directory wp-filez and wp-photos. Make sure these directories are writeable by your web server (chmod 777)
- Login to Wordpress as admin, go to the Plugins tab, and activate Postie.
- Go to the Options tab and click on Configure Postie to configure the settings.
- Set up a cron job to download mail at regular intervals, or check out the “Cronless Postie” plugin included in the package.
Now to get it to work with the latest version of Wordpress, I had to fix two Postie files, wp-content\plugins\postie\config_form.php and wp-content\plugins\postie\postie-functions.php
In config_form.php I fixed up the tables, there seemed to be some extra <td> tags screwing up the layout.
In postie-functions.php I fixed BuildBooleanSelect and BuildTextArea functions to get the options screen to display properly. I also fixed the ValidatePoster function to work with WordPress 2.0.
To make these changes in your installation, download the following patch and uncompress it, overwriting the two files in your wp-content\plugins\postie folder.
Now try sending a mail with an attached image and it should appear on your blog as soon as you click the Run Postie button!
Does postie keep running after you start it running? In other words, with a cron job running, or with the cronless version, does postie keep checking the mail and posting images as they come in?
I’m this close to going back to MovableType, chiefly because I know MovableType — but WordPress is a lot quicker, seems much cleaner, etc. My needs are really few but I just want to get those few things done easily.
Postie is run once every 15 minutes or whatever interval you set in cron (or wp-cron if using the cronless version).
Alternatively you can simply add a call to check_postie() in one of your template files, like sidebar.php, then it will check for new posts every time someone views a page.
[...] Bugs I had a few problems using the older version of Postie with Wordpress 2.0. See this post for fixes and new versions. Like this article? Share it:These icons link to social bookmarking sites where readers can share and discover new web pages. [...]
[...] Si tienes algunos problemas usando la versión vieja de Postie con Wordpress 2.0. Ve este post para tratar de arreglarlo. //OBSTART:do_NOT_remove_this_comment var OutbrainPermaLink=”http://faroviejo.com.mx/weblog/modules/wordpress/2008/03/28/wordpress-postie-postear-en-tu-blog-desde-tu-email-usando-un-celular/”; var OB_demoMode = false; if(typeof(OB_Script)!=’undefined’){ OutbrainStart(); }else{ var OB_Script = true; var OB_langJS =”http://widgets.outbrain.com/lang_es.js”; document.write (“”); } //OBEND:do_NOT_remove_this_comment [...]
Действительно интересный блог. Автор, не желаете ли его продать? Свяжитесь со мной – 7812один. Сергей.