Notifications
Clear all

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

6 Posts
2 Users
1 Reactions
701 Views
dimalifragis
Posts: 2611
Topic starter
(@dimalifragis)
Famed Member
Joined: 5 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: 2611
Topic starter
(@dimalifragis)
Famed Member
Joined: 5 years ago

Happens here also:

 

 

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

Famed Member
Posts: 3627

@dimalifragis,

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

dimalifragis
Posts: 2611
Topic starter
(@dimalifragis)
Famed Member
Joined: 5 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: 3 years ago

Famed Member
Posts: 3627

@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: 5 years ago

Famed Member
Posts: 2611

@chris That works very well now, thank you !