[]
ST said: <br />Is there a way to add the name of the sender in the quote area? <br /> <br />Like the post quote name mod, so it syas something like <br />Quote: ST said... <br />and then the content <br /> [/] <br /> <br />Yes. It's really simple. (oops, forgot to mention it's mess_reply.php) <br /> <br /> [:"red"]Find:[/] <br />
<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 /> <br /> <br /> [:"red"]and move it above: [/] <br /> <br />
<br />// #################################################################### <br />// preview_mess - Preview reply to this message <br />// #################################################################### <br />
<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 <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> ) <br /> <br />[:"red"]Then find (JoshPet's mod): [/] <br />
<br />$Message .= "\n\n<blockquote><font class=\"small\">{$ubbt_lang['IN_REPLY']}:</font><hr /><br />"; <br /> <br /> <br />[:"red"]and replace with:[/] <br />
<br />$Message .= "\n\n<blockquote><font class=\"small\">$Sendtoname sent:</font><hr /><br />"; <br />
<br /> <br />Note: this works fine on 6.4, btw.