Hello.
I am attempting to insert 3 lines of code into inc/datahandlers/pm.php of MyBB 1.8
Essentially I maintain the Steam Login Plugin. As seen at
https://github.com/noxwyll/Steam-Login-MyBB-1.8
The plugin allows among other things allows users to use unicode signs [like 🍰] in their username (this is in parts based on the display-names plugin).
However this leads to an issue in PM Validation as MyBB does now know how to deal with the special chars and as such MySQL will say the recipients do not exist.
To resolve this I need to run 3 lines of code in this file at a very specific point.
However this means having the users alter a stock mybb file which is not preferable.
So does anyone have an idea how to get my code at the place I need it?
My code is
Which needs to be at line 190 before
in order for PMs to pass validation and for the pm to be sent correctly to the recipients.