Tetra-WebBBS Support Forum

Re: webbbs_text.pl
In Response To: Re: webbbs_text.pl ()

: Sorry. Willing to take a look as described before.
: URL of forum and debug enabled please.

And you are persevering. :) Did not know that i must have the site to test your script. :) But fine, I will try to think up something soon.
.
: don't get me wrong .... I'm not going to download anything.

You could easily took the Russian language file from Darryl's pack, these strings are the same for the all versions.

: For historic reasons the name is used
: as the id and is sanitized using "+" as a replacement
: character.

I know about that since Darryl's work.

: and backwards compatibility

I just thought that it not a problem for you - a simple database converter or something like that.

: However, I don't know at all how cyrilic language handles its
: "characters".
: If you point me to your forums and help me to understand how
: cyrillic characters are working, then we could try to add a bit
: of a plugin to let the scripts "autoedit" usernames.

Will it work with something like this 范例, this 例, this 예를 들어, this לדוגמה or this المثال for example? For multilingual forums, in a word.

: ..... wondering why you're trying to mask your location. Your IP
: resolves to the United States, but could be a proxy. .... I'm
: always curious ;)

I simply like to travel much. :D

: Found something which could be helpfull to build a plugin and to
: automatically map cyrillic "names" to
: "ascii" or latin charactersets

webbbs_settings.pl:
$convert_email = 1;

webbbs_basic.pl:
sub Initialize_Data {
...
if($convert_email && $maillist_address) { $cemail = &convert_to_ord($maillist_address); }
if($cemail) { $email_link = "\"mailto:".$cemail."\""; $visible_address = $cemail; }
else { $email_link = "\"mailto:$maillist_address\""; $visible_address = $maillist_address; }
$maillist_link = "<a href=".$email_link.">";
$maillist_link .= "$visible_address<\/a>";
...
}

sub convert_to_ord {
my $text = $_[0];
my $ctext = join ';&#', unpack('C*', $text);
$ctext = "&#".$ctext.";";
return $ctext;
}

Something like this? :)