Emoji plugin
#1
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?
Reply
#2
Amazing!
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#3
Looks great
Reply
#4
Looks great, I would love this addition to the plug in!
Reply
#5
is this working ?
Reply
#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
#7
(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 ?
Reply
#8
Where to get the plugin?
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#9
(2021-07-02, 07:05 PM)Eldenroot Wrote: Where to get the plugin?

I think it is the plugin "Automention"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)