Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
With Russian language. When you log with your username and password system say to you "Hello, UserName!" If you Publicly Displayed Name in Russian it shows to you unproper encoding. If you post a message it shows correct encoding on the board, but your system always gives annoying error.

I don't like to say to customers "Oh, it's Ok, just small bug."

[This message was edited by Charles Capps on September 05, 2002 at 02:28 PM.]

Anonymous
Unregistered
Anonymous
Unregistered
Yes I have the same error
But my language is Arabic
I think this is because the public name is stored in a cookies and it is encoded to the board using the function unescape which only work for the Latin character set
Any way it should not accept your public name that has a charcter not in the Latin character set.
The only way I could think of to solve this problem in my board is to remove the public name welcome message and replace it by welcome!!
And to do this I have change the fooling code in public_common.pl
Code
    $show_logout = qq~

<script language="Javascript" type="text/javascript">

< !--

var user_cookie = getCookie('ubber$vars_config{Cookie_Number}');

if(''==user_cookie &#0124;&#0124;  null==user_cookie) {

document.writeln('$vars_wordlets{not_logged_in}' , ' <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=login">$vars_wordlets{login_now}</a> $vars_wordlets{or} <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=agree">$vars_wordlets{register_link}</a>')

} else {

var user_array=user_cookie.split("")

user_array[2] = unescape(user_array[2]);

document.writeln('$vars_wordlets{hello} ', user_array[2]);

document.writeln('[ <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=logoff">'

,'<acronym title="$vars_wordlets{logout_acronym}">'

,'$vars_wordlets{logout}</acronym></a> ]');

}

//-->

</script>

~ unless ($vars_registration{DisplayRegistration} ne "YES");

    $show_logout_noreg = qq~

<script language="Javascript" type="text/javascript">

< !--

var user_cookie = getCookie('ubber$vars_config{Cookie_Number}');

if(''==user_cookie &#0124;&#0124;  null==user_cookie) {

document.writeln('$vars_wordlets{not_logged_in}');

} else {

var user_array=user_cookie.split("")

user_array[2] = unescape(user_array[2]);

document.writeln('$vars_wordlets{hello} ', user_array[2]);

document.writeln('[ <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=logoff">'

,'<acronym title="$vars_wordlets{logout_acronym}">'

,'$vars_wordlets{logout}</acronym></a> ]');

}

//-->

</script>

~ unless ($vars_registration{DisplayRegistration} ne "YES");
To
Code
    $show_logout = qq~

<script language="Javascript" type="text/javascript">

< !--

var user_cookie = getCookie('ubber$vars_config{Cookie_Number}');

if(''==user_cookie &#0124;&#0124;  null==user_cookie) {

document.writeln('$vars_wordlets{not_logged_in}' , ' <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=login">$vars_wordlets{login_now}</a> $vars_wordlets{or} <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=agree">$vars_wordlets{register_link}</a>')

} else {

var user_array=user_cookie.split("")

document.writeln('$vars_wordlets{hello} '!!');

document.writeln('[ <a href="$vars_config
{CGIURL}/ultimatebb.cgi?ubb=logoff">'

,'<acronym title="$vars_wordlets
{logout_acronym}">'

,'$vars_wordlets{logout}</acronym></a> ]');

}

//-->

</script>

~ unless ($vars_registration{DisplayRegistration} ne "YES");

    $show_logout_noreg = qq~

<script language="Javascript" type="text/javascript">

< !--

var user_cookie = getCookie('ubber$vars_config{Cookie_Number}');

if(''==user_cookie &#0124;&#0124;  null==user_cookie) {

document.writeln('$vars_wordlets{not_logged_in}');

} else {

var user_array=user_cookie.split("")

user_array[2] = unescape(user_array[2]);

document.writeln('$vars_wordlets{hello} ', '!!');

document.writeln('[ <a href="$vars_config
{CGIURL}/ultimatebb.cgi?ubb=logoff">'

,'<acronym title="$vars_wordlets
{logout_acronym}">'

,'$vars_wordlets{logout}</acronym></a> ]');

}

//-->

</script>

~ unless ($vars_registration{DisplayRegistration} ne "YES");

Anonymous
Unregistered
Anonymous
Unregistered
As was stated by wwb95, this is an issue with the way we store the username within the UBB cookies. Unfortunately, this is not something we can easily resolve at this time...

--
Charles Capps
Programmer, Infopop Corporation
Please do not contact me privately for support - post on the board or open a support ticket instead!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (Nightcrawler, Ruben), 570 guests, and 156 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)