Ищем шаблон showConversation (личные сообщения).
В самый верх добавить
<script type='text/javascript'> function insertNameorQuote(name, pid) { txt = ''; if (window.getSelection) { txt = window.getSelection(); } else if (document.selection) { txt = document.selection.createRange().text; } editor = ipb.textEditor.getEditor(ipb.topic.fastReplyId); if (txt != "") { txt = '<p>[quote name="' + name + '" post="' + pid + '"]' + txt + '<br />[/quote]<br /></p>'; editor.insert(txt, true); } else { editor.insert("[b][member=" + name + "][/b], ", true ); } if (txt != "") { } } </script>]]>
Дальше найти
<if test="canDelete:|:$msg['_canDelete'] === TRUE && $msg['msg_is_first_post'] != 1"> <li class='post_del' id='del_post_{$msg['msg_id']}'> <a href='{parse url="module=messaging&section=send&do=deleteReply&topicID={$topic['mt_id']}&msgID={$msg['msg_id']}&authKey={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['delete_this_post']}' class='delete_post'><img src="{style_images_url}/comment_delete.png" alt="" /> {$this->lang->words['pc_delete']}</a> </li> </if>
И после него добавить
<!-- ++ --> <li> <a class='ipsButton_secondary' title='{$this->lang->words['insert_name_or_quote_desc']}' href='javascript:insertNameorQuote("{$members[ $msg['msg_author_id'] ]['members_display']}", "{$msg['msg_id']}")'>{$this->lang->words['insert_name']}</a> </li> <!-- ++ -->