Textarea won't display a dollar sign & 2 numbers

I saw where Houstonlively posted something about this http://www.boonex.com/trac/dolphin/ticket/1046 but I don't see a resolution.  I've searched via google but can't seem to find what's causing it.  Anyone have a fix or suggestion?

Example: "Only $125 for" stored in the db table renders in the browser as "Only 5 for".  Is it a purifier or something?

Quote · 29 Jan 2014

I can confirm it happens, i just got around this bug while working on a module and it happens in "bx_repeat" loop only. The template parser somehow escapes it multiple times maybe, ofc i didn't looked in detail cuz even if i do i can't fix it for dolphin so i just get around it with running my text through.

str_replace('$', '$', $sStr);

I just used the entity for dollar and saved it from getting played up in

BxDolTemplate.php line 1307

$sValue = str_replace('$', '\\$', $aValues[$i]);

Probably a Moderator should move this to bug reports.

so much to do....
Quote · 29 Jan 2014

Reading through the comments on that ticket does not exactly make you feel all warm and fuzzy about Boonex; it appears the ticket was set to fixed without a fixed actually being done.  If I am wrong, then someone please correct me and tell the OP here what the fix was.

Geeks, making the world a better place
Quote · 29 Jan 2014

Your not wrong. There was no fix. They could never reproduce it.

I can't reproduce it on my site either.

https://www.deanbassett.com
Quote · 29 Jan 2014

 

Your not wrong. There was no fix. They could never reproduce it.

I can't reproduce it on my site either.

Then it was wrong for the ticket to be closed and set to fixed.

These are the hardest bugs to track down.  Perhaps with two reports, list what is common about the two; server config, php, mysql versions, etc.  Perhaps we can see something this time that was not possible with just one report back four years ago.

Geeks, making the world a better place
Quote · 29 Jan 2014

 

Your not wrong. There was no fix. They could never reproduce it.

I can't reproduce it on my site either.

Most dolphin blocks are generated through search class so no regression there. You gotta create a block that takes an array of content and use it in "bx_repeat" to generate the content. If you're confused about it, i can provide the full instruction with code.

so much to do....
Quote · 29 Jan 2014

REVISION: Still investigating. Just fyi, I did discover that $120 works ok in the Store Event module but drops the $12 in the Event Store module. 

I'm going to see if some pages are calling different TinyMCE iteration in the BaseEditorTinyMCE.php file.  Weird.

Quote · 29 Jan 2014

Okay lets do a test. Install the module attached and visit "yousite.com/m/bloggie" and check what you see. Post a screenshot or PM me your site address please.

btw here's mine

 

EDIT: I am running php 5.4.12 with apache 2.4.4 the basic wamp setup and i have seen this problem on php 5.3.3 and apache on centos.

test_module.zip · 13.4K · 110 downloads
Screenshot_5.png · 372.2K · 340 views
so much to do....
Quote · 29 Jan 2014

Nice. I'll have to do it later, got a lot of other 'real' work to do and it's getting late here.  Appreciate your help.

Quote · 29 Jan 2014

It is that repeat tag causing issues.  I found a couple of posts on a google search that indicate this is not a TinyMCE issue because other text editors are doing it too.

Good catch on what's causing it. Maybe someone will figure out why one of these days :)  For now, the str_replace('$', '$', $sStr);hack prashank25 suggests works fine.  Thank you.

Quote · 29 Jan 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.