- Support for SVG image files.
- Support for text replacement in addition to image replacement.
- Update default "out of the box" phpBB Smilies configuration to use phpBB's Emoji support.
Support for SVG image files. I think this should be possible without much change, since even the existing phpBB Smilies configuration is explicit about displayed image size. So even though SVG doesn't necessarily have an integral "size" implied like pixel images, the Smilies configuration already permits specifying "how large would you like to render this otherwise infinitely scalable image?"
Support for text replacement in addition to image replacement. This is the one which would involve the most change. In addition to being able to configure that a Smiley code such as
:)should be mapped to a specific image, the proposal is that the Smilies configuration would optionally allow you to specify replacement text instead of an image.
So for example, I could use the phpBB Smilies system to define that
:shrug:should be replaced with "¯\_(ツ)_/¯", or any other sequence of text the phpBB operator wants the
:shrug:shortcode to mean. And most importantly, literal Emoji characters could be entered for this text replacement. Such that when configuring Smiley code
:)you could specify it should be replaced with Emoji character "" or similar, in order to leverage the high-quality Emoji support that phpBB already provides.
This is intended to extend the usefulness and flexibility of the phpBB Smilies system, by allowing the phpBB operator to continue being able to define their own "shortcodes" for things which might still be pixel-based images as they have been in the past, or might simply be Emojis or other meaningful text-based sequences, or might be SVG images.
Update default "out of the box" phpBB Smilies configuration to use phpBB's Emoji support. With the replacement text support implemented for Smilies, we are then also in a position where the default Smilies configuration "out of the box" in new phpBB installations could simply leverage the already-existing Emoji support in phpBB. Rather than the current set of 17x15 GIF images with bad aliasing, and rather than creating another set of pixel-based images that would need to be maintained.
Meaning the out-of-the box Smilies would already be scalable SVG images, because they will be displayed with the same Twemoji support that phpBB is already using for display of Emoji characters elsewhere. Nothing has stopped or prevented the phpBB operator from installing their own preferred images and/or text for Smilies. But we will have a clear, high resolution, high DPI-compatible set of Smilies as the default, because they are literally just Emoji text characters.
The Smilies configuration in phpBB could end up looking similar to this; with text input being disabled when an image is selected, and vice-versa: