Раньше кнопка делалась так:
Создавался файл quick_reply.css
-------------------------------------------------bein-----------------------------
/* proSilver Button Styles
---------------------------------------- */
/* Rollover buttons
Based on:
http://wellstyled.com/css-nopreload-rollovers.html----------------------------------------*/
/* Big button image, color and background */
.quickreply-icon, .quickreply-icon a {
background-image: url("{IMG_BUTTON_QUICK_REPLY_SRC}");
background: transparent none 0 50 no-repeat;
}
.buttons div.quickreply-icon { width: {IMG_BUTTON_QUICK_REPLY_WIDTH}px; height: {IMG_BUTTON_QUICK_REPLY_HEIGHT}px; }
-------------------------------------end--------------------
Далее мод:
COPY
root/styles/prosilver/imageset/en/button_quick_reply.gif to styles/prosilver/imageset/en/button_quick_reply.gif
root/styles/prosilver/imageset/ru/button_quick_reply.gif to styles/prosilver/imageset/ru/button_quick_reply.gif
root/styles/prosilver/theme/quick_reply.css to styles/prosilver/theme/quick_reply.css
OPEN
styles/prosilver/imageset/en/imageset.cfg
FIND
img_button_topic_reply = button_topic_reply.gif*25*96
AFTER, ADD
img_button_quick_reply = button_quick_reply.gif*25*106
OPEN
styles/prosilver/imageset/ru/imageset.cfg
FIND
img_button_topic_reply = button_topic_reply.gif*25*94
AFTER, ADD
img_button_quick_reply = button_quick_reply.gif*25*137
OPEN
styles/prosilver/template/quick_reply.html
FIND
<form
IN-LINE FIND
<form
IN-LINE AFTER, ADD
style="display:none;"
OPEN
styles/prosilver/template/viewtopic_body.html
FIND
<div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->"><a href="{U_POST_REPLY_TOPIC}"><span><!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></span></a></div>
AFTER, ADD
<!-- IF QUICK_REPLY --><div class="quickreply-icon"><a href="#postform" onclick="dE('postform'); return false;"><span>{L_QUICK_REPLY}</span></a></div><!-- ENDIF -->
OPEN
styles/prosilver/theme/stylesheet.css
FIND
@import url("colours.css");
AFTER, ADD
@import url("quick_reply.css");
OPEN
includes/acp/acp_styles.php
FIND
'button_topic_reply',
IN-LINE FIND
'button_topic_reply',
IN-LINE AFTER, ADD
'button_quick_reply',
OPEN
language/en/acp/styles.php
FIND
IMG_BUTTON_PM_FORWARD
BEFORE, ADD
'IMG_BUTTON_QUICK_REPLY' => 'Quick reply',
OPEN
language/ru/acp/styles.php
FIND
IMG_BUTTON_PM_FORWARD
BEFORE, ADD
'IMG_BUTTON_QUICK_REPLY' => 'Быстрый ответ',
добавка для subsilver2:
OPEN
styles/subsilver2/template/quick_reply.html
FIND
<form
IN-LINE FIND
<form
IN-LINE AFTER, ADD
style="display:none;"
OPEN
viewtopic.php
FIND
'QUOTE_IMG' => $user->img('icon_post_quote', 'REPLY_WITH_QUOTE'),
AFTER, ADD
'QUICK_REPLY_IMG' => $user->img('button_quick_reply', 'QUICK_REPLY'),
OPEN
styles/subsilver2/template/viewtopic_body.html
FIND (второе вхождение!!!)
<!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}">{REPLY_IMG}</a><!-- ENDIF -->
AFTER, ADD
<!-- IF QUICK_REPLY --><a href="#postform" onclick="dE('postform'); return false;">{QUICK_REPLY_IMG}</a><!-- ENDIF -->
и в styles/subsilver2/template/editor.js в конце добавил:
Код:
/**
* Set display of page element
* s[-1,0,1] = hide,toggle display,show
*/
function dE(n, s)
{
var e = document.getElementById(n);
if (!s)
{
s = (e.style.display == '' || e.style.display == 'block') ? -1 : 1;
}
e.style.display = (s == 1) ? 'block' : 'none';
#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
Refresh styles' themes and imagesets in ACP after mod installation to make it workable.
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM