Addon to use for BrainCMS that adds smileys support to the comments.
Example: https://picr.ws/i/rsn
Download the ZIP file and extract it. Replace all the files with the files from BrainCMS.
Next, add this code at the bottom of the file system/brain-config.php
. (Above ?>)
/**
* Smiley Addon
*/
$config['smileys'] = [
/**
* Enable / disable the smileys
*/
'enabled' => true,
/**
* Directory where the smileys are stored.
*/
'directory' => '/templates/brain/style/images/smileys',
/**
* Add your own replacements
*/
'replacements' => [
':)' => 'smiling.svg',
':(' => 'sad.svg',
';)' => 'wink.svg',
':P' => 'tongue-out-1.svg',
':D' => 'happy-1.svg',
':\'(' => 'unhappy.svg',
'>:(' => 'angry.svg',
':*' => 'kissing.svg',
],
];
If done correctly, you now have setup smiley in the comments.
Contribution, bug fixes etc are always welcome.
The MIT License (MIT). Please see License File for more information.