Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ Languages and alternative language support ⇒ i18n - l10n (languages) :: Archives ⇒ Forum topic display incorrectly :: Archived


Forum topic display incorrectly :: Archived
Want a language pack or convertor? Have feedback on either of these? Are you a developer of one of these? Here is the place to post. Read the announcements here first!
Go to page Previous  1, 2
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  i18n - l10n (languages)

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

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
Śyama_Dāsa
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 2048
Location: Dragonfly CMS Tribe
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
vinhkhang_melb
Newbie
Newbie

Offline Offline
Joined: Aug 06, 2004
Posts: 26

PostPosted: 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
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
vinhkhang_melb
Newbie
Newbie

Offline Offline
Joined: Aug 06, 2004
Posts: 26

PostPosted: 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. Embarassed

(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
View user's profile Visit poster's website
Kuragari
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Apr 25, 2005
Posts: 563
Location: AnimeEgo
PostPosted: 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 Wink


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
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
vinhkhang_melb
Newbie
Newbie

Offline Offline
Joined: Aug 06, 2004
Posts: 26

PostPosted: 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 Wink

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
View user's profile Visit poster's website
alva
1000+ Posts Club
1000+ Posts Club

Offline Offline
Joined: May 31, 2005
Posts: 1150
Location: The Netherlands
PostPosted: 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
View user's profile Visit poster's website
marcelloiets123
Newbie
Newbie

Offline Offline
Joined: Mar 29, 2006
Posts: 17

PostPosted: 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 Wink
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
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  i18n - l10n (languages)
Page 2 of 2
All times are GMT
Go to page Previous  1, 2

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

lesa meira...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy