Disable smilies

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
new.new
Registered User
Posts: 57
Joined: Sun Aug 12, 2018 9:53 am

Disable smilies

Post by new.new » Fri Dec 28, 2018 2:36 pm

Is there a way to disable smilies?
I'm NOT talking about the "standard" forum smiles, like these: :D :) ;) etc...
I'd like to disable only smilies like these: 😜😁 etc... (i think they are the smilies used on some phones, or something similar)
Is there a way to do so?

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2395
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Disable smilies

Post by kinerity » Fri Dec 28, 2018 10:43 pm

Not in a vanilla install of phpBB. Have you tried requesting an extension?
Kailey Truscott - Community Team

User avatar
EA117
Registered User
Posts: 1139
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Disable smilies

Post by EA117 » Sat Dec 29, 2018 12:36 am

Those "smilies used on some phones" are actually accepted parts of the Unicode standard, and is how those users on all those different platforms are able to communicate successfully in a cross-platform manner. No different than how we've adopted "a Unicode character to represent the Euro symbol" and "a Unicode character to represent the letter 'A' "; there is also now "a Unicode character to represent a smiling face", "a Unicode character to represent a winking face", etc.

It seems like there would need to be some other behaviors created besides just "don't support those". Because what you're proposing is something different than what phpBB has done in the past. Your proposal isn't saying "if the user enters ":)", simply leave those characters as ":)", and don't replace them with "Image". Your proposal is "if the user enters ":)", simply discard that portion of their message." That's not what the author or the reader of that message is going to be expecting; nor might the message make any sense without knowing the user actually did enter some other characters that you decided to drop / discard.

What phpBB is doing with those Unicode standard emoji is making sure they display in a consistent manner across all platforms / browsers / fonts that a phpBB-based site might be viewed on. Rather than "on some platforms the images are small, but on some platforms the images are large, but on some platform the images are black and white, but on some platforms the images are tofu." phpBB's support is making sure these characters are consistently represented by the exact same image across all those platforms.

If we removed that code, the characters themselves would still be there; just with the random per-platform inconsistencies in their display. Same as how if we removed support for phpBB's own original "smilies" implementation, the characters ":)" are still going to be present in the user's message. Which is why I'm saying that what you're proposing is different, and is proposing that these characters shouldn't have even allowed to be part of the user's message at all. Because in this case, the Unicode character you don't want is the character the user typed.

So just realize "this is an attempt to reject industry standards", and isn't necessarily a good thing. Supporting Unicode emoji is what helps keep phpBB relevant and intuitive to your users who are simply using keys on their keyboard as they would in any other message. Even desktop Windows has a standard emoji keyboard entry (Win+.), not just the phone / mobile / Mac / iOS / Android systems. 😐

There, that's my lobbying statement for keeping the support. That said, I'm sure an extension can be created to produce whatever result you want.

User avatar
3Di
Former Team Member
Posts: 14454
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Disable smilies

Post by 3Di » Sat Dec 29, 2018 1:11 am

There is a discussion still opened here about that - and how it can be accomplished: https://tracker.phpbb.com/browse/PHPBB3-15625
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
EA117
Registered User
Posts: 1139
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Disable smilies

Post by EA117 » Sat Dec 29, 2018 2:16 am

3Di wrote: ↑
Sat Dec 29, 2018 1:11 am
There is a discussion still opened here about that - and how it can be accomplished: https://tracker.phpbb.com/browse/PHPBB3-15625
Thanks 3Di; useful info. For clarity to the audience of this topic though, it's not being proposed that "resolution of PHPBB3-15625 would resolve new.new's request."

The PHPBB3-15625 issue just acknowledges the mechanism that was referenced in this discussion, where "phpBB is replacing those Unicode characters with images that will be consistent across all platforms." Because those images happen to come from a CDN-based source, and a phpBB installation that had turned off permitting use of a CDN for other purposes was not also turning off / disabling the Unicode emoji-related usage of CDN-sourced images.

This "wouldn't inherently solve the current request", and at best would serve as an example of "if we disabled phpBB's current support, the emoji characters themselves (the characters that were being replaced with those images) are still going to be there." If and when the replacement of these characters with consistent images is disabled, what we're left with is how those same characters are going to be displayed by the user's native platform. Meaning "whatever this Android/Chrome platform decides should be displayed for this Unicode character" and "whatever this Windows/Edge platform decides should be displayed for this Unicode character", etc.

User avatar
3Di
Former Team Member
Posts: 14454
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Disable smilies

Post by 3Di » Sat Dec 29, 2018 2:23 am

EA117 wrote: ↑
Sat Dec 29, 2018 2:16 am
This "wouldn't inherently solve the current request", and at best would serve as an example of "if we disabled phpBB's current support, the emoji characters themselves (the characters that were being replaced with those images) are still going to be there."
In fact, that's why I didn't move on, that's the problem I encountered back then.
The "markup" still remains, which solves a part of the stuff though, once you enable back the Emojis you don't have to reparse the posts.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21723
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Disable smilies

Post by Mick » Sat Dec 29, 2018 10:51 am

This is a typical case of "You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time". Users have been clamouring for emoji support for years to have others wanting to remove it.

You should try:
kinerity wrote: ↑
Fri Dec 28, 2018 10:43 pm
requesting an extension?
as suggested.
"The more connected we get the more alone we become" - Kyle Broflovski

new.new
Registered User
Posts: 57
Joined: Sun Aug 12, 2018 9:53 am

Re: Disable smilies

Post by new.new » Sat Dec 29, 2018 12:25 pm

Maybe I was misunderstood, obviously i'm not asking to remove the support for these smiles from phpbb, i just want to disable them for my board.

Regarding the issue "If and when the replacement of these characters with consistent images is disabled, what we're left with is how those same characters are going to be displayed by the user's native platform", it would be solved by simply deleting these characters (replacing them with nothing). I tried doing it with word filters but it doesn't work.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21723
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Disable smilies

Post by Mick » Sat Dec 29, 2018 12:39 pm

You should make an extemsion request.
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
EA117
Registered User
Posts: 1139
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Disable smilies

Post by EA117 » Sat Dec 29, 2018 7:38 pm

Mick wrote: ↑
Sat Dec 29, 2018 12:39 pm
new.new wrote: ↑
Sat Dec 29, 2018 12:25 pm
Maybe I was misunderstood, obviously i'm not asking to remove the support for these smiles from phpbb, i just want to disable them for my board.

Regarding the issue "If and when the replacement of these characters with consistent images is disabled, what we're left with is how those same characters are going to be displayed by the user's native platform", it would be solved by simply deleting these characters (replacing them with nothing). I tried doing it with word filters but it doesn't work.
You should make an extemsion request.
Agreed on the extension request.

new.new, it's understood and agreed that you're just trying to turn it off on your own board. Where I said "if the support was removed", I too just meant "when you turned off the existing phpBB support for this on your board." Just "removed" from the perspective of someone writing a message or reading a message on a board where such a setting is in effect.

I'm still asserting "this is different" than simply turning off phpBB smilies support, because "the Unicode emoji is the character the user typed." That wasn't decided by phpBB; it was decided by the user writing the message. Meaning:

By default if a user writes ":)", phpBB will turn that into Image. If you turn off smilies support, the user's message still contains ":)", not "nothing" or "simply deleted these characters." The user's communication is intact, but "not graphical." Saying "I don't want the graphics" doesn't impede the communication.

By default if a user writes ":smile:", phpBB will turn that into the referenced Unicode emoji of 😄. If you turn off that support, the user message still contains ":smile:". The user's communication is intact, but "not graphical." Saying "I don't want the graphics" doesn't impede the communication.

By default if a user inputs the actual Unicode emoji character "😄", phpBB will replace that with an image so that it displays consistently instead of randomly across all platforms. If you turn off that support, the user's message still contains "😄", just now being displayed however their browser / platform / Android / Windows / iOS wants to display it, which may or may not still be successful or clear to the reader, and may still be "graphical" against your wishes.

It's that extra step you just cited, "simply deleting these characters", where I'm saying on behalf of users, "please don't do that." The sarcastic becomes un-sarcastic, because you removed the indication of it being sarcastic. The light-hearted diplomatic response becomes serious and accusing, because you removed the indication of its nature. Because you're not saying "I just don't want the graphic version of the communication" as was true in all the other cases just listed; you're saying "remove part of the user's message."

It can still be addressed in the extension that is created, which is what I meant when saying "It seems like there would need to be some other behaviors created" besides just "turn off the support." You need to prevent the user from entering these characters to begin with, so that they know what their communication is limited to, and understand what's happening before it happens. Not just "strip them out when displaying the message later."

User avatar
Lumpy Burgertushie
Registered User
Posts: 66897
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Disable smilies

Post by Lumpy Burgertushie » Sat Dec 29, 2018 10:23 pm

and, why on earth do you want such a thing? what possible harm is there in allowing people to use smilies or emojis etc.?


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
3Di
Former Team Member
Posts: 14454
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Disable smilies

Post by 3Di » Sat Dec 29, 2018 10:46 pm

EA117 wrote: ↑
Sat Dec 29, 2018 7:38 pm
You need to prevent the user from entering these characters to begin with, so that they know what their communication is limited to, and understand what's happening before it happens.
AKA a bunch of lines
https://github.com/phpBB-Studio/DateTop ... hp#L86-L91
https://github.com/phpBB-Studio/DateTop ... t.php#L125
EA117 wrote: ↑
Sat Dec 29, 2018 7:38 pm
Not just "strip them out when displaying the message later."
Even easier, one line
https://github.com/phpBB-Studio/DateTop ... r.php#L588
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

new.new
Registered User
Posts: 57
Joined: Sun Aug 12, 2018 9:53 am

Re: Disable smilies

Post by new.new » Fri Jan 04, 2019 5:39 pm

Thanks for your answers.
I understand EA117's point, it's not good to simply delete a part of the message.

So i have 2 options:
1) leave the caracters but don't convert them to images
2) show an alert if a user tries to post a message with emojis

I see you posted some code for both solution, but i don't understand how to use it, can you explain more clearly how to use that code?

User avatar
3Di
Former Team Member
Posts: 14454
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Disable smilies

Post by 3Di » Fri Jan 04, 2019 5:58 pm

new.new wrote: ↑
Fri Jan 04, 2019 5:39 pm
can you explain more clearly how to use that code?
You should make an extension request and see if someone has the will to take it up, the logic is already there.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

Post Reply

Return to “[3.2.x] Support Forum”