hypejunction / elgg-mb4
Adds multibyte (emoji) support
Requires
- php: >=7.0
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2024-11-29 05:50:36 UTC
README
BACKUP YOUR DATABASE BEFORE DOING ANYTHING WITH THIS PLUGIN
FOR EXPERIENCED DEVELOPERS ONLY
Features
- Alters database table encoding to utf8mb4 to support emojis
Usage
After enabling the plugin, run the Upgrade from Admin dashboard.
In composer.json
of your project root, add:
{ "autoload": { "psr-4": { "Elgg\\": "mod/elgg-mb4/classes/Elgg/" } } }
You can also use the autoload option to specify a path to a different version of the Database class that corresponds to your Elgg version.
Important
This plugin hijacks the Elgg Database class to override the hardcoded encoding - very unconventional approach, but the encoding is hardcoded in core files. Therefore, you must make sure the Database class in this plugin corresponds to the core Database class in your Elgg version.
If you don't know what this means and entails, don't use this plugin