Emoji plugin
#6
(2017-08-07, 04:00 AM)martec Wrote: Hi,

in my forum already support emoji
[Image: hzF59TB.png]

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...
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply


Messages In This Thread
Emoji plugin - by martec - 2017-08-07, 04:00 AM
RE: Emoji plugin - by Eldenroot - 2017-08-07, 04:07 PM
RE: Emoji plugin - by Tactrus - 2017-08-12, 08:59 PM
RE: Emoji plugin - by ChillBro - 2017-08-18, 12:31 PM
RE: Emoji plugin - by PARADOXP - 2021-06-24, 02:39 AM
RE: Emoji plugin - by Whiteneo - 2021-06-24, 02:44 AM
RE: Emoji plugin - by PARADOXP - 2021-06-26, 10:41 AM
RE: Emoji plugin - by Eldenroot - 2021-07-02, 07:05 PM
RE: Emoji plugin - by PARADOXP - 2021-07-03, 02:44 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)