Curiosity killed smilies: how smilies are parsed into shortcodes
Posted: Thu Oct 18, 2018 8:32 am
So i'm over some while to check for next plugin version and checking for any possible bug on different scenario (buddypress, members plugin etc) and i noted that a shortcoded post with text, was containing smiles on wp home page ... so i've go to look how was possible that the last topics/posts showing smilies on output in wordpress.
With my surprise the post contain this:
the output on wp shortcode will be this:
Substantially, smilies wrapped inside bbcode
[img] will be correctly parsed not in phpBB post, but in wordpress widgets.
Just a curiosity, it's not so useful in this way. May it is useful to discover a way to parse smilies in a not common way ... i will take a look to the joke. I've not check further more but i assume this result is coming out because: if you wrap smilies into a bbcode img tag, phpBB parse the smilie url (something like for example https://s.w.org/images/core/emoji/11/svg/1f633.svg ) and archive the post in this way ... it resulted to me strange behavior, but maybe it isn't so strange after you'll take a look into.
With my surprise the post contain this:
the output on wp shortcode will be this:
Substantially, smilies wrapped inside bbcode
[img] will be correctly parsed not in phpBB post, but in wordpress widgets.
Just a curiosity, it's not so useful in this way. May it is useful to discover a way to parse smilies in a not common way ... i will take a look to the joke. I've not check further more but i assume this result is coming out because: if you wrap smilies into a bbcode img tag, phpBB parse the smilie url (something like for example https://s.w.org/images/core/emoji/11/svg/1f633.svg ) and archive the post in this way ... it resulted to me strange behavior, but maybe it isn't so strange after you'll take a look into.