Hmm OK the test variables are working now, but I have a problem with teh original $message.
It seems like at some point the $message variable turns from being the text inside the HIDE tags
Code:
[HIDE]this content here[/HIDE]
& at some point it is parsed into the entire post...
Code:
The full topic post is then held in the topic variable
[HIDE]this content here[/HIDE]
See, like this
So I need a way to intercept it before it gets parsed as such..
Here's what's in the hide hack xml file (notice the $message variable - which does output the text I need correctly)
Code:
<template name="bbcode_hposts" templatetype="template" date="1155999281" username="admin" version="2.7.0"><![CDATA[<div style="margin: 5px 20px 20px 20px;" id="<if condition="$canview">enb<else />dis</if>_hhr_hide::{$this->vars['postid']}_{$hidefieldid}">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="border:1px inset">
<div>$caption:</div>
<div style="font-style:italic">
<if condition="$canview">
$message
<else />
$vbphrase[hidetag_accessdenied]
</if>
</div>
</td>
</tr>
</table>
</div>]]></template>
And here's what is currently in the postbit_display_complete
Code:
$post['message'] = $GLOBALS['hhr']->parse_bbcode($post['message'], $forum['forumid'], $thread['threadid'], $post['postid'], $post['userid']);