Page 1 of 1
Code blocks occasionally have weird output
Posted: Sun Jan 29, 2006 11:55 am
by Ambush Commander
Something weird is happening to code blocks...
Code: Select all
$this->matrix = array(
array(0, 0, 0),
array(0, 0, 0),
array(0, 0, 0)
);
The code is just
Code: Select all
$this->matrix = array(
array(0, 0, 0),
array(0, 0, 0),
array(0, 0, 0)
);
Icky. Any idea what is happening?
Posted: Sun Jan 29, 2006 12:16 pm
by John Cartwright
Yea I've brought that to the attention of the order moderators the other day and we've looking into possible causes..
Weird it is...
Posted: Sun Jan 29, 2006 4:45 pm
by Chris Corbyn
Just got back from my weekend away, this is very odd, and clearly not a one-off

Hmmm...
Posted: Mon Jan 30, 2006 1:42 pm
by nickman013
yeah that is kind of wierd, and i noticed it yesterday also, i wonder what it could be

Posted: Tue Jan 31, 2006 5:44 am
by Jenk
Someone update the regex/parser?
Only happens when you don't put the <?php at the begining of code block..
It would appear the replacement for
Code: Select all
<table width="98%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> <td><span class="genmed"><b>PHP:</b></span></td> </tr> <tr> <td class="code"> <div style="height: 5em; width: 100%; overflow: auto;"> nt color="#000000"><span style="color: #0000BB;"><?php
To insert the <?php tag when the user neglects to insert it themselves. Guess they never got round to the end tag, nor removing the extra bit they copied in by mistake

Posted: Tue Jan 31, 2006 5:48 am
by JayBird
Also happens if you start the code block with <?php, but there is whitespace before it
Posted: Tue Jan 31, 2006 9:07 pm
by nickman013
How can I put php code in with out that comming up>
Posted: Wed Feb 01, 2006 3:21 am
by Chris Corbyn
nickman013 wrote:How can I put php code in with out that comming up>
I wouldn't worry about it, hopefully we'll have this fixed soon. But to answer your question you make sure you have the opening and closing <?php ?> tags with no whitespace between them and the [ php] tags.
Posted: Wed Feb 01, 2006 3:11 pm
by nickman013
aright cool.
i will do it that way until it is fixed.
Posted: Fri Feb 03, 2006 7:42 pm
by Chris Corbyn