На всякий случай:
Код: Выделить всё
#-- OPEN --
quick_reply.php
#-- FIND --
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
#-- AFTER ADD --
// create switch for UploadPic
if ($board_config['uploadpic_disabled'] != 1)
{
if ((($userdata['user_allow_uploadpic'] == 1) && ($userdata['user_posts'] >= intval($board_config['uploadpic_minposts'])))
|| ($board_config['uploadpic_allowguest'] == 1))
{
$template->assign_block_vars('switch_uploadpic', array());
}
}
#-- FIND --
'L_FONT_HUGE' => $lang['font_huge'],
#-- AFTER ADD --
// MOD UploadPic - begin
'S_UPLOADPIC' => append_sid('uploadpic.'.$phpEx),
'L_UPLOADPIC' => (file_exists($images['uploadpic_button'])) ? '<img src="'.$images['uploadpic_button'].'" name="upbutton" alt="'.$lang['UploadPic'].'" title="'.$lang['UploadPic'].'" border="0">' : $lang['UploadPic'],
// MOD UploadPic - end
#-- OPEN --
quick_reply.tpl
#-- FIND --
<textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="2" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);"></textarea><br />
#-- BEFORE ADD --
<!-- BEGIN switch_uploadpic -->
<strong><a href="{S_UPLOADPIC}" onclick="window.open('{S_UPLOADPIC}', '_uploadpic', 'height=400,resizable=yes,scrollbars=yes,width=450');return false;" target="_uploadpic" class="nav" onMouseOver="helpline('up')">{L_UPLOADPIC}</a><br /></strong>
<!-- END switch_uploadpic -->