| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Tue Jan 03, 2006 7:02 am Post subject: Re: Forum topic display incorrectly |
|
The problem begins when users havent installed asian languages, but you can try a little workaround to fix the problem
find line 1005 of modules/Forums/viewtopic.php
| PHP: |
'POST_SUBJECT' => $post_subject,
|
and replace with
| PHP: |
'POST_SUBJECT' => Fix_Quotes($post_subject,1,1),
|
in case this will not work for you replace it with
| PHP: |
'POST_SUBJECT' => utf8_encode($post_subject),
|
Most likely utf8_encode will fix the problem for them but will output garbage for us.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
Śyama_Dāsa Developer


Offline Joined: Apr 19, 2004 Posts: 2048 Location: Dragonfly CMS Tribe
|
Posted: Tue Jan 03, 2006 6:20 pm Post subject: Re: Forum topic display incorrectly |
|
the problem with utf8_encode comes when the text is already utf-8
| PHP: |
utf8_encode(utf-8_text)⇒ garbage
|
_________________ AKA Akamu / Read these and your life will be successful | Find a Repair
--
Mods and Professional Support via YIM
Śyama_Dāsa's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) win32 / Apache 1.3.33 / MySQL 4.1.16/PHP 4.4/CPG-CVS ( browsers: Mozilla 1.7.x / IE6 / Opera 8.0)
|
|
| Back to top |
|
 |
vinhkhang_melb Newbie


Offline Joined: Aug 06, 2004 Posts: 26
|
Posted: Wed Jan 04, 2006 2:17 am Post subject: Re: Forum topic display incorrectly |
|
| NanoCaiordo wrote: |
The problem begins when users havent installed asian languages, but you can try a little workaround to fix the problem
find line 1005 of modules/Forums/viewtopic.php
| PHP: |
'POST_SUBJECT' => $post_subject,
|
and replace with
| PHP: |
'POST_SUBJECT' => Fix_Quotes($post_subject,1,1),
|
in case this will not work for you replace it with
| PHP: |
'POST_SUBJECT' => utf8_encode($post_subject),
|
Most likely utf8_encode will fix the problem for them but will output garbage for us. |
None of the above have any effect on the display. Maybe it wasn't the correct line of code that requires changes.
Below is an example of how the title shows garbage characters:
(deleted)
Why does only the title have such issue? Is this a bug in coding somewhere?
vinhkhang_melb's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux OS / Apache 1.3.34 / MySQL 4.3.11 / PHP 4.4.1 / DF 9.0.6.1
Last edited by vinhkhang_melb on Thu Jan 05, 2006 2:17 pm; edited 1 time in total |
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Wed Jan 04, 2006 4:40 am Post subject: Re: Forum topic display incorrectly |
|
Could you get a screenshot pls.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
vinhkhang_melb Newbie


Offline Joined: Aug 06, 2004 Posts: 26
|
Posted: Wed Jan 04, 2006 5:38 am Post subject: Re: Forum topic display incorrectly |
|
Here is another screenshot. Sorry if the image is a little bit big.
(deleted)
Even after changing different language packs, it still displays the same problem.
vinhkhang_melb's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux OS / Apache 1.3.34 / MySQL 4.3.11 / PHP 4.4.1 / DF 9.0.6.1
Last edited by vinhkhang_melb on Thu Jan 05, 2006 2:16 pm; edited 1 time in total |
|
| Back to top |
|
 |
Kuragari 500+ Posts Club


Offline Joined: Apr 25, 2005 Posts: 563 Location: AnimeEgo
|
Posted: Wed Jan 04, 2006 8:52 am Post subject: Re: Forum topic display incorrectly |
|
This could possible be a font problem? That particular header and page title in that theme uses "Trebuchet MS" font by default (if exists)
The rest of the site uses Veranda
Just an idea
Kuragari's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux 2.6.9 / 1.3.34 / 4.1.14 / 4.4.1 / CVS
|
|
| Back to top |
|
 |
vinhkhang_melb Newbie


Offline Joined: Aug 06, 2004 Posts: 26
|
Posted: Thu Jan 05, 2006 2:10 am Post subject: Re: Forum topic display incorrectly |
|
| Kuragari wrote: |
This could possible be a font problem? That particular header and page title in that theme uses "Trebuchet MS" font by default (if exists)
The rest of the site uses Veranda
Just an idea  |
YOU ARE A STAR, Kuragari!!!!
I've removed that "Trebuchet MS" font and BANG! it WORKS PERFECTLY, displaying correct characters!!! I'd also like to thank Akuma & NanoCaiordo. I really appreciated for all your help & quick responses!
Cheers!!
vinhkhang_melb's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux OS / Apache 1.3.34 / MySQL 4.3.11 / PHP 4.4.1 / DF 9.0.6.1
|
|
| Back to top |
|
 |
alva 1000+ Posts Club


Offline Joined: May 31, 2005 Posts: 1150 Location: The Netherlands
|
Posted: Thu Jan 05, 2006 11:17 am Post subject: Re: Forum topic display incorrectly |
|
Which themes have these issues then? Does anybody know?
Any word on why the Dragonfly theme shows blocks instead of arrows in the Firefox windowtitle?
The site is in maintenance now, but last time I visited it looked like a modified cpgnuke/default to me. If I remember well it was modified, having a PH2-like header.
alva's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache/5.0.24/5/9.1 CVS
|
|
| Back to top |
|
 |
marcelloiets123 Newbie


Offline Joined: Mar 29, 2006 Posts: 17
|
Posted: Fri Mar 31, 2006 3:01 pm Post subject: Re: Forum topic display incorrectly |
|
| Kuragari wrote: |
This could possible be a font problem? That particular header and page title in that theme uses "Trebuchet MS" font by default (if exists)
The rest of the site uses Veranda
Just an idea  |
Coppermine headers display incorrectly
So you solved the problem, where exacly and what do i have to change. In the coppermine headers I have also strange symbols ë =
marcelloiets123's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) CPG9.0.6.1** PHP Version 4.4.2-1**MySQL4.1.15** Linux kiwi 2.6.12-1-686-smp
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Fri Mar 31, 2006 10:47 pm Post subject: Re: Forum topic display incorrectly |
|
have a look in themes/yourtheme/style/style.css and search for .maintitle
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
|
|