Info
- 7 posts
- 5 voices
- Started 4 years ago by Olaf
- Latest reply from Ipstenu
- This topic is resolved
some problem with code in postings
-
- Posted 4 years ago #
Hi,
according this post form I have to put code between "Backticks".
This will not work (at least on my website), if I use the backticks most from the post will disappear. To show code I use the "code" html element, this works fine until I edit the post after submission. bbpress will replace the code tags with backticks.
Is this a bug or a php limit? (I remember me somthing with the backticks and php)
-
- Posted 4 years ago #
It's a bug.
I'ma guess you have Allow Images? At least for me, without AI backticks work fine, with AI they don't - I guess one of the code handling functions is broken by AI.
-
- Posted 4 years ago #
Thanks for pointing me on this, I will check the code from this plugin.
btw. is there some plugin to use bb code instead of html elements?
-
- Posted 4 years ago #
deactivating the AI plugin is the solution here...
-
- Posted 3 years ago #
I had this same issue, and I really like having images, so I looked into the code. I am not very savvy about reg expressions, so but if I comment out line 29 (
(.*?)$text = preg_replace("|) from the allow_images_encode_bad function of the plugin, everything seems to work.Does anyone know if I need that line for anything else? I don't want to open my site up to hackers or some such thing.
-
- Posted 3 years ago #
I've had the same problem and have also "fixed" it by disabling the Allow Images plugin.
I'm going to give the BBcode plugin a go, though if bbPress isn't going to implement a rich text editor (and I don't think it should) then a far better solution would be to use a lightweight markup system like Textile and/or Markdown.
-
- Posted 3 years ago #
I 'fixed' it by commenting out the following lines:
// remove_filter( 'pre_post', 'encode_bad' ); // add_filter( 'pre_post', 'allow_images_encode_bad', 9 ); // add_filter( 'pre_post', 'allow_images', 52 ); -
You must log in to post.