Digital Wanderer

We live as long as we fly

The Notorious Plugin

download 22 kb

ATTENTION!

If you install this, your computer will first start dancing the jango, and then it will explode. So download at your own risk!

Instructions for the strong in spirit, in the person of ears_of_tin:

Download, copy the DynamicTemplate.dll file into the "C:\Program Files\Windows Live Writer\Plugins\" folder, if I'm not mistaken.

This will install the Dynamic Template plugin by Microsoft employee Joe Cheng, patched by yours truly.

Then restart Windows Live Writer, select Insert Template, then Edit Templates, then New. Name it Livejournal tags by Vladekk © , (otherwise it won't work :-).

Then carefully paste the text from the lj_tags.txt file into the window.

Next, you need to edit the options:

string user = "test";  - replace test with your username
string pass = "test";  - replace test with your password (alas, it's like this for now, in plain text)
int lastPostNumber = 2; - replace the number indicating which post from the top is your fresh/latest one. I always have a "sticky" post hanging at the top, it doesn't need to be edited, which means the fresh post for me is the second one (2). For those without a sticky post, you can safely write 1 here (but it's not a given that it will work :-)

Then save the template by clicking OK.

Here's how it works: you write a post in Writer, send it to LJ. After a successful send, you click insert template, select "Livejournal tags by Vladekk" , and enter your tags separated by commas. My script fetches the latest posts from the server (see above) and edits the tags of the desired post to whatever you entered in the dialog.

Alas, making this process much easier is impossible for now. Once again, it's going to lag on a modem, because it's fetching the latest posts. Also, it could very well wipe out some tricky post properties, because the LJ protocol is built somewhat crookedly and I have to resend the ENTIRE latest post back to LJ (woe to the modem again).

If an error pops up, that's bad news. You can write to me, but there's no guarantee it will do any good.

I don't really believe that anyone will actually use all this, but you never know.