MyBB Community Forums

Full Version: Change how username appears when quote button pushed (not quote box or css related)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For example when you click the quote button, the new reply is:

Djdoubt03 Wrote:hope this doesn't make DjHero go away


I want to have the quote button also add an @ before the quoted users name?

like so

@Djdoubt03 Wrote:hope this doesn't make DjHero go away

what php file or template do I have to edit to a an @ before {username} to make it appear when people click the quote button?



Really? No responses?
I though it would be a modification of the Core mybb code such as an edit to the newreply.php file.
Any help please?
You'll need to make a core edit for this.

The file to edit is inc/class_parser.php and the line to change is #697 and #707

Line 697:

change
return "\n".htmlspecialchars_uni($username)." $lang->wrote{$date}\n--\n{$message}\n--\n";
to
return "\n@".htmlspecialchars_uni($username)." $lang->wrote{$date}\n--\n{$message}\n--\n";

Line 707:
change
return "<blockquote><cite>{$span}".htmlspecialchars_uni($username)." $lang->wrote{$linkback}</cite>{$message}</blockquote>\n";
to:
return "<blockquote><cite>{$span}@".htmlspecialchars_uni($username)." $lang->wrote{$linkback}</cite>{$message}</blockquote>\n";