{admin_control_row_all} <-- this section cannot be edited [message #7516] |
Fri, 29 November 2002 11:42 |
xiouxin
Messages: 11 Registered: August 2002 Location: Taipei
Karma: 0
|
Junior Member |
|
|
Dear Prottoss
In `thread.tmpl`, there's a section named {admin_control_row_all}. I use template editor to edit it, then the generated `thread.php` got parse error. The error is caused by some backslashes been stripped as follows:
[ORIGINAL]
$admin_control_row = '<td align=center class="RowStyleA"><a h
ref="javascript://" onClick="javascript: window_open(\'http://www.heygo.com/forum/ind
ex.php?t=mvthread&'._rsid.'&th='.$obj->id.'\', \'th_move\', 300, 400);">...
[MODIFIED]
$admin_control_row = '<td align=center class="RowStyleA"><a h
ref="javascript://" onClick="javascript: window_open('http://www.heygo.com/forum/ind
ex.php?t=mvthread&'._rsid.'&th='.$obj->id.'', 'th_move', 300, 400);">...
I restored `thread.tmpl` to the original version, edited it again with template editor, the generated `thread.php` still got stripslashed and parse error.
At last, I edited `thread.php` by hand, leave {admin_control_row_all} untouched. This surely work, but I have to bear in mind never edit this section in template editor again.
I wonder if this is unique for me? My php engine was modified with Big5 Chinese (for Taiwan/Hong Kong) encoding compiled in. The modified fuctions are addslash & stripslash.
Can you verify this for me? Thanks! ~~XiouXin
p.s. Other templates & sections within have no such problem.
|
|
|
|
|
Re: {admin_control_row_all} <-- this section cannot be edited [message #7755 is a reply to message #7516] |
Fri, 13 December 2002 16:03 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
After looking at the bug further and speaking to several PHP developers I've come to the conclusion that the bug is due to PHP's function not supporting multibyte data in some cases. You've apparently stumbled across one such case. The 'real' solution would be to use mbstring, which enables multibyte support in PHP, but that only is nearing maturity in PHP 4.3.0, which is soon to be out.
In the mean time I recommend that you make layout modification in you favorite text editor and not rely on the web control panel for template modifications.
FUDforum Core Developer
|
|
|
|
|
|