hypejunction/elgg-mb4

Adds multibyte (emoji) support

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Type:elgg-plugin

2.0.0 2019-07-31 12:00 UTC

This package is auto-updated.

Last update: 2024-11-29 05:50:36 UTC


README

Elgg 2.3

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