I'm running into problems with the visiual editor over writting my work, and I'm not sure what's triggering the overwrite.
Example:
I have added a button and this is the code created by PHPRunner.
<SPAN class=runner-btnframe><SPAN class=runner-btnleft></SPAN><SPAN class=runner-btnright></SPAN><A id=Accept_AERev class=runner-button href="#" typeid="ib">Accept</A></SPAN>
All is good until you start building in some custom functionality such as making the button only visible to certain users, and maybe I'm doing something wrong but I'll explain what I'm ding for you to evaluate.
For starters I have to manually add the tag before and after the button code to look like so:
{BEGIN MYBUTTON_button}<SPAN class=runner-btnframe><SPAN class=runner-btnleft></SPAN><SPAN class=runner-btnright></SPAN><A id=Accept_AERev class=runner-button href="#" typeid="ib">Accept</A></SPAN>{END MYBUTTON_button}
Then I add the code to the Before Display:
if($_SESSION['example']=='True')
{
$xt->assign("MYBUTTON_button",True);
}
else
{
$xt->assign("MYBUTTON_button",FALSE);
}
All works great until a later point in time where my BEGIN and END tags are removed by PHPRunner. The exact point in time is unknown as I'm not really paying attention to it until I notice during testing that I can see buttons again that my user level shouldn't be showing. So am I doing something wrong, and it just happens to be working or is it known that PHPRunner removes manually added tags at some point in time?