Trying to do a str_replace in postbit_legacy and I'm not getting any results - Here's my code.
PHP Code:
if ($vbulletin->options['legacypostbit'])
{
$find = compile_template('<vb:if condition="$post[\'postid\'] AND $post[\'threadid\'] AND !$show[\'moderated\']">
<a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="<vb:if condition="$show[\'inlinemod\']">ie</vb:if>postcounter">#{vb:raw post.postcount}</a><a id="postcount{vb:raw post.postid}" name="{vb:raw post.postcount}"></a>
</vb:if>');
$add = "testing...";
$vbulletin->templatecache['postbit_legacy'] = str_replace($find, $find . $add, $vbulletin->templatecache['postbit_legacy']);
}
What it's supposed to be doing is looking for the post number, and then adding my variable onto it.
Any ideas/suggestions?
Thanks