Этот способ [RC] Цитата выделенного в быстрый ответ через всплывашку.
Немного доработал так:
Открываем quick_reply_editor.html
Находим
</script>
Добавляем после:
Код: Выделить всё
<script type="text/javascript">
// <![CDATA[
var tid, tid2;
function getsel() {
pt = $(this).parents("table.tablebg");
dE('qr_editor_div', 1);
dE('qr_showeditor_div',-1);
if (window.getSelection)
{
theSelection = window.getSelection().toString();
}
else if (document.getSelection)
{
theSelection = document.getSelection();
}
else if (document.selection)
{
theSelection = document.selection.createRange().text;
}
return theSelection;
}
function quick_quote(pid, e) {
clearTimeout(tid);
clearTimeout(tid2);
tid = setTimeout(function() {
var pageX = e.pageX || e.clientX + document.documentElement.scrollLeft;
var pageY = e.pageY || e.clientY + document.documentElement.scrollTop;
var theSelection = getsel();
if (theSelection)
{
$("#addQuote").remove();
$("body").append('<div id="addQuote" class="panel" style="border: 1px solid #8FBC8F;cursor: pointer;position:absolute;z-index:100;left: ' + (e.pageX + 15) + 'px; top: ' + (e.pageY + 15) + 'px; opacity: 0;">{L_PLACE_INLINE}</div>');
$("#addQuote").animate({opacity: 1}, 350);
$("#addQuote").click(function() {
$("#addQuote").animate({opacity: 0}, 350);
insert_text('[quote="' + pid + '"]' + theSelection + '[/quote]');
});
tid2 = setTimeout(function() {
if ($("#addQuote").is(':visible')) {
$("#addQuote").animate({opacity: 0}, 350)
}
;
}, 5000);
} else {
clearTimeout(tid);
clearTimeout(tid2);
$("#addQuote").animate({opacity: 0}, 350);
}
}, 100);
};
// ]]>
</script>
<div class="content">{postrow.MESSAGE}</div>
Оформляем в такой вид
Код: Выделить всё
<div class="content"<!-- IF S_QUICK_REPLY --> onmouseup="quick_quote('{postrow.POST_AUTHOR}', event);"<!-- ENDIF -->>
Стандартная форма БО будет открываться автоматически, по крайней мере в Опере норм.