Version 2.5 of the LDS Linker plugin for WordPress is now available from the WordPress plugin repository. Version 2.5 adds support for using en-dashes in passage references (hooray for typography!). Additionally, you can now cancel the linking of any passage reference by preceding it with an exclamation mark. This is mostly useful for when you accidentally trigger a reference link where you don’t want one, i.e., “the Omni 2 digital camera is an improvement over the popular Omni 1.” Lastly, you can now set the hyperlinks to open in a new window if you prefer. Version 2.5 also fixes a number of bugs related to how certain characters, such as ampersands, en-dashes, and em-dashes, can be encoded.
As far as I could tell, WordPress doesn’t have any kind of global sitenotice feature like MediaWiki, but I needed one to promote my upcoming ride in the 2007 MS Bike Tour, so I wrote my own quick-and-dirty plugin.
I’m in the process of submitting this to wp-plugins.org so I can start some more serious and stable development, but if you’d like to try it out in the meantime, feel free to download the alpha version:
To use the plugin, you’ll need to add a new template tag to an appropriate place where you’d like the sitenotice to appear when it’s enabled (I have mine right at the end of my header.php template file). The new tag is
. The plugin adds a new admin panel called “Sitenotice” to the WordPress options menu, from which you can edit the sitenotice message and configure other features.
This is alpha software, so if you install it, realize you’re using it at your own risk. If you do try it out, let me know if you have any feature requests or find any bugs I should squash!
LDS Linker is a WordPress plugin I created that changes any Latter-day Saint scripture reference into a hyperlink pointing to the Internet Edition of the LDS Scriptures. It recognizes references whether the book name is written out or shortened using the standard abbreviations.
Here are some examples:
Version 1.2.1 stopped working a few months ago when the LDS church made significant changes to the way search queries are performed against their scripture system. Version 1.3 attempts to address that issue but probably doesn’t go far enough.
I’m aware that D&C references are broken in this version (because the & symbol isn’t being encoded properly before being passed to scriptures.lds.org). I’m sure there are other issues I’m not aware of, so please let me know if you find anything fishy. I plan to rework the whole system soon so it links directly to passages instead of to search queries (i.e. Moro. 10:3-5 instead of Moro. 10:3-5).
- Download the plugin: lds-linker.1.4.zip
A big thanks to those who’ve helped me improve the code. Are you using LDS Linker? Please let me know what you think.
Software is bound to have bugs, and my code is no exception (in fact, it’s probably buggier than most). After seeing my plugin in action on a few blogs, I noticed some D&C references weren’t getting linked.
It seems that, by default, WordPress encodes ampersands with the
& entity rather than the
& entity I was expecting. My Textile 2 plugin uses
&, so the problem never came up in my testing.
Without further ado, here’s the new version:
- Download: lds-linker.1.1.zip
Again, don’t hesitate to submit your feedback.