1 rocketdyke Apr 25, 2005 06:57
3 stk Apr 27, 2005 06:08
rocketdyke,
Glad my tute helped you get going. I've been meaning to add the bit about changing categories. Wish you had asked. ;)
On a related matter, I just came across [url=http://sourceforge.net/projects/blag/]BL@G[/url] which is an email-2-blog php script that provides JPG attachments.
I tried to get the thing going, but didn't succeed. Maybe you could have a peek (if JPG attachments are to your liking?)
The way it works: Email special address & pass username/pwd/cat/blog# in the email, using the following format
username::uname
password::pwd
category::32
. Title is Subject. Email is forwarded to the script via a forwarding command (usually done in cPanel with a pipe command
| /usr/bin/php -f /home/yoursite/public_html/somedir/blag.php
. Php script(s) then parse the email into XML-format and the entry/JPG attachment is added like an RSS feed might be. WP has a similar plugin, based on some univeral code.
Interesting, but I'm stymied about getting it going. Maybe you could give it a whirl?
-Scott
4 rocketdyke Apr 27, 2005 10:00
Well, you've got me stumped.
I tried the basic install, and got nowhere. I think I'm having a problem with my email redirect, as a simple pipe doesn't seem to want to work. I've tried a few variations on pipes redirecting to text files in my homedir, but no luck.
I'm wondering if we can incorporate this fellow's php into the getmail.php from the standard email to blog scenario.
There is always the cheating option, using http://www.flickr.com which can link photos to blogs automatically. I prefer the idea of using open-source as opposed to relying on a commercial service, however.
I'll have to spend some more time looking at this script, and possibly figuring a way to have it call a pop3 email box instead of having to do the redirect.
-R
5 stk Apr 27, 2005 13:43
Hmmm. I guess I managed to get a bit further than you, as I was able to forward the email to the php script using the command above. (The "/usr/bin/php -f" is required on my host server, otherwise it just doesn't know the command is supposed to be run as php). Maybe your php libs are in a different location?
Until I put that in, I didn't get anywhere with the recommended "pipe /dir/string/phpFile.php" redirect.
Anyway ... just a thought.
I was hoping that you'd get as far as I did (well, further actually ;) ) which was to generate a "XML error" that made no sense and which I haven't been able to track yet. A b2emo_log.txt file is generated, upon successful redirection, containing the error:
[25-Apr-2005 23:09:50] XML error: junk after document element at line 2
.
That's as far as I got.
Would be very nice to get a JPG attachment working. (However it's accomplished) :D
I also got the impression that the author was intending for OTHER file extension attachments to be handled as well, but only the JPG one has been written.
I emailed the author, but haven't had a reply. The project has a homepage and a test blog, but I was unable to get an email posted there, as well. (Tho I now note that the test blog is EMPTY ... so he's working on something, as the test blog contained many entries, when I first began working with the script(s) - many entries had pictures.
Anything you can contribute would be helpful and greatly appreciated! :)
-Scott
6 rocketdyke Sep 07, 2005 06:29
I feel like such a sellout, but okay, I cheated.
I went through flickr as yahoo has promised that they will keep things the same (ha!) and try as I might, I couldn't get bl@g to work.
I would love more flexibility than what flickr gives, but it is better than nothing.
have you had any luck in the intervening months, Scott?
-R
7 stk Sep 07, 2005 07:07
I have contacted the author of the program and was promised that some redo's would be forthcoming.
Alas, nothing much has happened and it appears that the candle has flickr'd out (so to speak).
I'm into other things, at the moment, finalizing PZ2 (photo zoom 2) and trying to get back into the academic mood (autumn).
Currently, I'm not in need of a photo-to-blog solution, but am eager to see it happen, as I can see a real need for it when we begin our sail around the World.
Hope all is well in your realm,
-stk
YES!
setting the category ID with
works just fine.
of course, it was only later that I found: http://b2evolution.net/man/2004/06/16/post_by_email_howto#c1337