Notifications
Clear all

wpForo 1.x.x [Solved] Ratio turns into numbers

5 Posts
2 Users
0 Reactions
652 Views
Posts: 94
Topic starter
(@alice79b)
Estimable Member
Joined: 2 years ago

Hi,

on my forum, when I try to write a ratio like this 1:1:0,45, it turns into this 10,45.
How can I avoid that? Here it doesn't happen...

Thank you,
Alice

Topic Tags
4 Replies
Chris
Posts: 3650
(@chris)
Famed Member
Joined: 3 years ago

@alice79b,

Any examples, of what you are doing and what you get here and in your forum?

Posts: 94
Topic starter
(@alice79b)
Estimable Member
Joined: 2 years ago

I just write this: 1:1:0,45
But when I add the message I get "0,45". I don't do anything else but writing a ratio and posting it.
While in this forum you can see what I write, on my forum I see a number and not what I write.

It's like forum reads a kind of formula and I get back the result and not the formula itself.

1 Reply
Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3650

@alice79b,

Go to /wp-content/plugins/wpforo/wpf-includes/ open funtions.php file, search for` function wpforo_strip_shortcodes and comment the last line which start whith $text(line 416)

 

Posts: 94
Topic starter
(@alice79b)
Estimable Member
Joined: 2 years ago

Perfect. It works! 🙂