Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

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

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

Happens here also:

 

 

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

Famed Member
Posts: 3611

@dimalifragis,

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

dimalifragis
Posts: 2601
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: 4 years ago

Famed Member
Posts: 3611

@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: 2601

@chris That works very well now, thank you !