LJ-style links for Ecto

This entry was published at least two years ago (originally posted on October 1, 2005). Since that time the information may have become outdated or my beliefs may have changed (in general, assume a more open and liberal current viewpoint). A fuller disclaimer is available.

This is actually fairly simple, but you never know.

For ecto users who want to post LiveJournal-style links to LJ user accounts (such as [djwudi's info]djwudi) into a weblog entry on a non-LJ system:

  1. Open Window > HTML Tags.
  2. Click the + button to create a new tag set.
  3. Paste the following code into the ‘opening tag’ box (as a single line):
    <a href="http://www.livejournal.com/userinfo.bml?user=%*">
    <img src="http://stat.livejournal.com/img/userinfo.gif" alt="[%*'s info]" width="17" height="17" /></a>
    <a href="http://www.livejournal.com/users/%*/"><b>
    
  4. Paste the following code into the ‘closing tag’ box:
    </b></a>
    
  5. Assign a command key sequence (optional, of course — I used option-command-J).

Viola! You’re done. Now, just type someone’s LJ username into a weblog post, select it, and choose the new tag set (or type the command key sequence you set), and the LJ-style link is created.