Home arrow Forum mod_smf_recenttopics 2.0 doesn´t display well some characters
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2008, 09:56:19 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Addon Discussion
| |-+  Joomla Modules
| | |-+  mod_smf_recenttopics 2.0 doesn´t display well some characters
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 [2] Go Down Print
Author Topic: mod_smf_recenttopics 2.0 doesn´t display well some characters  (Read 6372 times)
-Wolverine
Developer
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: mod_smf_recenttopics 2.0 doesn´t display well some characters
« Reply #15 on: November 17, 2006, 11:14:45 AM »

ok, shouldn't have to do this, but try this fix in mod_smf_recenttopics.php(in modules/):

on or around line 275 find this code
Code:
$subject_chars = str_replace('&', '&', $post['subject']);
$subject_chars = substr($subject_chars, 0, $int_num_char);
$subject_chars = str_replace('&', '&', $subject_chars);
echo $subject_chars;

replace with

Code:
//$subject_chars = str_replace('&', '&', $post['subject']);
//$subject_chars = substr($subject_chars, 0, $int_num_char);
//$subject_chars = str_replace('&', '&', $subject_chars);
//echo $subject_chars;
echo substr(html_entity_decode($post['subject']), 0, $int_num_char);


And then on or around line 284 find this code
Code:
echo $post['subject'];

and replace with

Code:
//echo $post['subject'];
echo html_entity_decode($post['subject']);

Let me know if that solves the problem.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
GlingGlo
Joomla Pro
**

Karma: +1/-1
Offline Offline

Posts: 99


View Profile
Re: mod_smf_recenttopics 2.0 doesn´t display well some characters
« Reply #16 on: November 28, 2006, 05:30:02 PM »

Yes, it does solve the issue  Wink

will that make it to whenever a new version of the module is released?

Thanks,
NiCo
Logged
-Wolverine
Developer
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: mod_smf_recenttopics 2.0 doesn´t display well some characters
« Reply #17 on: November 28, 2006, 05:33:47 PM »

yes, Ill commit the changes tonight and upload it to the remository.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Eynar
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 11


View Profile WWW
Re: mod_smf_recenttopics 2.0 doesn´t display well some characters
« Reply #18 on: January 23, 2007, 03:45:39 PM »

I have the same problem too.
Logged

Saludos y Bendiciones en Cristo y María de Cuapa.

Eynar Alberto Gaitán Rivas

http://rcc-niquinohomo.blogspot.com
http://directorio-catolico.blogspot.com
Jason
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
Re: mod_smf_recenttopics 2.0 doesn´t display well some characters
« Reply #19 on: March 13, 2007, 06:05:34 AM »

I have tried this!!
But it's not working for Tranditional Chinese (UTF-8).
Any suggestions?
Logged
Kostas
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: mod_smf_recenttopics 2.0 doesn´t display well some characters
« Reply #20 on: March 15, 2007, 07:43:34 AM »

Same problem here with the update version of the module.. The changes you suggest are in place and still it doesnt show correct UTF-8 characters

I should say that both db and website are in utf8. It just shows question marks!!!!

Edit:
Forgot to mention the language is greek. The rest of the site is working perfect.

Because the erroneus characters appeared from the discussbot i also made a new post manually. The same result!
« Last Edit: March 15, 2007, 08:42:47 AM by Kostas » Logged
prljavibluzer
Joomla Newbie
*

Karma: +0/-2
Offline Offline

Posts: 2


View Profile
Re: mod_smf_recenttopics 2.0 doesn´t display well some characters
« Reply #21 on: February 03, 2008, 04:48:54 PM »

I have that problem too and that code doesn't solve utf-8 characters.

My site is in utf-8 completely, too.

However in previous version of my site i used mambo and orstio's software and that was solved with this hard-coding:

mysql_select_db($mosConfig_db);
mysql_query( "SET CHARSET 'utf8'" );
$sql = "SELECT id FROM ".$mosConfig_dbprefix."menu WHERE link='index.php?option=com_smf'";

SET CHARSET is the key to the solution.  But where to put it?
Logged
samurai-lupin
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: mod_smf_recenttopics 2.0 doesn´t display well some characters
« Reply #22 on: April 02, 2008, 08:29:32 PM »

I'm having the same problem using German characters and would be happy if someomne could solve this problem. Characters like Ä Ü Ö etc. are not getting displayed properly.
Logged
Pages: 1 [2] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login