Info
- 10 posts
- 3 voices
- Started 3 years ago by meitershaker
- Latest reply from meitershaker
- This topic is not resolved
bbcode lite : display others bbcodes in code, into a code balise
-
- Posted 3 years ago #
Hi,
i have a little problem with the bbcode lite plugin: when i use the code bbcode, and when i display others bbodes into it, this bbcodes are not displayed in code.. so it is possible to correct that?
Bye
++
-
- Posted 3 years ago #
Can you post a screenshot showing the functionality that is missing, or what the plugin is doing wrong?
-
- Posted 3 years ago #
bbcode is not displayed between code tags or backticks.
This is a purposely designed feature, not a bug. -
- Posted 3 years ago #
ah ck, it is possible to have the choice for that? in example, i would like to propose "posts templates" for presentations or interviews, and i need that.
-
- Posted 3 years ago #
I don't understand what you are trying to do.
IMHO, anything between code (or backticks) should ALWAYS be seen raw, unfiltered.
If you need a tag similar to CODE, why not add the PRE tag to bbPress's allowed tags. bbCode will work between PRE tags.
-
- Posted 3 years ago #
with pre or code, bbcode are not displayed...
i need to see bbcodes in code tags because on my forum i use pre-formatted posts, for many uses
in example for:
pre strong test /strong /prei would like to see strong and /strong ...
there is no way?
++
-
- Posted 3 years ago #
If you want to also use
[pre]then you have to also edit the bbcode plugin to translate that tag too.Hmm, this is strange, I have 'pre' in the allow extra tags list but it's not being added.
Update: argh, bbPress unsets "pre" and "br"
Alright, if you want bbcode processed in code/backtick sections, simply comment out this line in the plugin:
// if (preg_match_all("|\<code\>(.*?)\<\/code\>|sim", $text, $backticks)) {foreach ($backticks[0] as $backtick) {++$counter; $text=str_replace($backtick,"_bbcode_lite_".$counter."_",$text);}}It's right under
$counter=0; -
- Posted 3 years ago #
erf, the bbcodes are already not displayed :'( :'(
i try to make:
code strong test /strong /codebut i can't see the strong balise.
-
- Posted 3 years ago #
Did you comment out the line I listed above in the plugin?
-
- Posted 3 years ago #
yes _ck_
-
You must log in to post.