Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

wpForo 1.x.x [Solved] Edit CODE posts

6 Posts
2 Users
1 Reactions
1,136 Views
dimalifragis
Posts: 2600
Topic starter
(@dimalifragis)
Famed Member
Joined: 6 years ago

hello.

While editing topics/posts with CODE, the code is lost. In edit and at save.

How can we fix that?

thanks


5 Replies
dimalifragis
Posts: 2600
Topic starter
(@dimalifragis)
Famed Member
Joined: 6 years ago

Happens here also:

 

 


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

Famed Member
Posts: 3610

@dimalifragis,

Send your website URL to info[at]gvectors.com


dimalifragis
Posts: 2600
Topic starter
(@dimalifragis)
Famed Member
Joined: 6 years ago

No need to do so, see it  here, try to edit this post

<span><?php echo $_total_items ; ?></span>

2 Replies
Chris
(@chris)
Joined: 4 years ago

Famed Member
Posts: 3610

@dimalifragis,

Please go to \wp-content\plugins\wpforo\wpf-includes\ open wpf-hooks.php, find 

$post['body'] = htmlspecialchars($post['body']

is code will be comented by default, make it uncomented and add this at the end of the line

, ENT_NOQUOTES);

So the code will look like this

$post['body'] = htmlspecialchars($post['body'], ENT_NOQUOTES);

 


dimalifragis
(@dimalifragis)
Joined: 6 years ago

Famed Member
Posts: 2600

@chris That works very well now, thank you !