MyBB Community Forums

Full Version: Change Apostrophes to Quote Marks in Post Quotes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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

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 Big Grin
Hey, yeah, there's some other stuff happening inside SCEditor/MyBB that I've noticed whilst trying to debug this. It's a real pain to fix, but I'll be spending some time during May trying to clean up issues like this within MyAlerts.
(2016-04-24, 03:47 PM)Euan T Wrote: [ -> ]Hey, yeah, there's some other stuff happening inside SCEditor/MyBB that I've noticed whilst trying to debug this. It's a real pain to fix, but I'll be spending some time during May trying to clean up issues like this within MyAlerts.

Thank you King