This topic is locked

Visual Editor -> HTML Editor thinks '<' operator is HTML

2/22/2008 8:38:23 AM
PHPRunner General questions
S
spintz author

I want custom code that does the following -

{if $value_statusid < 9}<SPAN class=buttonborder><INPUT class=button id=approve type=submit value=&nbsp;&nbsp;Approve&nbsp;&nbsp; name=submit1></SPAN>{/if}


The problem is, once changing back to the Visual Editor, and then back to the HTML Editor, I see this code -

{if $value_statusid }&lt;=

8}<SPAN class=buttonborder><INPUT class=button id=approve type=submit value=&nbsp;&nbsp;Approve&nbsp;&nbsp; name=submit1></SPAN>{/if}


It should not worry about < or > inside of smarty {}'s. Is there something I'm doing wrong, or is this a bug?

J
Jane 2/22/2008

Hi,
please check last PHPRunner 4.2 version.

http://www.asprunner.com/forums/index.php?showtopic=7148

S
spintz author 2/22/2008

Hi,

please check last PHPRunner 4.2 version.

http://www.asprunner.com/forums/index.php?showtopic=7148


I will eventually, however, I've found the smarty language also allows you to use '<' or 'lt' and '>' or 'gt', so just using 'lt' for now is getting me past the issue.
Thanks.

S
spintz author 2/22/2008

I just downloaded PHPRunner 4.2 and it gave me various errors loading my 4.1 project, and then crashed. I clicked Do Not Send, and now the process is a zombie process, Task Manager can't even kill it.
Eventually, the task died, after "End Process" like 10 times. When I loaded the project the 2nd time, it did better and did not crash, but now I'm getting

Unable to apply project changes to the following page(s).

Check these pages and reset if they look wrong.

<various pages>


Unfortunately, that's just not enough information. I do not want to reset the pages, as I've spent a lot of time building in custom smarty code and various formatting changes. If there were more specific reasons given as to why it can't apply changes, then maybe I could fix them. Or maybe the HTML Editor could show what code is different from the original generated code, so I could save that code off and add back later, easier.

S
spintz author 2/22/2008

Another weird bug, I had PHPRunner 4.1 running as well, while testing 4.2. I closed 4.2 and was going to delete the project and re copy it from my 4.1 project location, and it wouldn't let me. I had to close the 4.1 process, in order for the phpr project file from the 4.2 application to be deleted.
EDIT: While I was able to delete the .phpr file, the folder it was in, I am now getting an Access Denied, when trying to delete. I have to reboot now in order to fix this. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=26223&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

I have a deadline for next Wednesday, after that, maybe I can spend some time with more detailed bug reports for this 4.2 beta build, but I have to get back to work for now <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=26223&image=2&table=forumreplies' class='bbc_emoticon' alt=':D' />

S
spintz author 2/22/2008

So you know, the folder handle was being left open by Dr Watson, not directly your app, but because of the crash, Dr Watson was trying to do something. I really need to disable that thing.

K
kamil6x 10/31/2008

Using PHP Runner 4.2 and still getting the issue of the editor converting '<' to 'lt;'. Also code is completely reformatted eg. all tabs and carriage returns removed from custom code in HTML editor.
How does one fix this?