SimplePortal

Support => English Support => Topic started by: lyon25 on October 20, 2009, 08:29:46 AM

Title: shoutbox does not work correctly
Post by: lyon25 on October 20, 2009, 08:29:46 AM
hello to everyone.
I'm using SMF 1.1.10 and Simpleportal 2.3.1 .
I can not get the shoutbox to work properly in Internet Explorer 8.
The shoutbox does not update (refresh) it, just updating (refreshing) the page from IE and I can update the shout.
In firefox does not even work the shoutbox.
Note: with version 3.2 did not work properly
 
Forgiveness for my difficulty in writing English, I'm using an on line translator.
I thank any help I can be provided.
Thanks.
Title: Re: shoutbox does not work correctly
Post by: Nathaniel on October 21, 2009, 04:38:57 AM
Can you please post a link to your website? (via PM if you don't want to publically post it)
Title: Re: shoutbox does not work correctly
Post by: lyon25 on October 21, 2009, 04:55:14 AM
Can you please post a link to your website? (via PM if you don't want to publically post it)
Code: [Select]
http://Os reformados.com/
I sent pm for you with data of login,
Thanks.

Edit: (30 November 2009, 22:56:07) Already solved the problem of the shoutbox on my forum.
The problem was the Portuguese language files UTF8. (I downloaded the original  language files in Simple Machines Forum).
Fortunately with the Portuguese language files of Brazil UTF8 (Also downloaded from simple Machines), the shoutbox works well.
I will compare the translation Portuguese and Brazilian and investigate possible errors that the Portuguese translation may contain.
The shout is working well in Internet Explorer 8, Firefox, Opera and Safari. However, the forum itself gets a graphical error, completely misaligned when using Safari.
I saw this topic "Safari bug when viewing threads" (http://simpleportal.net/index.php?topic=3614.0) that might help me solve the problem.

Thanks...

Edit 2: Ok, I found the error in the file: index.portuguese_pt-utf8.php

is necessary to find the following strings:

Find: in index.portuguese_pt-utf8.php
Code: [Select]
$txt['smf10'] = '<b>Hoje</b> &agrave;s ';
$txt['smf10b'] = '<b>Ontem</b> &agrave;s ';

Replace With:
Code: [Select]
$txt['smf10'] = '<b>Hoje</b> &#224;s ';
$txt['smf10b'] = '<b>Ontem</b>  &#224;s ';

The problem is that those 2 strings are ISO-5899-1, the shoutbox could not make the accurate reading of time in which the user sent the message. (sorry for this bad english).
When we change to UTF8, everything works fine.

To get an idea of the importance of these strings, I leave here the translation:

$txt['smf10'] = '<b>Today</b> at ';
$txt['smf10b'] = '<b>Yesterday</b> at ';

$txt['smf10'] = '<b>Hoje</b> &#224;s ';
$txt['smf10b'] = '<b>Ontem</b>  &#224;s ';

 

when we send a shout, it comes the following information:

lyon25: hi, SimplePortal
Today at 04:21:05

lyon25: hi, SimplePortal
Hoje às 04:21:05

I hope that has cleared, Thanks.
SimplePortal 2.3.8 © 2008-2024, SimplePortal