for tms do a preg_replace
search for
#<xen:if is="{\$canWatchThread}">#s
replace with
<xen:if is="{$canWatchThread}">
<label><a href="{xen:link search/search, '', 'type=post', 'thread_id={$thread.thread_id}', 'users={$visitor.username}'}">Your Posts</a></label>
the only diff is it will...