2016-04-23, 10:08 PM
Hi,
As Euan Describes here: https://github.com/MyBBStuff/MyAlerts/issues/46
Some users have apostrophes in their username and it causes problems when quoting those users
in MyAlerts because it ends up like this (for a user named 22 Two's )
[quote='22 Two's'
Does anyone know how to properly change the apostrophes to quote when quoting users?
I think I may have figured it out.
In inc/functions_posting.php
I changed
to
hopefully this works
As Euan Describes here: https://github.com/MyBBStuff/MyAlerts/issues/46
Some users have apostrophes in their username and it causes problems when quoting those users
in MyAlerts because it ends up like this (for a user named 22 Two's )
[quote='22 Two's'
Does anyone know how to properly change the apostrophes to quote when quoting users?
I think I may have figured it out.
In inc/functions_posting.php
I changed
return "[quote='{$quoted_post['username']}'{$extra}]\n{$quoted_post['message']}\n[/quote]\n\n";
to
return "[quote=\"{$quoted_post['username']}\"{$extra}]\n{$quoted_post['message']}\n[/quote]\n\n";
hopefully this works