Error al tratar de actualizar plantilla en ACP
Publicado: 22 Dic 2010, 05:08
Ola amigos:
Bueno, tengo un problema...
Estaba instalando los botones mejorados para el editor de texto de este link: http://www.phpbb-es.com/foro/mods-desar ... 17637.html. Todo en orden, modifique la plantilla de posting_buttons.html por el ACP, ya saben, Estilos>>Plantillas. Quedo perfecto. Entonces, se me ocurre modificar el archivo posting_buttons.html via FTP para despues actualizar mis plantillas. Es entonces cuando me da este error
\',\'Texto\',\n\n highlight: \'Toque de luz (highlight): [highlight=#COLOR]Texto[/highlight]\',\n\n hr: \'L�nea Horizontal:
\',\n\n ot: \'Offtopic:\',\n\n marquee_down: \'Desplazar texto hacia abajo: Texto\',\n\n marquee_up: \'Desplazar texto hacia arriba: Texto\',\n\n marquee_left: \'Desplazar texto hacia la izquierda: Texto\',\n\n marquee_right: \'Desplazar texto hacia la derecha: Texto\',\n\n spoiler: \'Spoiler: \',\n\n mail: \'Correo: [mail]Correo[/mail]\',\n\n video: \'Video (avi/wmv/mpg): [video width=ancho height=alto]URL del archivo[/video]\',\n\n mp3: \'Archivo de audio (mp3): \',\n\n quick: \'Video Quicktime: [quick width=ancho height=alto]URL del archivo[/quick]\',\n\n ram: \'Archivo Real Media: [ram width=ancho height=alto]URL del archivo[/ram]\',\n\n googlevideo: \'Video google: [googlevideo]ID del video[/googlevideo]\',\n\n youtube: \'Video youtube: \',\n\n// fin botones en imagenes por mitch\n tip: \'{L_STYLES_TIP}\'\n <!-- BEGIN custom_tags -->\n ,cb_{custom_tags.BBCODE_ID}: \'{custom_tags.A_BBCODE_HELPLINE}\'\n <!-- END custom_tags -->\n }\n\n // ]]>\n </script>\n <script type=\"text/javascript\" src=\"{T_TEMPLATE_PATH}/editor.js\"></script>\n\n<!-- IF S_BBCODE_ALLOWED -->\n\n <select class=\"gensmall\" style=\"height: 18px;\" name=\"fuentes\" onchange=\"bbfontstyle(\'[font=\' + this.form.fuentes.options[this.form.fuentes.selectedIndex].value + \']\', \'[/font]\');this.selectedIndex=0;\" onmouseover=\"helpline(\'font\')\">\n\n <option value=\"\" class=\"genmed\" style=\"font-family: Verdana;\" selected=\"selected\">Fuente</option>\n\n <option value=\"Arial\" class=\"genmed\" style=\"font-family: Arial;\">Arial</option>\n\n <option value=\"Comic Sans MS\" class=\"genmed\" style=\"font-family: \'Comic Sans MS\';\">Comic Sans MS</option>\n\n <option value=\"Courier New\" class=\"genmed\" style=\"font-family: \'Courier New\';\">Courier New</option>\n\n \n\n <option value=\"Impact\" class=\"genmed\" style=\"font-family: Impact;\">Impact</option>\n\n <option value=\"Lucida Console\" class=\"genmed\" style=\"font-family: \'Lucida Console\';\">Lucida Console</option>\n\n <option value=\"Lucida Sans Unicode\" class=\"genmed\" style=\"font-family: \'Lucida Sans Unicode\';\">Lucida Sans Unicode</option>\n\n <option value=\"Microsoft Sans Serif\" class=\"genmed\" style=\"font-family: \'Microsoft Sans Serif\';\">Microsoft Sans Serif</option>\n\n <option value=\"Symbol\" class=\"genmed\" style=\"font-family: Symbol;\">Symbol</option>\n\n <option value=\"Tahoma\" class=\"genmed\" style=\"font-family: Tahoma;\">Tahoma</option>\n\n \n\n <option value=\"Times New Roman\" class=\"genmed\" style=\"font-family: \'Times New Roman\';\">Times New Roman</option>\n\n <option value=\"Traditional Arabic\" class=\"genmed\" style=\"font-family: \'Traditional Arabic\';\">Traditional Arabic</option>\n\n <option value=\"Trebuchet MS\" class=\"genmed\" style=\"font-family: \'Trebuchet MS\';\">Trebuchet MS</option>\n\n <option value=\"Verdana\" class=\"genmed\" style=\"font-family: Verdana;\">Verdana</option>\n\n <option value=\"Webdings\" class=\"genmed\" style=\"font-family: Webdings;\">Webdings</option>\n\n <option value=\"Wingdings\" class=\"genmed\" style=\"font-family: Wingdings;\">Wingdings</option>\n\n </select>\n\n \n\n <select class=\"gensmall\" name=\"addbbcode20\" onchange=\"bbfontstyle(\'[size=\' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + \']\', \'[/size]\');this.form.addbbcode20.selectedIndex = 0;\" onmouseover=\"helpline(\'f\')\" onmouseout=\"helpline(\'tip\')\">\n\n <option value=\"\" selected=\"selected\">Tama�o</option>\n\n <option value=\"50\">{L_FONT_TINY}</option>\n\n <option value=\"85\">{L_FONT_SMALL}</option>\n\n <option value=\"100\">{L_FONT_NORMAL}</option>\n\n <option value=\"150\">{L_FONT_LARGE}</option>\n\n <option value=\"200\">{L_FONT_HUGE}</option>\n\n </select>\n\n<br>\n\n <img src=\"./images/posting/left.gif\" border=\"0\" alt=\"align=left\" onclick=\"bbfontstyle(\'\',\'\')\" onmouseover=\"helpline(\'strike\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/sup.gif\" border=\"0\" alt=\"sup\" onclick=\"bbfontstyle(\'\',\'\')\" onmouseover=\"helpline(\'sup\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/sub.gif\" border=\"0\" alt=\"sub\" onclick=\"bbfontstyle(\'\',\'\')\" onmouseover=\"helpline(\'sub\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n \n\n <img src=\"./images/posting/dots.gif\" border=\"0\" style=\"padding-left: 5px; padding-right: 5px;\" />\n\n \n\n <img src=\"./images/posting/listb.gif\" border=\"0\" alt=\"list\" accesskey=\"l\" name=\"addbbcode10\" value=\"List\" onclick=\"bbstyle(10)\" onmouseover=\"helpline(\'l\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/listo.gif\" border=\"0\" alt=\"list\" accesskey=\"o\" name=\"addbbcode12\" value=\"List=\" onclick=\"bbstyle(12)\" onmouseover=\"helpline(\'o\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/listitem.gif\" border=\"0\" alt=\"[*]\" accesskey=\"t\" name=\"addlitsitem\" value=\"[*]\" onclick=\"bbstyle(-1)\" onmouseover=\"helpline(\'e\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n \n\n <img src=\"./images/posting/dots.gif\" border=\"0\" style=\"padding-left: 5px; padding-right: 5px;\" />\n\n \n\n <img src=\"./images/posting/highlight=.gif\" alt=\"highlight\" border=\"0\" onclick=\"bbfontstyle(\'\',\'\')\" onmouseover=\"helpline(\'highlight\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/hr.gif\" border=\"0\" alt=\"hr\" onclick=\"bbfontstyle(\'
\')\" onmouseover=\"helpline(\'hr\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/ot.gif\" border=\"0\" alt=\"ot\" onclick=\"bbfontstyle(\'\')\" onmouseover=\"helpline(\'ot\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n \n\n <img src=\"./images/posting/dots.gif\" border=\"0\" style=\"padding-left: 5px; padding-right: 5px;\" />\n\n \n\n <img src=\"./images/posting/marqd.gif\" border=\"0\" alt=\"marquee=down\" onclick=\"bbfontstyle(\'\',\'\')\" onmouseover=\"helpline(\'marquee_down\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/marqu.gif\" border=\"0\" alt=\"marquee=up\" onclick=\"bbfontstyle(\'\',\'\')\" onmouseover=\"helpline(\'marquee_up\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/marql.gif\" border=\"0\" alt=\"marquee=left\" onclick=\"bbfontstyle(\'\',\'\')\" onmouseover=\"helpline(\'marquee_left\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/marqr.gif\" border=\"0\" alt=\"marquee=right\" onclick=\"bbfontstyle(\'\',\'\')\" onmouseover=\"helpline(\'marquee_right\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n \n\n <br>\n\n \n\n <!-- IF S_BBCODE_QUOTE -->\n\n <img src=\"./images/posting/quote.gif\" border=\"0\" alt=\"quote\" accesskey=\"q\" name=\"addbbcode6\" value=\"Quote\" onclick=\"bbstyle(6)\" onmouseover=\"helpline(\'q\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <!-- ENDIF -->\n\n <img src=\"./images/posting/code.gif\" border=\"0\" alt=\"code\" accesskey=\"c\" name=\"addbbcode8\" value=\"Code\" onclick=\"bbstyle(8)\" onmouseover=\"helpline(\'c\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/spoiler.gif\" border=\"0\" alt=\"spoiler\" onclick=\"bbfontstyle(\'\')\" onmouseover=\"helpline(\'spoiler\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n \n\n <img src=\"./images/posting/dots.gif\" border=\"0\" style=\"padding-left: 5px; padding-right: 5px;\" />\n\n \n\n <!-- IF S_BBCODE_IMG -->\n\n <img src=\"./images/posting/img.gif\" border=\"0\" alt=\"img\" accesskey=\"p\" name=\"addbbcode14\" value=\"Img\" onclick=\"bbstyle(14)\" onmouseover=\"helpline(\'p\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <!-- ENDIF -->\n\n <!-- IF S_LINKS_ALLOWED -->\n\n <img src=\"./images/posting/url.gif\" border=\"0\" alt=\"URL\" accesskey=\"w\" name=\"addbbcode16\" value=\"URL\" onclick=\"bbstyle(16)\" onmouseover=\"helpline(\'w\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <!-- ENDIF -->\n\n <img src=\"./images/posting/email.gif\" border=\"0\" alt=\"email\" onclick=\"bbfontstyle(\'[email]\',\'[/email]\')\" onmouseover=\"helpline(\'mail\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/dots.gif\" border=\"0\" style=\"padding-left: 5px; padding-right: 5px;\" />\n\n <!-- IF S_BBCODE_FLASH -->\n\n <img src=\"./images/posting/flash.gif\" border=\"0\" alt=\"Flash\" accesskey=\"d\" name=\"addbbcode18\" value=\"Flash\" onclick=\"bbstyle(18)\" onmouseover=\"helpline(\'d\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <!-- ENDIF -->\n\n <img src=\"./images/posting/video.gif\" border=\"0\" alt=\"video\" onclick=\"bbfontstyle(\'[video width=320 height=285]\',\'[/video]\')\" onmouseover=\"helpline(\'video\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/mp3.gif\" border=\"0\" alt=\"mp3\" onclick=\"bbfontstyle(\'\')\" onmouseover=\"helpline(\'mp3\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/quick.gif\" border=\"0\" alt=\"quick\" onclick=\"bbfontstyle(\'[quick width=320 height=240]\',\'[/quick]\')\" onmouseover=\"helpline(\'quick\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/ram.gif\" border=\"0\" alt=\"ram\" onclick=\"bbfontstyle(\'[ram width=275 height=40]\',\'[/ram]\')\" onmouseover=\"helpline(\'ram\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/googlevideo.gif\" border=\"0\" alt=\"googlevideo\" onclick=\"bbfontstyle(\'[googlevideo]\',\'[/googlevideo]\')\" onmouseover=\"helpline(\'googlevideo\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/youtube.gif\" border=\"0\" alt=\"youtube\" onclick=\"bbfontstyle(\'\')\" onmouseover=\"helpline(\'youtube\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n \n\n <!-- IF S_BBCODE_ALLOWED and .custom_tags -->\n\n <br>\n\n <!-- BEGIN custom_tags -->\n\n <img src=\"./images/posting/{custom_tags.BBCODE_TAG}.gif\" border=\"0\" alt=\"{custom_tags.BBCODE_TAG}\" title=\"{custom_tags.BBCODE_TAG}\" name=\"addbbcode{custom_tags.BBCODE_ID}\" value=\"{custom_tags.BBCODE_TAG}\" onclick=\"bbstyle({custom_tags.BBCODE_ID})\"<!-- IF custom_tags.BBCODE_HELPLINE !== \'\' --> onmouseover=\"helpline(\'cb_{custom_tags.BBCODE_ID}\')\" onmouseout=\"helpline(\'tip\')\"<!-- ENDIF --> class=\"bbimages\"/>\n\n <!-- END custom_tags -->\n\n <!-- ENDIF -->\n\n <!-- ENDIF -->\n\n </td>\n\n</tr>' WHERE template_id = 9 AND template_filename = 'posting_buttons.html'
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()
FILE: includes/acp/acp_styles.php
LINE: 2624
CALL: dbal_mysqli->sql_query()
FILE: includes/acp/acp_styles.php
LINE: 300
CALL: acp_styles->store_templates()
FILE: includes/functions_module.php
LINE: 507
CALL: acp_styles->main()
FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
[/code]
Me podrian ayudar, por favor?
Saludos!!
Bueno, tengo un problema...
Estaba instalando los botones mejorados para el editor de texto de este link: http://www.phpbb-es.com/foro/mods-desar ... 17637.html. Todo en orden, modifique la plantilla de posting_buttons.html por el ACP, ya saben, Estilos>>Plantillas. Quedo perfecto. Entonces, se me ocurre modificar el archivo posting_buttons.html via FTP para despues actualizar mis plantillas. Es entonces cuando me da este error
Código: Seleccionar todo
Error General
SQL ERROR [ mysqli ]
Incorrect string value: '\xEDndice...' for column 'template_data' at row 1 [1366]
SQL
UPDATE phpbb_styles_template_data SET template_id = 9, template_filename = 'posting_buttons.html', template_included = 'posting_body.html:ucp_main_drafts.html:memberlist_view.html:ucp_profile_signature.html:', template_mtime = 1292989783, template_data = '<tr valign=\"middle\" align=\"{S_CONTENT_FLOW_BEGIN}\">\n <td colspan=\"2\">\n <script type=\"text/javascript\">\n // <![CDATA[\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]\',\'
- \',\'
- \',\'
Texto
\',\n\n align_center: \'Centrar: Texto
\',\n\n align_right: \'Alinear a la Derecha: Texto
\',\n\n align_justify: \'Justificar: Texto
\',\n\n sup: \'Super�ndice: Texto\',\n\n sub: \'Sub�ndice: Texto\',\n\n strike: \'Texto Tachado: \',\n\n ot: \'Offtopic:
Off Topic:
Texto
Spoiler
Texto
\',\'
\')\" onmouseover=\"helpline(\'align_left\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/center.gif\" border=\"0\" alt=\"align=right\" onclick=\"bbfontstyle(\'\',\'
\')\" onmouseover=\"helpline(\'align_center\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/right.gif\" border=\"0\" alt=\"align=right\" onclick=\"bbfontstyle(\'\',\'
\')\" onmouseover=\"helpline(\'align_right\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/justify.gif\" border=\"0\" alt=\"align=justify\" onclick=\"bbfontstyle(\'\',\'
\')\" onmouseover=\"helpline(\'align_justify\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n \n\n <img src=\"./images/posting/dots.gif\" border=\"0\" style=\"padding-left: 5px; padding-right: 5px;\" />\n\n \n\n <img src=\"./images/posting/bold.gif\" border=\"0\" alt=\"b\" accesskey=\"b\" name=\"addbbcode0\" value=\" B \" onclick=\"bbstyle(0)\" onmouseover=\"helpline(\'b\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/italic.gif\" border=\"0\" alt=\"i\" accesskey=\"i\" name=\"addbbcode2\" value=\" i \" onclick=\"bbstyle(2)\" onmouseover=\"helpline(\'i\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/under.gif\" border=\"0\" alt=\"u\" accesskey=\"u\" name=\"addbbcode4\" value=\" u \" onclick=\"bbstyle(4)\" onmouseover=\"helpline(\'u\')\" onmouseout=\"helpline(\'tip\')\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/strike.gif\" border=\"0\" alt=\"strike\" onclick=\"bbfontstyle(\'\')\" onmouseover=\"helpline(\'hr\')\" onmouseout=\"helpline(\'tip\')\" border=\"0\" class=\"bbimages\"/>\n\n <img src=\"./images/posting/ot.gif\" border=\"0\" alt=\"ot\" onclick=\"bbfontstyle(\'
Off Topic:
\',\'
Spoiler
\',\'
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()
FILE: includes/acp/acp_styles.php
LINE: 2624
CALL: dbal_mysqli->sql_query()
FILE: includes/acp/acp_styles.php
LINE: 300
CALL: acp_styles->store_templates()
FILE: includes/functions_module.php
LINE: 507
CALL: acp_styles->main()
FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
[/code]
Me podrian ayudar, por favor?
Saludos!!
