Это все про того самого "Зеленого Змия"...





styles/prosilver/template/overall_header.html
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/jquery.timers.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/jquery-1.3.2.js"></script>
styles/prosilver/template/quickreply_editor.html
<noscript>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function(){
$("div.postbody").mouseup(function(e){
pt = $(this).parents("table.tablebg");
if (window.getSelection)
{
theSelection = window.getSelection().toString();
}
else if (document.getSelection)
{
theSelection = document.getSelection();
}
else if (document.selection)
{
theSelection = document.selection.createRange().text;
}
if (theSelection)
{
$("#addQuote").remove();
$("body").append('<div id="addQuote" style="left: '+(e.pageX+15)+'px; top: '+(e.pageY+15)+'px;">{L_REQUETE}</div>');
$("#addQuote").click(function () {
$(this).hide();
username = pt.find("b[class='postauthor']:first").text();
insert_text('[quote="' + username + '"]' + theSelection + '[/quote]');
});
$("#addQuote").oneTime(3000, function() {
if ($(this).is(':visible')) {$(this).animate({height:0 , opacity:0}, 150)};
});
}
});
});
// ]]>
</script>
/styles/prosilver/theme/content.css
/* Post body styles
#addQuote {
position: absolute;
z-index:100;
border: 1px solid #8FBC8F;
padding: 3px;
background: #E0FFE0;
color: #008000;
cursor: pointer;
font-size: 11px;
}
jquery-1.3.2.js
и jquery.timers.js
в: /styles/prosilver/template/
jQuery
jQuery
. jQuery
и инструкция по её подключению отсутствуют в комплекте мода. Тестировалось наjQuery 1.6.2
. Этот вариант слегка упрощён по сравнению с MooTools-вариантом: отсутствует эффект плавного раскрытия/закрытия формы быстрого ответа.)Вернуться в 450 модов движка форумов phpBB (до версии 3.0.14)