Posts Tagged: messy

How to Change the Directory that Movable Type Uploads to When Using the Atom Protocol (Lifeblog, PixelPipe, etc)

I don’t know about you, but I have had a little list of blog upkeep items that have been on my to do list for ages, but haven’t had the time to research and then execute them. After thinking about a few of them for some time, oh like a couple of years, I decided recently to make a real paper list and make it happen.
Here are the things I wanted to do:
1) Figure out how to get thumbnails of images to appear in the excerpted version of this blog’s RSS and Atom feeds.
2) Think about how to keep the evil sploggers (spam bloggers who scrape feeds) at bay AND keep my regular feed readers happy with a good feed. I have had my private full feed for at least two years now & announce it frequently but folks who want a full feed didn’t know about it.
3) Even though Perl is not really my friend, I have wanted to figure out how to alter the Atom script for this blog so that when I use Lifeblog or PixelPipe to mobile blog from my camera phone to this blog that the photo will be uploaded into the file directory of my choice and not the default main blog directory.
A few weeks ago, I dedicated a few hours to attempting to bending the Atom and RSS feed templates to my will. Unfortunately, Movable Type 4.x is very dependent on the Asset Manager for knowing where the images are, and due to challenge #3, I was not able to fix #1 with any satisfaction, as all the fixes required the Asset Manager to know where all the images are and by default the Atom script uploads all assets/images to the main blog directory, which causes a messy main directory with my daily mobile blogging. To solve this, I have been manually moving images to a proper image directory and then updating the blog post later, thus the Asset Manager can’t keep up with me. Poor thing.
Persistent artist vs. computer program. Who is going to lose? In the long run, the program. Until I solved problem #3, problem #1 was a null point.
I solved #2 by resetting my public facing feeds to be a bit bigger excerpts that would show the images but would excerpt any article over a certain length. I use the .htaccess file to stop any lifting of images. And I still have the private complete feed for anyone who emails me and lets me know that they want the url.
Today, I decided to conquer the moblogging directory issue and attempt to make Perl bend to my will.

(more…)