message editor problem [message #4536] |
Tue, 30 July 2002 01:18 |
|
When I go into the message editor area, this is what I see:
actions.tmpl
1
1
1
1
1
1
1
1
admincp.tmpl
1
1
1
1
1
1
allowed_user_lnk.tmpl
1
1
1
1
and so on and so on. When I click on any of those active links, an 'Edit' button appears. When I click on the Edit button, the following message appears:
Missing Message entry search_sorting inside i18n/english/msg
I have already upgraded to 2.2.4RC2 but know for a fact that this was occurring before.
|
|
|
|
|
Re: message editor problem [message #4562 is a reply to message #4536] |
Wed, 31 July 2002 07:18 |
|
computer_dan wrote on Tue, 30 July 2002 09:18 | When I go into the message editor area, this is what I see:
actions.tmpl
1
1
1
1
1
1
1
1
admincp.tmpl
1
1
1
1
1
1
allowed_user_lnk.tmpl
1
1
1
1
and so on and so on. When I click on any of those active links, an 'Edit' button appears. When I click on the Edit button, the following message appears:
Missing Message entry search_sorting inside i18n/english/msg
I have already upgraded to 2.2.4RC2 but know for a fact that this was occurring before.
|
same with you
|
|
|
|
|
|
Re: message editor problem [message #4661 is a reply to message #4643] |
Fri, 02 August 2002 06:45 |
|
i changed
"
if ( !isset($tmplmsglist[$file][$v[1]]) ) $tmplmsglist[$file][$v[1]] = 1;
"
to
"
if ( !isset($tmplmsglist[$file][$v[1]]) ) $tmplmsglist[$file][$v[1]] = $v[1];
"
in function makedeps()
it worked well
and i found it have two "readdir($dp);" in this function
it is seem to no use
[Updated on: Fri, 02 August 2002 08:02] Report message to a moderator
|
|
|
|
Re: message editor problem [message #4668 is a reply to message #4661] |
Fri, 02 August 2002 11:26 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
the 2 readdir() are needed, they are used to skip '.' and '..' directories.
FUDforum Core Developer
|
|
|
|
Re: message editor problem [message #4671 is a reply to message #4562] |
Fri, 02 August 2002 13:29 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Finally tracked down the problem in the msglist.php, it has now been corrected in latest CVS.
I've also optimized the parsing code a little, so it should be somewhat faster too.
FUDforum Core Developer
|
|
|
|
Re: message editor problem [message #4698 is a reply to message #4536] |
Sat, 03 August 2002 05:09 |
|
i test the follow code ,it hasn't chinese problem
but i am not sure whether it come up to your code?
$data = filetomem($msgfile);
preg_match_all('/(.+?):(\s*)(.+?)\n/s', $data, $regs, PREG_SET_ORDER);
$fdata = '';
foreach($regs as $v) {
$temp=str_replace("\\","",$HTTP_POST_VARS[$v[1]]);
$nval = str_replace("\n", '\n', $temp);
if ( isset($HTTP_POST_VARS[$v[1]]) && $v[3] != $nval ) {
if ( !isset($clist[$v[1]]) ) $clist[$v[1]] = 1;
$fdata .= $v[1].':'.$v[2].$nval."\n";
}
else
$fdata .= $v[0];
}
|
|
|
Re: message editor problem [message #4700 is a reply to message #4698] |
Sat, 03 August 2002 06:59 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Well this code only loads the data from the msg file into the an array, I do not suspect this code has a problem. If anything the problem is probably happening during writing of the data to disk.
FUDforum Core Developer
|
|
|
Re: message editor problem [message #4702 is a reply to message #4700] |
Sat, 03 August 2002 11:47 |
|
prottoss wrote on Sat, 03 August 2002 14:59 | Well this code only loads the data from the msg file into the an array, I do not suspect this code has a problem. If anything the problem is probably happening during writing of the data to disk.
|
yes, i agree with you now
first,i test the last code in the morning ,it work well but not support chinese ,so i changed it !
but i test it just now , it's all right ,i don't know why!!!!!!
|
|
|