Hi,
in my forum already support emoji
So my plan is add this too to automention plugin
https://community.mybb.com/thread-173199.html.
But i can only enable this feature if admin already made change in inc/config.php to utf8mb4 and changing existing database to utf8mb4.
So how can I check if the requirement is all okay?
Looks great, I would love this addition to the plug in!
(2017-08-07, 04:00 AM)martec Wrote: [ -> ]Hi,
in my forum already support emoji
So my plan is add this too to automention plugin https://community.mybb.com/thread-173199.html.
But i can only enable this feature if admin already made change in inc/config.php to utf8mb4 and changing existing database to utf8mb4.
So how can I check if the requirement is all okay?
Mybb have a default config file settting you can call it, let me find the right var due i have used some time in the past but it is pretty easy todo.
Yeah i am right here take the code mate.
$encoding = $mybb->config['database']['encoding'];
if($encoding == 'utf8mb4')
echo 'Yeah you have the right codification';
else
echo 'You need to change your configuration encoding database to utf8mb4';
You can use that at your owns besides the echo do something or return false or whatever you need....
Chears...
(2021-06-24, 02:44 AM)Whiteneo Wrote: [ -> ]Yeah i am right here take the code mate.
$encoding = $mybb->config['database']['encoding'];
if($encoding == 'utf8mb4')
echo 'Yeah you have the right codification';
else
echo 'You need to change your configuration encoding database to utf8mb4';
You can use that at your owns besides the echo do something or return false or whatever you need....
Chears...
Where should i apply this code ?
(2021-07-02, 07:05 PM)Eldenroot Wrote: [ -> ]Where to get the plugin?
I think it is the plugin "Automention"