CMS MADE SIMPLE FORGE

TruetypeText

 

[#2140] TruetypeText images dont display on Windows OS

avatar
Created By: Prue Rowland (psy)
Date Submitted: Thu Mar 06 19:29:43 -0500 2008

Assigned To: Jonathan Schmid (Foaly*)
Version: None
CMSMS Version: None
Severity: Major
Resolution: Fixed
State: Closed
Summary:
TruetypeText images dont display on Windows OS
Detailed Description:
Everything displays correctly on Unix, however the  directory separator is
invalid on Windows and as a result, no TTT images are shown in either admin or
client-side site.

Quick and dirty fix:

Insert the following above the return $result statement in function
getImage($text):

$filepath = str_replace('\\', '/', $filepath);


Environment:
Windows XP SP2
Wampserver:
 - Apache/2.2.4 (Win32)
 - PHP 5.2.3
 - MYSQL 5.0.41-community-nt
CMSMS 1.2.3 "Black Rock" 
Truetype Text module 2.0.2

Hope this helps,
Cheers, psy





History

Comments
avatar
Date: 2009-08-27 12:54
Posted By: Carl Gustav Theodorius von und zu Gans (echo5-7)

to solve this, enter in /modules/truetypetext/class.style.php in function
getImage($text) right after

		if ($text == '') return '';
		$text = html_entity_decode($text);

this code

		$text = str_replace('ü','ü',  $text);
		$text = str_replace('ä','ä',  $text);
		$text = str_replace('ö','ö',  $text);
		$text = str_replace('Ü','Ö',  $text);
		$text = str_replace('Ä', 'A', $text);
		$text = str_replace('Ö','O',  $text);
		$text = str_replace('ß','ß',  $text);

But dont forget to enable tinymce to encode html entities. 

Disadvantage:
Some search engines might have problems with the entity encoding.
      
avatar
Date: 2011-07-24 08:11
Posted By: Jonathan Schmid (Foaly*)

To solve it just remove cms_join_path() from class.style.php, because it's not a
path, but an URI.
      
avatar
Date: 2011-07-27 08:27
Posted By: Jonathan Schmid (Foaly*)

will be fixed in the next version.
      
avatar
Date: 2011-12-31 13:01
Posted By: Jonathan Schmid (Foaly*)

fixed in svn.
      
avatar
Date: 2012-01-05 14:56
Posted By: Jonathan Schmid (Foaly*)

version 2.2 released!
      
Updates

Updated: 2012-01-05 14:56
state: Open => Closed

Updated: 2011-12-31 13:01
resolution_id: 6 => 7
cmsms_version_id: => -1

Updated: 2011-07-27 08:27
resolution_id: => 6
assigned_to_id: 100 => 12994