Hi Greg! about coffee ... mhh ... hope it was Italian coffee, like
Lavazza or Segafredo, or Hilly ... done with Moka Bialetti .... and NOT NESCAFE!
... how to use a moka properly, to have a good coffee require also some little experienced trick! It require to be washed only with water, and is necessary to make some coffee leaving it on the moka for sometime, that you'll discard after ... than you'll start to have a good aroma, after some day, because the MOKA start to smell of coffee even after washed (EVER with only water!) ... and the moka will give you time by time a better coffee ... that's really nice ... well what i'm writing about in my bad Eng!!!
about shortcode: you know sometime after you have finish something, you realize that it could be coded in another way. It can be improved and some modifier removed on some regex. I'm not a monster of science about regex, so be sure there is some more to be improved.
str_ireplace() could be used conveniently, that is more fast, in some point maybe (or on all, looking on how the post containing bbcode parsed, is stored on DB by phpBB).
The call to preg_replace_callback can be reduced to one, i've already edit it on local test, so like:
Code: Select all
$text = preg_replace_callback(
"~<ul>(.*?)</ul>|<ol(.*?)</ol>~sm",
"self::w3_bbcode_rep0",
$text);
The returned html tag for code is wrapped into
that should be only
and i've forget to remove it on first 1.7.4
class.wp.w3all-phpbb.php (after patched with some little more) from line:
Code: Select all
$res = str_ireplace('#w3#bbcode#replace#'.$cccc, '<pre><code>'.$v[1].'</code></pre>', $res);
the php code require some little adjustment, in case the query to the post return an unexpected result.
Should be added the
bbcode even if it after, should imply all about users permissions, to view or not the attachment in WP, that would be not require any important change ...
And an option more on shortcode to, display the post into WP post as text immediately visible, or like a button, that when clicked, so display the phpBB post into the WP post (convenient for stunning presentations maybe, and as showed by someone as example into an old request post).
new lines present some problem maybe, and some little improvement about this, adding corrects
tags (or not) on output, should be done.
p.s thank for your appreciation on another post
Hi Greg! about coffee ... mhh ... hope it was Italian coffee, like [i][size=110]Lavazza or Segafredo, or Hilly[/i] ... done with [url=http://www.bialetti.com/coffee/stovetop/moka-express-c-1_7_22.html]Moka Bialetti[/url][/size] .... and NOT NESCAFE! :cry: ... how to use a moka properly, to have a good coffee require also some little experienced trick! It require to be washed only with water, and is necessary to make some coffee leaving it on the moka for sometime, that you'll discard after ... than you'll start to have a good aroma, after some day, because the MOKA start to smell of coffee even after washed (EVER with only water!) ... and the moka will give you time by time a better coffee ... that's really nice ... well what i'm writing about in my bad Eng!!! :lol:
about shortcode: you know sometime after you have finish something, you realize that it could be coded in another way. It can be improved and some modifier removed on some regex. I'm not a monster of science about regex, so be sure there is some more to be improved.
[i]str_ireplace()[/i] could be used conveniently, that is more fast, in some point maybe (or on all, looking on how the post containing bbcode parsed, is stored on DB by phpBB).
The call to preg_replace_callback can be reduced to one, i've already edit it on local test, so like:
[code]$text = preg_replace_callback(
"~<ul>(.*?)</ul>|<ol(.*?)</ol>~sm",
"self::w3_bbcode_rep0",
$text);[/code]
The returned html tag for code is wrapped into [code]<pre><code>....</code></pre>[/code] that should be only [code]<code>....</code>[/code] and i've forget to remove it on first 1.7.4 [i]class.wp.w3all-phpbb.php[/i] (after patched with some little more) from line:
[code]$res = str_ireplace('#w3#bbcode#replace#'.$cccc, '<pre><code>'.$v[1].'</code></pre>', $res);[/code]
the php code require some little adjustment, in case the query to the post return an unexpected result.
Should be added the [code][attachment][/code] bbcode even if it after, should imply all about users permissions, to view or not the attachment in WP, that would be not require any important change ...
And an option more on shortcode to, display the post into WP post as text immediately visible, or like a button, that when clicked, so display the phpBB post into the WP post (convenient for stunning presentations maybe, and as showed by someone as example into an old request post).
[i]new lines[/i] present some problem maybe, and some little improvement about this, adding corrects
[code]<br />[/code] tags (or not) on output, should be done.
p.s thank for your appreciation on another post ;)