FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » message editor problem
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
message editor problem [message #4536] Tue, 30 July 2002 01:18 Go to next message
computer_dan is currently offline  computer_dan   United States
Messages: 58
Registered: July 2002
Location: Toronto
Karma: 0
Member

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 #4537 is a reply to message #4536] Tue, 30 July 2002 01:44 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Is this a custom style?

FUDforum Core Developer
Re: message editor problem [message #4538 is a reply to message #4537] Tue, 30 July 2002 01:46 Go to previous messageGo to next message
computer_dan is currently offline  computer_dan   United States
Messages: 58
Registered: July 2002
Location: Toronto
Karma: 0
Member

no. it is still the 'default' theme and template, but with a few changes in the template pages themselves (like font size and such).

Re: message editor problem [message #4562 is a reply to message #4536] Wed, 31 July 2002 07:18 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

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 #4563 is a reply to message #4562] Wed, 31 July 2002 10:49 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Allright, I'll see if I can track down the problem.

FUDforum Core Developer
Re: message editor problem [message #4641 is a reply to message #4563] Thu, 01 August 2002 17:50 Go to previous messageGo to next message
computer_dan is currently offline  computer_dan   Canada
Messages: 58
Registered: July 2002
Location: Toronto
Karma: 0
Member

prottoss wrote on Wed, 31 July 2002 06:49

Allright, I'll see if I can track down the problem.


just an fyi, i upgraded to rc3 and it is still the same.



Re: message editor problem [message #4643 is a reply to message #4641] Thu, 01 August 2002 18:02 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
i know i din't look into this problem as of yet.

FUDforum Core Developer
Re: message editor problem [message #4661 is a reply to message #4643] Fri, 02 August 2002 06:45 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

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 #4664 is a reply to message #4661] Fri, 02 August 2002 07:57 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

i found the edit msg doesn't support chinese just now Crying or Very Sad
when i hit the edit button it will show "No such tag: T]N^~ -> T]N^"

[Updated on: Fri, 02 August 2002 08:00]

Report message to a moderator

Re: message editor problem [message #4668 is a reply to message #4661] Fri, 02 August 2002 11:26 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #4670 is a reply to message #4664] Fri, 02 August 2002 13:03 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
ezdb wrote on Fri, 02 August 2002 03:57

i found the edit msg doesn't support chinese just now Crying or Very Sad
when i hit the edit button it will show "No such tag: T]N^~ -> T]N^"





You see large part of the problem is the fact that PHP does not trully support multibyte languages. Even the mbstring module, ONLY supports Japanese, so FUDforum may have problems with web control panels that actually modify the source files like message editor.
I am sorry to say, but until PHP gains multibyte support for Chinese there is little I can do, and your best approach is to edit the template/msg files via a text editor.


FUDforum Core Developer
Re: message editor problem [message #4671 is a reply to message #4562] Fri, 02 August 2002 13:29 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #4682 is a reply to message #4671] Fri, 02 August 2002 19:18 Go to previous messageGo to next message
computer_dan is currently offline  computer_dan   Canada
Messages: 58
Registered: July 2002
Location: Toronto
Karma: 0
Member

awesome. just installed and working fine now.

thanks

Re: message editor problem [message #4698 is a reply to message #4536] Sat, 03 August 2002 05:09 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

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 Very Happy

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!!!!!!


  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Newsgroup importing
Next Topic: user profile themes do not automatically update
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 14:44:08 GMT 2024

Total time taken to generate the page: 0.03083 seconds