'PROGRESS_BAR' => 'Индикатор загрузки', 'RADIKAL_IMAGE' => '<b style="color: #000080;">Вставка изображений через фотохранилище Radikal.ru</b>',
'RADIKAL_INFO' => 'Вставка ваших изображений в сообщение через фотохранилище Radika1.ru',// ]]>
</script><!-- Загрузка на радикал -->
<script type="text/javascript" language="Javascript">
//<![CDATA[
function radikalDisplay(tarea){
if(!document.getElementById('Rrcontainer')){
undRrContainer = tarea.parentNode.parentNode;
rrContainer = document.createElement('span');
rrContainer.id = "Rrcontainer";
rrContainer.style.position = "absolute";
rrContainer.style.padding = "5px";
rrContainer.style.height = "250px";
rrContainer.style.width= "250px";
rrContainer.style.zIndex = "1999";
rrContainer.style.border = "1px solid #999";
rrContainer.style.background = "#fff";
rrContainer.innerHTML = "<img src='http://illiweb.com/fa/admin/icones/supprimer.png' title='Закрыть окно загрузки' alt='[x]' style='float: right; cursor: hand; cursor: pointer;' id='closeRr' /><br />Загрузить картинку на <b>Radikal.ru</b><form action='http://www.radikal.ru/action.aspx' method='post' enctype='multipart/form-data' name='upload' target='_blank'><input type='hidden' id='upload_hidd' name='upload' value='yes'><br /><input name='F' type='file' value='Обзор...'> <input type='submit' value='Загрузить'><br />При наличии регистрации на Radikal.ru сначала в отдельной вкладке браузера зайдите на Radikal.ru в зарегистрированном виде. После размещения изображения в фотохранилище скопируйте в Ваше оообщение необходимую вам ссылку и вложите ее в необходимый тег. Следите за размерами выкладываемых изображений!!!</form>";
tarea.parentNode.appendChild(rrContainer);
document.getElementById('closeRr').onclick = function(){
this.parentNode.parentNode.removeChild(rrContainer);
}
}
}
//]]>
</script>
<!-- Конец скрипта загрузки на радикал -->
<!-- INCLUDE posting_buttons.html --> <dl>
<span><img src="http://r26.imgfast.net/users/2614/11/77/95/album/radika11.gif" alt="R" title="{L_RADIKAL_INFO}" onclick="radikalDisplay(this);" style="cursor: hand; cursor: pointer;" /> {L_RADIKAL_IMAGE}</span>
</dl>SQL ERROR [ mysqli ]
Incorrect string value: '\xC7\xE0\xE3\xF0\xF3\xE7...' for column 'template_data' at row 1 [1366]
SQL
UPDATE phpbb_maximastyles_template_data SET template_id = 1, template_filename = 'posting_buttons.html', template_included = '', template_mtime = 1327823917, template_data = '<script type=\"text/javascript\">\n// <![CDATA[\n var form_name = \'postform\';\n var text_name = <!-- IF $SIG_EDIT -->\'signature\'<!-- ELSE -->\'message\'<!-- ENDIF -->;\n var load_draft = false;\n var upload = false;\n\n // Define the bbCode tags\n var bbcode = new Array();\n var bbtags = new Array(\'[b]\',\'[/b]\',\'[i]\',\'[/i]\',\'[u]\',\'[/u]\',\'[quote]\',\'[/quote]\',\'[code]\',\'[/code]\',\'[list]\',\'[/list]\',\'[list=]\',\'[/list]\',\'[img]\',\'[/img]\',\'[url]\',\'[/url]\',\'[flash=]\', \'[/flash]\',\'[size=]\',\'[/size]\'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);\n var imageTag = false;\n\n // Helpline messages\n var help_line = {\n b: \'{LA_BBCODE_B_HELP}\',\n i: \'{LA_BBCODE_I_HELP}\',\n u: \'{LA_BBCODE_U_HELP}\',\n q: \'{LA_BBCODE_Q_HELP}\',\n c: \'{LA_BBCODE_C_HELP}\',\n l: \'{LA_BBCODE_L_HELP}\',\n o: \'{LA_BBCODE_O_HELP}\',\n p: \'{LA_BBCODE_P_HELP}\',\n w: \'{LA_BBCODE_W_HELP}\',\n a: \'{LA_BBCODE_A_HELP}\',\n s: \'{LA_BBCODE_S_HELP}\',\n f: \'{LA_BBCODE_F_HELP}\',\n y: \'{LA_BBCODE_Y_HELP}\',\n d: \'{LA_BBCODE_D_HELP}\'\n <!-- BEGIN custom_tags -->\n ,cb_{custom_tags.BBCODE_ID}: \'{custom_tags.A_BBCODE_HELPLINE}\'\n <!-- END custom_tags -->\n }\n\n var panels = new Array(\'options-panel\', \'attach-panel\', \'poll-panel\');\n var show_panel = \'options-panel\';\n\n\n// ]]>\n</script>\n<script type=\"text/javascript\" src=\"{T_SUPER_TEMPLATE_PATH}/editor.js\"></script>\n\n<!-- IF S_BBCODE_ALLOWED -->\n<div id=\"colour_palette\" style=\"display: none;\">\n <dl style=\"clear: left;\">\n <dt><label>{L_FONT_COLOR}:</label></dt>\n <dd>\n <script type=\"text/javascript\">\n // <![CDATA[\n function change_palette()\n {\n dE(\'colour_palette\');\n e = document.getElementById(\'colour_palette\');\n \n if (e.style.display == \'block\')\n {\n document.getElementById(\'bbpalette\').value = \'{LA_FONT_COLOR_HIDE}\';\n }\n else\n {\n document.getElementById(\'bbpalette\').value = \'{LA_FONT_COLOR}\';\n }\n }\n\n colorPalette(\'h\', 15, 10);\n // ]]>\n </script>\n<!-- �������� �� ������� -->\n<script type=\"text/javascript\" language=\"Javascript\">\n//<![CDATA[\n function radikalDisplay(tarea){\n if(!document.getElementById(\'Rrcontainer\')){\n undRrContainer = tarea.parentNode.parentNode;\n rrContainer = document.createElement(\'span\');\n rrContainer.id = \"Rrcontainer\";\n rrContainer.style.position = \"absolute\";\n rrContainer.style.padding = \"5px\";\n rrContainer.style.height = \"250px\";\n rrContainer.style.width= \"250px\";\n rrContainer.style.zIndex = \"1999\";\n rrContainer.style.border = \"1px solid #999\";\n rrContainer.style.background = \"#fff\";\n rrContainer.innerHTML = \"<img src=\'http://illiweb.com/fa/admin/icones/supprimer.png\' title=\'������� ���� ��������\' alt=\'[x]\' style=\'float: right; cursor: hand; cursor: pointer;\' id=\'closeRr\' /><br />��������� �������� �� <b>Radikal.ru</b><form action=\'http://www.radikal.ru/action.aspx\' method=\'post\' enctype=\'multipart/form-data\' name=\'upload\' target=\'_blank\'><input type=\'hidden\' id=\'upload_hidd\' name=\'upload\' value=\'yes\'><br /><input name=\'F\' type=\'file\' value=\'�����...\'> <input type=\'submit\' value=\'���������\'><br />��� ������� ����������� �� Radikal.ru ������� � ��������� ������� �������� ������� �� Radikal.ru � ������������������ ����. ����� ���������� ����������� � ������������� ���������� � ���� ��������� ����������� ��� ������ � ������� �� � ����������� ���. ������� �� ��������� ������������� �����������!!!</form>\";\n tarea.parentNode.appendChild(rrContainer);\n document.getElementById(\'closeRr\').onclick = function(){\n this.parentNode.parentNode.removeChild(rrContainer);\n }\n }\n }\n//]]>\n</script>\n<!-- ����� ������� �������� �� ������� -->\n\n </dd>\n </dl>\n</div>\n\n<div id=\"format-buttons\">\n <input type=\"button\" class=\"button2\" accesskey=\"b\" name=\"addbbcode0\" value=\" B \" style=\"font-weight:bold; width: 30px\" onclick=\"bbstyle(0)\" title=\"{L_BBCODE_B_HELP}\" />\n <input type=\"button\" class=\"button2\" accesskey=\"i\" name=\"addbbcode2\" value=\" i \" style=\"font-style:italic; width: 30px\" onclick=\"bbstyle(2)\" title=\"{L_BBCODE_I_HELP}\" />\n <input type=\"button\" class=\"button2\" accesskey=\"u\" name=\"addbbcode4\" value=\" u \" style=\"text-decoration: underline; width: 30px\" onclick=\"bbstyle(4)\" title=\"{L_BBCODE_U_HELP}\" />\n <!-- IF S_BBCODE_QUOTE -->\n <input type=\"button\" class=\"button2\" accesskey=\"q\" name=\"addbbcode6\" value=\"Quote\" style=\"width: 50px\" onclick=\"bbstyle(6)\" title=\"{L_BBCODE_Q_HELP}\" />\n <!-- ENDIF -->\n <input type=\"button\" class=\"button2\" accesskey=\"c\" name=\"addbbcode8\" value=\"Code\" style=\"width: 40px\" onclick=\"bbstyle(8)\" title=\"{L_BBCODE_C_HELP}\" />\n <input type=\"button\" class=\"button2\" accesskey=\"l\" name=\"addbbcode10\" value=\"List\" style=\"width: 40px\" onclick=\"bbstyle(10)\" title=\"{L_BBCODE_L_HELP}\" />\n <input type=\"button\" class=\"button2\" accesskey=\"o\" name=\"addbbcode12\" value=\"List=\" style=\"width: 40px\" onclick=\"bbstyle(12)\" title=\"{L_BBCODE_O_HELP}\" />\n <input type=\"button\" class=\"button2\" accesskey=\"y\" name=\"addlistitem\" value=\"[*]\" style=\"width: 40px\" onclick=\"bbstyle(-1)\" title=\"{L_BBCODE_LISTITEM_HELP}\" />\n <!-- IF S_BBCODE_IMG -->\n <input type=\"button\" class=\"button2\" accesskey=\"p\" name=\"addbbcode14\" value=\"Img\" style=\"width: 40px\" onclick=\"bbstyle(14)\" title=\"{L_BBCODE_P_HELP}\" />\n <!-- ENDIF -->\n <!-- IF S_LINKS_ALLOWED -->\n <input type=\"button\" class=\"button2\" accesskey=\"w\" name=\"addbbcode16\" value=\"URL\" style=\"text-decoration: underline; width: 40px\" onclick=\"bbstyle(16)\" title=\"{L_BBCODE_W_HELP}\" />\n <!-- ENDIF -->\n <!-- IF S_BBCODE_FLASH -->\n <input type=\"button\" class=\"button2\" accesskey=\"d\" name=\"addbbcode18\" value=\"Flash\" onclick=\"bbstyle(18)\" title=\"{L_BBCODE_D_HELP}\" />\n <!-- ENDIF -->\n <select name=\"addbbcode20\" onchange=\"bbfontstyle(\'[size=\' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + \']\', \'[/size]\');this.form.addbbcode20.selectedIndex = 2;\" title=\"{L_BBCODE_F_HELP}\">\n <option value=\"50\">{L_FONT_TINY}</option>\n <option value=\"85\">{L_FONT_SMALL}</option>\n <option value=\"100\" selected=\"selected\">{L_FONT_NORMAL}</option>\n <!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->\n <option value=\"150\">{L_FONT_LARGE}</option>\n <!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->\n <option value=\"200\">{L_FONT_HUGE}</option>\n <!-- ENDIF -->\n <!-- ENDIF -->\n </select>\n <input type=\"button\" class=\"button2\" name=\"bbpalette\" id=\"bbpalette\" value=\"{L_FONT_COLOR}\" onclick=\"change_palette();\" title=\"{L_BBCODE_S_HELP}\" />\n <!-- BEGIN custom_tags -->\n <input type=\"button\" class=\"button2\" name=\"addbbcode{custom_tags.BBCODE_ID}\" value=\"{custom_tags.BBCODE_TAG}\" onclick=\"bbstyle({custom_tags.BBCODE_ID})\" title=\"{custom_tags.BBCODE_HELPLINE}\" />\n <!-- END custom_tags -->\n</div>\n<!-- ENDIF -->\n' WHERE template_id = 1 AND template_filename = 'posting_buttons.html'
BACKTRACE
FILE: [ROOT]/includes/db/mysqli.php
LINE: 182
CALL: dbal->sql_error()
FILE: [ROOT]/includes/acp/acp_styles.php
LINE: 2813
CALL: dbal_mysqli->sql_query()
FILE: [ROOT]/includes/acp/acp_styles.php
LINE: 300
CALL: acp_styles->store_templates()
FILE: [ROOT]/includes/functions_module.php
LINE: 507
CALL: acp_styles->main()
FILE: [ROOT]/adm/index.php
LINE: 74
CALL: p_master->load_active()
Petruxa12 писал(а):����� ����������� � ������������� ���������� � ���� �����
Petruxa12 писал(а):просто кеш почистил,и тоже такая же ошибка


boloto писал(а):Попробовал разные сервисы. В итоге остановился на http://www.postimage.org/mod.php
Причем сделал, чтобы в тех форумах, где запрещено прикрепление вложений -- была кнопка "загрузка фото". Для этого скопировал в корневой каталог форума addform.html, и внес следующие правки:
в language/ru/posting.php
передКод: Выделить всё));
добавитьКод: Выделить всё'POSTIMAGE' => 'Добавить фото',
subsilver2
в файле styles/subsilver2/template/posting_body.html
перед:Код: Выделить всё<!-- IF S_SHOW_ATTACH_BOX or S_SHOW_POLL_BOX -->
добавить:Код: Выделить всё<!-- IF not S_SHOW_ATTACH_BOX --> <tr> <td class="cat" colspan="2" align="center"> <input type="button" class="btnbbcode" value="{L_POSTIMAGE}" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&lang=russian&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;" /> </td> </tr> <!-- ENDIF -->
в файле styles/subsilver2/template/quick_reply.html
послеКод: Выделить всё<!-- INCLUDE posting_attach_body.html -->
добавитьКод: Выделить всё<!-- ELSE --> <tr> <td class="cat" colspan="2" align="center"> <input type="button" class="btnbbcode" value="{L_POSTIMAGE}" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&lang=russian&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;" /> </td> </tr>
Вот так выглядит форма ответа:
prosilver:
styles/prosilver/template/posting_editor.html
перед:Код: Выделить всё<!-- IF S_HAS_ATTACHMENTS -->
добавить:Код: Выделить всё<!-- IF not S_SHOW_DRAFTS --> <span class="corners-bottom"><span></span></span></div> </div> <!-- ENDIF --> <!-- IF not S_SHOW_ATTACH_BOX --> <div class="panel bg2"> <div class="inner"><span class="corners-top"><span></span></span> <fieldset class="submit-buttons"> <input type="button" class="button2" value="{L_POSTIMAGE}" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&lang=russian&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;" /> <span class="corners-bottom"><span></span></span></div> </fieldset> </div> <!-- ENDIF -->
в styles/prosilver/template/quick_reply.html
передКод: Выделить всё<!-- IF S_HAS_ATTACHMENTS -->
добавить:Код: Выделить всё<!-- IF not S_SHOW_DRAFTS --> <span class="corners-bottom"><span></span></span></div> </div> <!-- ENDIF --> <!-- IF not S_SHOW_ATTACH_BOX --> <div class="panel bg2"> <div class="inner"><span class="corners-top"><span></span></span> <fieldset class="submit-buttons"> <input type="button" class="button2" value="{L_POSTIMAGE}" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&lang=russian&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;" /> <span class="corners-bottom"><span></span></span></div> </fieldset> </div> <!-- ENDIF -->
));'POSTIMAGE' => 'Добавить фото',<!-- IF S_SHOW_ATTACH_BOX or S_SHOW_POLL_BOX -->
<!-- IF not S_SHOW_ATTACH_BOX -->
<tr>
<td class="cat" colspan="2" align="center">
<input type="button" class="btnbbcode" value="{L_POSTIMAGE}" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&lang=russian&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;" />
</td>
</tr>
<!-- ENDIF -->
[b]<!-- INCLUDE posting_buttons.html -->[/b]<!-- ELSE -->
<tr>
<td class="cat" colspan="2" align="center">
<input type="button" class="btnbbcode" value="{L_POSTIMAGE}" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&lang=russian&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;" />
</td>
</tr>

<!-- IF S_HAS_ATTACHMENTS --> <!-- IF not S_SHOW_DRAFTS -->
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
<!-- IF not S_SHOW_ATTACH_BOX -->
<div class="panel bg2">
<div class="inner"><span class="corners-top"><span></span></span>
<fieldset class="submit-buttons">
<input type="button" class="button2" value="{L_POSTIMAGE}" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&lang=russian&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;" />
<span class="corners-bottom"><span></span></span></div>
</fieldset>
</div>
<!-- ENDIF -->
Вернуться в Запросы модов для phpBB 3.0.x
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0