Topic: Smileys are not properly displayed

Hi,

I have a custom list of smiley and none of them are showing either in the post or comments. The smileys are titled as numbers and it's registered under the Systems Configuration. Instead of an image, it only shows the smiley code (e.g. :3:) while the old smileys are working just fine. I also changed the custom smiley names, but it just shows :emoji01:, :emoji04: and so on but to no avail.

Any help or advice aside from renaming the new smileys according to the old smiley names?

Many thanks in advance! smile

Re: Smileys are not properly displayed

Smileys titled as numbers aren't allowed in CN. To correct it, please edit the file core/news.php

Change the string from

if (preg_match_all('/\:([a-z_]+?)\:/i', $template, $ct, PREG_SET_ORDER))

to

if (preg_match_all('/\:([a-z0-9_]+?)\:/i', $template, $ct, PREG_SET_ORDER))

Alternatively, use alphabetical symbols.

Best regards,
CN Support team

3 (edited by Jeremy674 2019-03-18 04:47:53)

Re: Smileys are not properly displayed

In addition to the headache of different styling, there’s an additional wrench in your ideographic communications: an expanding emoji library combined with old and infrequently updated phones cleanmaster.