Plugin Name: WordPress AutoLink
Plugin URI: http://rudd-o.com/projects/wp-autolink/
Description: Lets you break free from long, absolute URLs in your blog
Version: 0.2.2
Author: Manuel Amador (Rudd-O)
Author URI: http://rudd-o.com/

This plugin provides three featuers:

1. Lets you use shortcuts for typing URLs to posts, pages and content files
AutoLink lets you insert hyperlinks, content and images in your posts and pages with easy-to-type shortcut URLs, which don't become invalid when you change your WordPress content directory or the permalink structure of your site

2. Prevents linkrot on your weblog
AutoLink it replaces permalinks to posts, pages or URLs to files in your blog' content directory with shortcut URLs, so they do not become invalid in the event that you change your WordPress content directory, or move your blog to a different host or URL. This replacement is fully transparent - when you edit a post or a page, AutoLink automatically replaces the shortcut URL with the correct permalink, and restores the shortcut URL when you save the post you were editing   AutoLink will also replace URLs to files in your blog' content directory, if it finds them in embedded JavaScript attributes (onclick, onblur, onmouseover, and so on) 

3. Makes your weblog more accessible for disabled people and search engines
Links from any of your posts to another will automatically contain a title attribute, with the title of the article they point to.  This attribute only appears on hyperlinks which did not have a title attribute before, and it does not get saved to the database, to simplify your posts' markup.

It performs these features by processing all tags and modifying the href="...", cite="..." and src="..." attributes, through the usage of the TagMogrify library, a superb library which lets you perform fast and easy-to-program transformations on XML documents.  The TagMogrify library requires the PHP DOM extension.
For more information visit http://rudd-o.com/projects/tagmogrify/

This plugin is fully compatible with WordPress 2.0.

* User's guide *

When writing an article, you usually specify URLs in <img src="..."> or <a href="...">.  You can specify the full URL for the file or post you're linking to, and AutoLink will invisibly transform it into a shortcut URL, preventing linkrot for that article in the future.  This replacement is transparent and only visible in the database - the full URL is automatically restored when editing or viewing a post or page.

You can also specify shortcut URLs directly, in several ways:

For posts:
	post:841 or post:the-slug-of-the-post specifies an URL to a post or page.
For content:
	content:images/my-picture.jpg specifies an URL to a file in your WordPress content directory. It automatically uses your configured content directory as a base URL.

Once you've saved your article, your WordPress blog will save these shortcut URLs in the database. 

* Note on embedded JavaScript *

This plugin will perform content: replacement for JavaScript events embedded on tags as well.  This tag, for example:
	<a href="#" onClick="doSomething('content:somefile.jpg');">
would automatically show up in public pages as:
	<a href="#" onclick="doSomething('http://yoursite/your_wp_content_directory/somefile.jpg');">
For this to work, the content: shortcut needs to be at the beginning of a JavaScript string.

* Known bugs *

- Permalinks to attachments in posts, "?more" pages, or specific pages of posts will be converted to the permalink to the story, without any parameters.
- The post: shortcut cannot be made to work yet on embedded JavaScript attributes, due to the difficulties in separating post slugs and numbers from the rest of the JavaScript.  A solution is in the works, though.
- AutoLink will refuse to work on a post which has invalid HTML.  Instead, it will leave the post content just as it originally was, and (if editing) will add a warning above the post editor saying "AutoLink cannot edit this post because it has invalid HTML".  Once the invalid HTML has been fixed, the warning will stop appearing.

--------------------------------------------------------------------
    Hey, you!  Yes, you!  Did you like this plugin?
    Try my other plugins!
    http://rudd-o.com/projects/
--------------------------------------------------------------------
