Template Club Package Silver Pacakage Gold Pacakage Developer Pacakage Accepted Payments Member Login
Welcome, Guest
Please Login or Register.    Lost Password?
BUG: Display following dollar sign ($) (1 viewing) (1) Guest
Go to bottomPost New TopicPost Reply Favoured: 0
TOPIC: BUG: Display following dollar sign ($)
#30626
BUG: Display following dollar sign ($) 1 Year, 9 Months ago  
Inside a rounded corner box, there's an display error on numbers that start with a dollar sign ($). The dollar sign and the two numbers following it do not display.

Text that reads $125,000 displays as 5,000

Text that reads $100 displays as 0

Xtypo version 1.2, J 1.0.15

Thanks for the help.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
Borisgoodenough (Visitor)

Logged Logged  
 
Reply Quote  
#31200
Re:BUG: Display following dollar sign ($) 1 Year, 9 Months ago  
I am having this problem also. I hope an answer can be found soon.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
Steve (Visitor)

Logged Logged  
 
Reply Quote  
#31201
Re:BUG: Display following dollar sign ($) 1 Year, 9 Months ago  
I was trying to get $200 to print out and I had to type in $$22200 to get it to print. I am not sure why, but it gave me the result I wanted, but not what I expected.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
Steve (Visitor)

Logged Logged  
 
Reply Quote  
#31519
Re:BUG: Display following dollar sign ($) 1 Year, 8 Months ago Karma: 0  
Thanks Steve, your fix woked for me!
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
BillyC (User)
SeniorPlazzoic
Posts: 56
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: New Zealand Birthdate: 1958-07-16
Logged Logged  
 
Reply Quote  
#40858
Re:BUG: Display following dollar sign ($) 1 Year, 3 Months ago  
The LoadPosition plugin from Joomla had the exact same problem: forum.joomla.org/viewtopic.php?f=199&t=371762

They fixed the LoadPosition bug in version 1.5.10 by using str_replace instead of preg_replace.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
Leo (Visitor)

Logged Logged  
 
Reply Quote  
#40875
Re:BUG: Display following dollar sign ($) 1 Year, 3 Months ago  
Ok here's a quick fix:

Find this (around line 505):
Code:

$row->text = preg_replace("'{".preg_quote($key)."}".$a."{/".preg_quote($key)."}'s", $startcode.$code.$endcode , $row->text );


And replace it with:
Code:

$row->text = preg_replace("'{".preg_quote($key)."}".preg_quote($a)."{/".preg_quote($key)."}'s", $startcode.$code.$endcode , $row->text );
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
Leo (Visitor)

Logged Logged  
 
Reply Quote  
Go to topPost New TopicPost Reply