EVB text not displaying correct

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 01-07-2008, 02:34 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 804
Weird I wonder why mine is different than yours is I will add your file and see what happens

Send a few test announcements
Reply With Quote
  #22 (permalink)  
Old 01-07-2008, 02:51 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 804
hmmmmm still trying to make this not mess up

Last edited by bbrian017; 01-09-2008 at 11:47 AM.
Reply With Quote
  #23 (permalink)  
Old 01-08-2008, 04:13 AM
beatniak's Avatar
Pligg Donor
 
Join Date: Apr 2006
Location: NL - 52.100863;5.108356
Posts: 197
Resolved the weird characters on goboz by adding these 2 lines AS THE FIRST ONES in the remove_error_creating_characters function:
Code:
function remove_error_creating_chars($chars) { 
    $replace=array( 
    '—' => '--', // Steef2k8-01 - remove really weird characters
  '’' => '\'', // Steef2k8-01 - remove really weird characters  
I said as the first 2 lines of all the replaces, because below it some characters from these strings are getting replaced, so the function won't find — and ’ anymore.
i.e.:
Code:
    'â' => 'a',

Last edited by beatniak; 01-08-2008 at 04:18 AM.
Reply With Quote
  #24 (permalink)  
Old 01-08-2008, 06:41 AM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
Thanks beatniak.

Geoserv
Reply With Quote
  #25 (permalink)  
Old 01-09-2008, 11:43 AM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 804
Quote:
Originally Posted by beatniak View Post
Resolved the weird characters on goboz by adding these 2 lines AS THE FIRST ONES in the remove_error_creating_characters function:
Code:
function remove_error_creating_chars($chars) { 
    $replace=array( 
    '—' => '--', // Steef2k8-01 - remove really weird characters
  '’' => '\'', // Steef2k8-01 - remove really weird characters  
I said as the first 2 lines of all the replaces, because below it some characters from these strings are getting replaced, so the function won't find — and ’ anymore.
i.e.:
Code:
    'â' => 'a',
ok sorry I didn't get this, could you please tell me what file and line y ou added this code to

Sorry about not understanding...

unless you added it here somewhere,

Code:
function remove_error_creating_chars($chars) { 
	$replace=array( 
	'?' => 'A',
	'?' => 'A', 
	'?' => 'a',
	'?' => 'a2',
	'?' => 'a3',
	'?' => 'a4',
	'?' => 'a5',
	'?' => 'a',
	'?' => 'a',
	'?' => 'ae',
	'?' => 'ae',
	'?' => 'e',
	'?' => 'E',
	'?' => 'E',
	'?' => 'I', 
	'?' => 'i', 
	'?' => 'I',
	'?' => 'i',
	'?' => '',
	'?' => '',
	'?' => '',
	'?' => 'n',
	'?' => 'N',
	'?' => 'O',
	'?' => 'o',
	'?' => 'O',
	'?' => 'O',
	'?' => 'O',
	'?' => 'o',
	'?' => 'o',
	'?' => 'o',
	'?' => 'o',
	'?' => 's',
	'?' => 's',
	'?' => 'U',
	'?' => 'U',
	'?' => 'U',
	'?' => 'u',
	'?' => 'u',
	'?' => 'u',
	'?' => 'Y',
	'?' => 'y',
	'?' => 'Z', 
	'?' => 'z', 
	'?' => ''
	);
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show category keywords as text on the site? gnalkit Questions and Comments 4 11-26-2008 05:17 AM
Text bleeding over problem!! lazynewt Questions and Comments 5 03-12-2008 05:32 PM
9.6 error xbizsky Questions and Comments 28 07-04-2007 03:54 AM
Need help setting text in header dinki Questions and Comments 0 06-30-2007 05:32 PM
Safari underlining all of the text... kevinD Questions and Comments 2 05-29-2007 12:51 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development