[]
ST said: Is there a way to add the name of the sender in the quote area?
Like the post quote name mod, so it syas something like
Quote: ST said...
and then the content
[/]
Yes. It's really simple. (oops, forgot to mention it's mess_reply.php)
[:"red"]Find:[/]
<br />// Grab the username of who we are sending this to <br /> $query = " <br /> SELECT U_Username <br /> FROM {$config['tbprefix']}Users <br /> WHERE U_Number='$Sendto' <br /> "; <br /> $sth = $dbh -> do_query($query); <br /> list($Sendtoname) = $dbh -> fetch_array($sth); <br /> [:"red"]and move it above: [/]
<br />// #################################################################### <br />// preview_mess - Preview reply to this message <br />// #################################################################### <br />
This will pull the query out of the preview, so it's shared by code outside that block (namely, where you want to know the username

)
[:"red"]Then find (JoshPet's mod): [/]
<br />$Message .= "\n\n<blockquote><font class=\"small\">{$ubbt_lang['IN_REPLY']}:</font><hr /><br />"; <br /> [:"red"]and replace with:[/]
<br />$Message .= "\n\n<blockquote><font class=\"small\">$Sendtoname sent:</font><hr /><br />"; <br />
Note: this works fine on 6.4, btw.