So, as I said the other day, my friend Ariana hit the website with a big shitty stick until the moblogging system started working.Â To a code-illiterate like me, this was not a small thing.Â So I got her to write down how she did it.Â Ariana’s explanation follows:
*Â Â *Â Â *Â Â *Â Â *
Note: This is only one way to enable mobile blogging with WordPress. There are other plugins out there that may work just as well, or better, depending on your set up, version, and preferences. This is just the way I set things up for Warren when nothing else seemed to be working.
What youâ€™ll need:
1. A current build of WordPress.
2. A phone capable of sending email, photos, etc.
3. An email account that you will use exclusively for posting.
What to do:
1. Download and unzip Posties, then upload the postie folder (using FTP or your cpanel) to wherever you have WordPress. All the files for Posties need to be in their own folder, so your directory layout should look like this:
wordpress>wp-content>plugins>postie>all the posties files
2. Next, download WP-Cron, unzip the folder, and upload it to the plugins directory as well. The directory layout for wp-cron should be:
3. While youâ€™re in the admin panel or FTP application, back out to your MAIN wordpress directory (the one where the folders â€œwp-adminâ€ and â€œwp-contentâ€ are). Youâ€™ll need to create two new directories:
These two directories need to be set to CHMOD 766. If youâ€™re doing this from an FTP client, youâ€™ll create two new folders, name them wp-filez and wp-photos, and then right-click to select properties, permissions, or chmod (depending on your program it could be any of those three). By default, folders are set to 0, so just change that number to 766. If youâ€™re working through a web-based control panel, there should be a similar option either next to the folder icon, or at the top or bottom of the screen. If youâ€™re doing this all via telnet or SSH, you should damned well know how to chmod files. If you donâ€™t, close your terminal before you break something, and get an FTP client.
4. You can close FTP, or leave the cpanel now. Log into your WordPress account as Admin, and activate the following new plugins:
Ignore all of the other WP-Cron plugins (Dashboard, Reminder, etc.) for now. Youâ€™re more than welcome to go back and look at them later, but they arenâ€™t necessary for posting-by-phone. Thereâ€™s relatively good documentation over at the WP-Cron page about all of the plugins, but the truth is that weâ€™re just using WP-Cron because thatâ€™s what the Posties plugin needs.
5. If everything activated with no errors, youâ€™re ready to configure Postie. From the WordPress Dashboard, choose Options>Configure Postie. You will need to set the following:
- Authorized Addresses – These are the addresses you will be SENDING mail from. If youâ€™re not sure what the email address of your phone is, send yourself a message.
- Mailserver Settings – This is the email address that Posties will check for entries. Choose your mail protocol, the mail server, your userid, and your password.
- All the other settings are options that you can explore once youâ€™ve got Posties working.
6. Now, first test. Send an email from one of the â€œAuthorized Addressesâ€ to the account you specified in â€œMailserver Settings.â€ Wait a minute, then click the Run Postie button at the top of the Postie Options screen. If you did everything correctly, a new entry should appear on WordPress. If not, back up and see if you missed any steps.
7. Cronless Postie + WP-Cron. Once youâ€™ve got Posties working, you need to set up WordPress to automatically check for new emails. Otherwise, the only way youâ€™ll be able to post is by logging in and clicking that little button. WP-Cron basically uses RSS feeds, webcrawlers, and other automated systems to trigger automated tasks. If your blog has a LiveJournal feed, for instance, WP-Cron will automatically run a list of commands every time it is accessed by the LJFeed aggregator. Cronless Postie is one of the commands that WP-Cron can run. Both need to be enabled for Postie to auto-update, and tiny bit of code needs to be inserted into your wp-rss.php file:
Cut and paste the above line of code into wp-rss.php. It goes by itself, on the line below the first } and above the word header.
8. Cronless Postie+WP-Cron may not work immediately. Remember, this is a workaround is based on RSS feeds and webcrawlers. If the only RSS feed currently subscribed to your journal is LiveJournal, youâ€™ll have about an hour delay between fetch times,which means you could be waiting for up to an hour before an email post goes live. If that does not suit your needs, then youâ€™ll need to subscribe to something that updates a little more often (try bloglines, or gmail rss). There are also known issues with the Cronless Postie app â€” in other words, if you just canâ€™t get it to work, itâ€™s probably not your fault. If your directory is anything other than normal (if youâ€™ve got wordpress in a different folder than your main page) or if you have some arcane plugins that donâ€™t want to play nice with WP-Cron, thereâ€™s not a whole lot you can do except Step 9 below.
9. Alternately, you can set up a webmonitoring service (like Easy Monitor) to check:
Unfortunately, free Web Monitoring services are notorious for down times and error messages, so if you can get wp-cron working, itâ€™s far more dependable. If your hosting provider comes with a Web Monitoring service, this is definately your best bet, because if their servers are down, thereâ€™s a good chance your site will be, too.
10. And thatâ€™s it. If you got it working, congratulations! Go get yourself a drink. Youâ€™ve earned it. If not, go get yourself a drink, anyway. Youâ€™ probably need it.
*Â Â *Â Â *Â Â *Â Â *
NOTES: if you’re going to use Gmail as your secret-address mailserver, remember to select POP3-SSL from the dropdown.Â
ISSUES: Posting-to-blog via Flickr is currently not working.Â I have not yet discovered whether the problem lies with the moblog solution or with my new phone.Â If it turns out to be a conflict between the above solution and Flickr — well, since this solution allows you to post photos straight to your blog off the phone too, it’s not that much of an issue, is it?
My thanks to Ariana both for making the thing work, and for taking the time to write her steps down.
[TAGS]wordpress, moblog, post+by+mail, mobile, cron, postie, cronless, wp-cron, annoying+the+fuck+out+of+you+by+phone[/TAGS]