WordPress AutoLink
This tool is also bundled with Turbocharged for WordPress. Need support? Buy it and get other plugins, themes and support for free.
This plugin provides four features:
- 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
- Prevents linkrot on your weblog: AutoLink replaces permalinks to posts, pages or URLs to files in your blog’s upload 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) - Makes your weblog more accessible for disabled people and search engines: Links from any of your posts to another will automatically contain a
titleattribute, with the title of the article they point to. This attribute only appears on hyperlinks which did not have atitleattribute before, and it does not get saved to the database, to simplify your posts’ markup. - Automatically Lightboxes your image galleries. Any hyperlink to an image which contains a thumbnail will automatically be added a
rel="lightbox"attribute, so WP Lightbox JS can kick in and give you the most beautiful galleries ever.
It performs these features by processing all tags and modifying the href="...", cite="..." and src="..." attributes, through the usage of the TagMogrifier library, a superb library which lets you perform fast and easy-to-program transformations on XML documents. The TagMogrifier library (and thus, WordPress AutoLink) requires the PHP DOM extension.
Best of all, it’s fully compatible with popular WordPress plugins, such as wp-LightboxJS and LMB^Box FilePress.
Requirements
- PHP 5.0.0 or newer
- The TagMogrifier library for PHP (which is included in the package, so it’s no extra work)
- The PHP XML extension, installed on your Web hosting server (usually packaged in a package named
php-xml- you basically need theDomDocumentclass (not the one in PEAR) - Posts with valid XHTML (posts with invalid XHTML won’t be enhanced by WordPress AutoLink, but they won’t be modified or damaged in any way)
Resources
- How to install the plugin
- Quick usage instructions
- See (and subscribe to) the live change log for this project
- Download the plugin
Getting help
Help for this software is available in several forms. Here are the rules:
- E-mails or posted comments with bug reports, patches, suggestions or contributions of any kind will be received by me in good faith, and I will, in time, incorporate all submitted improvements, in any form, to the software.
- This software is delivered to you without warranty of any kind, as recognized by the GNU General Public License.
- Special requests, such as customization, third-party licenses, development of large features, or requests which require software engineering to be applied, will be performed by me, for a fee. If you’re attracted to my engineering skills, wait until you see my rates. After all, living on a Third World country has its advantages. Let me know if you’re interested.