Change how username appears when quote button pushed (not quote box or css related)
#1
Exclamation 
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?
If you Live to Game, and Game to Live
Reply
#2
I though it would be a modification of the Core mybb code such as an edit to the newreply.php file.
If you Live to Game, and Game to Live
Reply
#3
Any help please?
If you Live to Game, and Game to Live
Reply
#4
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 "\[email protected]".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";
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)