SprintPhoto v0.2
Release #2 of my Sprint PCS Pictureshare plugin for WordPress.
There have been a lot of new features added, and it’s doing more than I had ever hoped when I had first started this project. There are still a couple things I want to try out, but I have to stop and do a release before I think of another feature or else I’ll never get any code released
This version is based off of the wp-mail.php code that has been modified by John Blade. His package can be found here.
My code will work with his version of wp-mail, but I have also made some minor additions to his code in order to add some functionality that I desired and fix a couple bugs I have found. If you would like to use my version, you must still install his package using the instructions at his site, but then replace the wp-mail.php file with the code found here. To see the difference between the two versions (including comments on what I changed), please check out the differences.
Anyway, here is the code and the instructions – please give it a shot and let me know if you manage to break it, or if you can think of any enhancements
– SprintPhoto v0.2
Plugin Name: WP-SprintPhoto
Version: 0.2
Plugin URI: http://bekit.net/archives/category/blog-development/
Description: Allow Sprint Picture Share to be posted with email blogging.
Author: Brint E. Kriebel
Author URI: http://bekit.net
Notes: Based partially off of code from phone2blog by LaughingLizard: http://weblogtoolscollection.com/archives/2004/07/17/sprint-pcs-moblog-to-wordpress-12-mingus/
To be used in addition to cool_blade’s modified wp-mail.php code.
Instructions:
- Install the modified wp-mail.php code from http://blade.lansmash.com/index.php?cat=5 (or my modified version of it).
- Copy SprintPhoto.php into the wordpress plugins directory (typically wp-content/plugins)
- Create the directories for photo storage specified in wp-mail.php. Downloaded images will be stored here.
- Activate the SprintPhoto plugin through your administrative pages.
- Follow the “How to Blog by eMail” guide: http://wiki.wordpress.org/How%20To%20Blog%20By%20Email
- Send a picture share as usual to the email adress you have created.
- By default it will pull a text message in as the title (example: “This is my title!”)
- You can modify the Category of the post using brackets with the category id (example: “[2] This is my title!” – this will post into the category with id #2)
- You can add a text post that will show under the image by sepating the title with a semicolon (example: “[2] This is my title!; This is the text of the post.”)
- If no text message is selected, the default title can be defined by the variable “$defaultTitle”.
- Browse to the wp-mail.php page – it will begin processing your email.
- Regular emails will process as normal posts.
- The full scale image as well as a thumbnail will be downloaded to the photos directory. A blog will be posted per your configuration of wp-m2.php with the thumbnail linking to the full image, the category, title and text of the post will be implimented as described above.
a. Voice attachments not currently implimented.
b. For text messages:
Changelog:
- 0.2
- Fixed:
- Incorrect date/time stamp.
- Permalinks not working correctly.
- Added:
- Title can now be adjusted (and defaulted).
- Now using wp-mail.php hack from http://blade.lansmash.com/index.php?cat=5 (Some modifications made).
- Category can be adjusted (thanks to blade’s wp-mail).
- A message can be planted in addition to the Title.
- The downloaded images are named to the date-title.
- 0.1
- Initial release.
- To-Do:
- Bug-fix as needed.
- Known bugs:
- None that i’ve found
- Add functionality for voice messages.
- Possibly turn this into a full Sprint Vision plugin for text messages, picturemail and videomail. (Optimism is a good thing).
Last Modified: 2004-09-13
October 16th, 2004 at 3:05 pm
I haven’t any luck with this. You mentioned a file called “wp-m2.php” what is that? I can’t seem to find it.