meetdilip wrote: ↑
Sun Nov 24, 2019 1:08 pm
But a lot of people like me have habit of typing codes for smilies
for smile is supposed to be a simple expression. No need to go to another window, take emoji website, come with it and paste in the editor.
Okay, better understanding the context. The desire is "text shortcuts which currently map to smilies, give us a way to map those to emoji instead. And maybe even make that the default in future phpBB releases."
phpBB does currently support text-based shortcodes for invoking the emoji, such as:
(See the $aliases array in /vendor/s9e/text-formatter/src/Plugins/Emoji/Configurator.php, if you like scrolling past column 175200.)
The phpBB smiley codes take precedence; i.e. you have to delete the phpBB smiley for
before you will see the emoji
displayed in response to
But no, there is no straight line between "If I remove the phpBB smiley configured to replace
:), how can I define an emoji to become invoked when someone types
That sounds like some JoshyPHP-level info to me. If it's possible at all, given that the
text contains one of the shortcode delimiters.
It's not what you're really after, but the closest I think you can get "out of the box" with phpBB right now is to steal a PNG of the Twemoji representation (or whichever representation you prefer) and upload it as your phpBB smiley image for
on the board you want to behave this way. Not ideal, since it will be an image rather than text or SVG; but close.
You might consider posting this to the Ideas
section. e.g. "Enhance phpBB smilies configuration to support replacing a smiley code with text, in addition to being able to replace it with an image."
So that the desired emoji character could be entered as the text replacement for
instead of specifying an image, or even other text sequences like ¯\_(ツ)_/¯
, etc. Leaving open the door for whether mapping the default smiley codes to emojis ends up also being the "out of the box" default in a future phpBB release or not.
Unless we're still off base for your actual intention.