So i want an image in attach inline then a file inline in attach then i want this text bold,
and after i like to display a piece of code:
Code: Select all
<?php
function test() {
$foo = "local variable";
echo '$foo in global scope: ' . $GLOBALS["foo"] . "\n";
echo '$foo in current scope: ' . $foo . "\n";
}
$foo = "Example content";
test();
?>
WoW! i like it ... but could be better
and i have some lists to display:
- The first possible answer
- The second possible answer
- The third possible answer
- The first possible answer
- The second possible answer
- The third possible answer
or quoted text:
so a nice image:this text is quite quoted
then more bad code:
Code: Select all
<test />$find = array(
'~\[img\].*?\[/img\]~si', // if there links/text for the image elsewhere, remove. Done above
'~(^(\r\n|\r|\n))|^\s*$~m', .........
);
Visit phpBB!
and an url
https://www.wordpress.org/
and more code for bbcode to be parsed:
Code: Select all
// partial bbcode regex
$find = array(
'~\[b\](.*?)\[/b\]~usi',
'~\[i\](.*?)\[/i\]~usi',
'~\[u\](.*?)\[/u\]~usi',
'~\[quote\](.*?)\[/quote\]~usi',
'~\[size=(.*?)\](.*?)\[/size\]~usi',
);
NOTE: on this phpBB example it is not installed the phpBB Media Embed mod, to display video into phpBB posts, but if i add this bbcode into this phpBB post like this:
[media]https://www.youtube.com/watch?v=AYBrtFnHI6g[/media]
it will not be parsed into this phpBB post, because the mod has not been installed in phpBB, but will be parsed into the WP post because recognized and parsed by the WP_w3all plugin code.
you cannot add, expecting it will be parsed: flash or email bbcode tag.
see the result of this post parsed into a WordPress post via Shortcode here: https://www.axew3.com/w3/2017/07/wordpr ... o-wp-post/
you need a more improved version of the function that do this? email me here: me@you.us
As you see was not so important to add email parsing .... (what?)
Cheers to all cool people!