Emojis stop working

A

Anonymous

Guest
Hi,

I've got a new issue: Emoji symbols were working but stop working. When input ":)" in a message, it display ":)" instead of a smiling face.

Any idea? Thank you!
 
Can you tell more about your code? If I remember correctly you are using discuz board engine, is it related to this?
What changes do you did since it was working?
 
Hi Michalio, Thank you for your reply. It was working before but I dont' know when the issue started (for sure before PHP upgrade). Now the web has been upgraded to be compatible with PHP 8 and works fine seemingly other than this minor issue.
 
If you upgraded the engine then the configuration may change and you need to enable emoji or the support was moved to a plugin
 
This solution is for phone using emoji. My issue is with web forum.

Thanks.
 
Dizcuz is an chinese script, their website and documentation is in chinese, so I am not able to search for the solution.
So try to use grep command to find any emoji such as smile, post the code then we will be able to help you
 
Thanks a lot Michalio for your helpful hint! :) :) :)

The issue is solved by replacing smileoff with smileon. See this:


# diff viewthread.php viewthread.php.2022-05-30
314c314
< $post['message'] = postify($post['message'], $post['smileyon'], $post['bbcodeon'], $forum['allowsmilies'], $forum['allowhtml'],
---
> $post['message'] = postify($post['message'], $post['smileyoff'], $post['bbcodeon'], $forum['allowsmilies'], $forum['allowhtml'],
 
I think you should review what $post contains, because this was second issue where the bad key is used and other things may also not working
 
Back
Top