Jun 22 2005
Moblogging on WP 1.5 with thumbnails
Well here it is my modifications to Phone2WP to have the thumbnail functionality of Keitai Mail with a few other little tweaks.
To download click here.
To install extract the Zip to your root directory of your Wordpress install, edit phone2wp.php with your configuration details, setup an email account with a unique name like moblog_12345_9876 that nobody knows and isn’t likely to guess to prevent people spamming your forums, then setup your Wordpress install under Options / writing to check that email and finally add a new user to your Wordpress install with privileges to post that has the email address to set to the account you are going to send your moblog messages FROM, it doesn’t necessarily have to be the same address.
The only remaiining step is to add a cron job to run the script periodically to check for new emails, for example to do it every 10 minutes:
Actually for some reason I keep getting a 403 when I try to include the text of the cron job so check Phone2WP’s site for details until I work out what is up with the 403.
Soon I hope to modify the script to work more like Keitai Mail so you can setup a forward to pipe emails sent to your secret moblog email account and have them posted straight away.
If you have any questions please let me know, most credit though has to go to Ryan and Dr Dave.
Note: I just realised the default layout code in phone2wp.php doesn’t create valid XHTML (at least in my theme) so keep that in mind if you want to keep your site validating, I do so I will be looking at that soon.
Thanks dude, your modifications to the script worked great. For my phone, a Nokia 3650, I ended up commenting out the fixlayout() function, otherwise it would strip out my attachments, but other than that I’m up and running! I also added a line to run a perl script that adds the image to my Gallery site. Many thanks. -Dan
[...] I just adapted a few existing scripts to easily handle moblogging in Wordpress 1.5 with support for thumbnails on my site here if anyone is interested in checking it out. [...]
[...] The original version of this (by Ryan Duff) can be found here. A modified version to have the thumbnail functionality of Keitai Mail with a few other little tweaks can be found here. A friend of mine has further patched it up for me because it was letting the footer images through (even though it isn’t supposed too). This revision has only been tested on T-Mobile carrier. If you want it, download it here… [...]