blogCFC mod for easy WOWWiki linking!
If you use Ray Camden's blogCFC, you can add this block to make WoW item/boss/whatever linking easier. In blog.cfc, around line 2088, renderEntry, is some code to format a code entry. Add a block after that to render a different sort of code.
<cfset counter = findNoCase("[wow ",arguments.string)>
<cfloop condition="counter gte 1">
<cfset codeblock = reFindNoCase("(?s)(.*)(\[wow )(.*)(\])(.*)",arguments.string,1,1)>
<cfif arrayLen(codeblock.len) gte 6>
<cfset codeportion = mid(arguments.string, codeblock.pos[4], codeblock.len[4])>
<cfset result = "<a href='http://www.wowwiki.com/#codeportion#' target='_blank'>#codeportion#</a>">
<cfset newbody = mid(arguments.string, 1, codeblock.len[2]) & result & mid(arguments.string,codeblock.pos[6],codeblock.len[6])>
<cfset arguments.string = newbody>
<cfset counter = findNoCase("[wow ",arguments.string,counter)>
<cfelse>
<cfset counter = 0>
</cfif>
</cfloop>
</cfif>
Now when making a blog post, I can type
and it will render as
Woo! Time savings, ftw

