Problema con mod Cambiar botones de BBcodes de phpBB3 de mitch
Publicado: 11 Mar 2011, 03:46
Buenas, escribo por que tengo un problema con el mod de mitch, el caso es que veo las imagenes lo veo todo perfecto el problema es que cuando le doy click, un ejemplo a la de URL, no agregan las marquesillas a la caja de texto y tampoco seagregan ningun codigo al post.
Esto mismo pasa con todas las imagenes da igual cual pulses que no funcionan, me di cuenta tambien que pasa con los emoticonos.
Este el codigo que me mandan a buscar en posting_buttons.html
Este el codigo Original de posting_buttons.html de mi estilo
Este el codigo que me mandan a remplazar en posting_buttons.html
La unica direfrencia que encontre fue el siguiente
Original
En Buscar
Remplazar
Espero que me puedan ayudar
Esto mismo pasa con todas las imagenes da igual cual pulses que no funcionan, me di cuenta tambien que pasa con los emoticonos.
Este el codigo que me mandan a buscar en posting_buttons.html
Código: Seleccionar todo
<!-- IF S_BBCODE_ALLOWED -->
<div id="colour_palette" style="display: none;">
<dl style="clear: left;">
<dt><label>{L_FONT_COLOR}:</label></dt>
<dd>
<script type="text/javascript">
// <![CDATA[
function change_palette()
{
dE('colour_palette');
e = document.getElementById('colour_palette');
if (e.style.display == 'block')
{
document.getElementById('bbpalette').value = '{LA_FONT_COLOR_HIDE}';
}
else
{
document.getElementById('bbpalette').value = '{LA_FONT_COLOR}';
}
}
colorPalette('h', 15, 10);
// ]]>
</script>
</dd>
</dl>
</div>
<div id="format-buttons">
<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}" />
<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}" />
<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}" />
<!-- IF S_BBCODE_QUOTE -->
<input type="button" class="button2" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" title="{L_BBCODE_Q_HELP}" />
<!-- ENDIF -->
<input type="button" class="button2" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" />
<input type="button" class="button2" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" />
<input type="button" class="button2" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" title="{L_BBCODE_O_HELP}" />
<input type="button" class="button2" accesskey="t" name="addlitsitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" />
<!-- IF S_BBCODE_IMG -->
<input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
<!-- ENDIF -->
<!-- IF S_LINKS_ALLOWED -->
<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}" />
<!-- ENDIF -->
<!-- IF S_BBCODE_FLASH -->
<input type="button" class="button2" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" />
<!-- ENDIF -->
<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}">
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
<option value="150">{L_FONT_LARGE}</option>
<option value="200">{L_FONT_HUGE}</option>
</select>
<input type="button" class="button2" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />
<!-- BEGIN custom_tags -->
<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}" />
<!-- END custom_tags -->
</div>
<!-- ENDIF -->
Código: Seleccionar todo
<!-- IF S_BBCODE_ALLOWED -->
<div id="colour_palette" style="display: none;">
<dl style="clear: left;">
<dt><label>{L_FONT_COLOR}:</label></dt>
<dd>
<script type="text/javascript">
// <![CDATA[
function change_palette()
{
dE('colour_palette');
e = document.getElementById('colour_palette');
if (e.style.display == 'block')
{
document.getElementById('bbpalette').value = '{LA_FONT_COLOR_HIDE}';
}
else
{
document.getElementById('bbpalette').value = '{LA_FONT_COLOR}';
}
}
colorPalette('h', 15, 10);
// ]]>
</script>
</dd>
</dl>
</div>
<div id="format-buttons">
<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}" />
<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}" />
<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}" />
<!-- IF S_BBCODE_QUOTE -->
<input type="button" class="button2" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" title="{L_BBCODE_Q_HELP}" />
<!-- ENDIF -->
<input type="button" class="button2" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" />
<input type="button" class="button2" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" />
<input type="button" class="button2" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" title="{L_BBCODE_O_HELP}" />
<input type="button" class="button2" accesskey="t" name="addlitsitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" />
<!-- IF S_BBCODE_IMG -->
<input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
<!-- ENDIF -->
<!-- IF S_LINKS_ALLOWED -->
<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}" />
<!-- ENDIF -->
<!-- IF S_BBCODE_FLASH -->
<input type="button" class="button2" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" />
<!-- ENDIF -->
<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}">
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
<option value="150">{L_FONT_LARGE}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
<option value="200">{L_FONT_HUGE}</option>
<!-- ENDIF -->
<!-- ENDIF -->
</select>
<input type="button" class="button2" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />
<!-- BEGIN custom_tags -->
<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}" />
<!-- END custom_tags -->
</div>
<!-- ENDIF -->
Código: Seleccionar todo
<!-- IF S_BBCODE_ALLOWED -->
<div id="colour_palette" style="display: none;">
<script type="text/javascript">
// <![CDATA[
function change_palette()
{
dE('colour_palette');
e = document.getElementById('colour_palette');
if (e.style.display == 'block')
{
document.getElementById('bbpalette').value = '{LA_FONT_COLOR_HIDE}';
}
else
{
document.getElementById('bbpalette').value = '{LA_FONT_COLOR}';
}
}
colorPalette('h', 15, 10);
// ]]>
</script>
</div>
<div id="format-buttons">
<select name="fuentes" style="height: 22px;" onchange="bbfontstyle('[font=' + this.form.fuentes.options[this.form.fuentes.selectedIndex].value + ']', '[/font]');this.selectedIndex=0;" title="Tipo de fuente: [font=Arial]Texto[/font]">
<option value="" style="font-family: Verdana;" selected="selected">Fuente</option>
<option value="Arial" style="font-family: Arial;">Arial</option>
<option value="Comic Sans MS" style="font-family: 'Comic Sans MS';">Comic Sans MS</option>
<option value="Courier New" style="font-family: 'Courier New';">Courier New</option>
<option value="Impact" style="font-family: Impact;">Impact</option>
<option value="Lucida Console" style="font-family: 'Lucida Console';">Lucida Console</option>
<option value="Lucida Sans Unicode" style="font-family: 'Lucida Sans Unicode';">Lucida Sans Unicode</option>
<option value="Microsoft Sans Serif" style="font-family: 'Microsoft Sans Serif';">Microsoft Sans Serif</option>
<option value="Symbol" style="font-family: Symbol;">Symbol</option>
<option value="Tahoma" style="font-family: Tahoma;">Tahoma</option>
<option value="Times New Roman" style="font-family: 'Times New Roman';">Times New Roman</option>
<option value="Traditional Arabic" style="font-family: 'Traditional Arabic';">Traditional Arabic</option>
<option value="Trebuchet MS" style="font-family: 'Trebuchet MS';">Trebuchet MS</option>
<option value="Verdana" style="font-family: Verdana;">Verdana</option>
<option value="Webdings" style="font-family: Webdings;">Webdings</option>
<option value="Wingdings" style="font-family: Wingdings;">Wingdings</option>
</select>
<select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 0;" title="{L_BBCODE_F_HELP}">
<option value="" selected="selected">Tamaño</option>
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100">{L_FONT_NORMAL}</option>
<option value="150">{L_FONT_LARGE}</option>
<option value="200">{L_FONT_HUGE}</option>
</select>
<input type="button" style="height: 22px;" class="button2" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />
<br>
<img src="./images/posting/left.gif" border="0" alt="align=left" onclick="bbfontstyle('[align=left]','[/align]')" title="Alinear a la Izquierda: [align=left]Texto[/align]" class="bbimages"/>
<img src="./images/posting/center.gif" border="0" alt="align=center" onclick="bbfontstyle('[align=center]','[/align]')" title="Centrar: [align=center]Texto[/align]" class="bbimages"/>
<img src="./images/posting/right.gif" border="0" alt="align=right" onclick="bbfontstyle('[align=right]','[/align]')" title="Alinear a la Derecha: [align=right]Texto[/align]" class="bbimages"/>
<img src="./images/posting/justify.gif" border="0" alt="align=justify" onclick="bbfontstyle('[align=justify]','[/align]')" title="Justificar: [align=justify]Texto[/align]" class="bbimages"/>
<img src="./images/posting/dots.gif" border="0" style="padding-left: 5px; padding-right: 5px;" />
<img src="./images/posting/bold.gif" border="0" alt="b" accesskey="b" name="addbbcode0" value=" B " onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" class="bbimages"/>
<img src="./images/posting/italic.gif" border="0" alt="i" accesskey="i" name="addbbcode2" value=" i " onclick="bbstyle(2)" title="{L_BBCODE_I_HELP}" class="bbimages"/>
<img src="./images/posting/under.gif" border="0" alt="u" accesskey="u" name="addbbcode4" value=" u " onclick="bbstyle(4)" title="{L_BBCODE_U_HELP}" class="bbimages"/>
<img src="./images/posting/strike.gif" border="0" alt="strike" onclick="bbfontstyle('[strike]','[/strike]')" title="Texto Tachado: [strike]Texto[/strike]" class="bbimages"/>
<img src="./images/posting/sup.gif" border="0" alt="sup" onclick="bbfontstyle('[sup]','[/sup]')" title="Superíndice: [sup]Texto[/sup]" class="bbimages"/>
<img src="./images/posting/sub.gif" border="0" alt="sub" onclick="bbfontstyle('[sub]','[/sub]')" title="Subíndice: [sub]Texto[/sub]" class="bbimages"/>
<img src="./images/posting/dots.gif" border="0" style="padding-left: 5px; padding-right: 5px;" />
<img src="./images/posting/listb.gif" border="0" alt="list" accesskey="l" name="addbbcode10" value="List" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" class="bbimages"/>
<img src="./images/posting/listo.gif" border="0" alt="list=" accesskey="o" name="addbbcode12" value="List=" onclick="bbstyle(12)" title="{L_BBCODE_O_HELP}" class="bbimages"/>
<img src="./images/posting/listitem.gif" border="0" alt="[*]" accesskey="t" name="addlitsitem" value="[*]" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" class="bbimages"/>
<img src="./images/posting/dots.gif" border="0" style="padding-left: 5px; padding-right: 5px;" />
<img src="./images/posting/highlight=.gif" border="0" alt="highlight" onclick="bbfontstyle('[highlight=#FFFFAA]','[/highlight]')" title="Toque de luz (highlight): [highlight=#COLOR]Texto[/highlight]" class="bbimages"/>
<img src="./images/posting/hr.gif" border="0" alt="hr" onclick="bbfontstyle('[hr]','[/hr]')" title="Línea Horizontal: [hr][/hr]" class="bbimages"/>
<img src="./images/posting/ot.gif" border="0" alt="ot" onclick="bbfontstyle('[ot]','[/ot]')" onmouseover="helpline('ot')" title="Offtopic: [ot]Texto[/ot]" class="bbimages"/>
<img src="./images/posting/dots.gif" border="0" style="padding-left: 5px; padding-right: 5px;" />
<img src="./images/posting/marqd.gif" border="0" alt="marquee=down" onclick="bbfontstyle('[marquee=down]','[/marquee]')" title="Desplazar texto hacia abajo: [marquee=down]Texto[/marquee]" class="bbimages"/>
<img src="./images/posting/marqu.gif" border="0" alt="marquee=up" onclick="bbfontstyle('[marquee=up]','[/marquee]')" title="Desplazar texto hacia arriba: [marquee=up]Texto[/marquee]" class="bbimages"/>
<img src="./images/posting/marql.gif" border="0" alt="marquee=left" onclick="bbfontstyle('[marquee=left]','[/marquee]')" title="Desplazar texto hacia la izquierda: [marquee=left]Texto[/marquee]" class="bbimages"/>
<img src="./images/posting/marqr.gif" border="0" alt="marquee=right" onclick="bbfontstyle('[marquee=right]','[/marquee]')" title="Desplazar texto hacia la derecha: [marquee=right]Texto[/marquee]" class="bbimages"/>
<br>
<!-- IF S_BBCODE_QUOTE -->
<img src="./images/posting/quote.gif" border="0" alt="quote" accesskey="q" name="addbbcode6" value="Quote" onclick="bbstyle(6)" title="{L_BBCODE_Q_HELP}" class="bbimages"/>
<!-- ENDIF -->
<img src="./images/posting/code.gif" border="0" alt="code" accesskey="c" name="addbbcode8" value="Code" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" class="bbimages"/>
<img src="./images/posting/spoiler.gif" border="0" alt="spoiler" onclick="bbfontstyle('[spoiler]','[/spoiler]')" title="Spoiler: [spoiler]Texto[/spoiler]" class="bbimages"/>
<img src="./images/posting/dots.gif" border="0" style="padding-left: 5px; padding-right: 5px;" />
<!-- IF S_BBCODE_IMG -->
<img src="./images/posting/img.gif" border="0" alt="img" accesskey="p" name="addbbcode14" value="Img" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" class="bbimages"/>
<!-- ENDIF -->
<!-- IF S_LINKS_ALLOWED -->
<img src="./images/posting/url.gif" border="0" alt="url" accesskey="w" name="addbbcode16" value="URL" onclick="bbstyle(16)" title="{L_BBCODE_W_HELP}" class="bbimages"/>
<!-- ENDIF -->
<img src="./images/posting/email.gif" alt="email" border="0" onclick="bbfontstyle('[email]','[/email]')" title="Correo: [mail]Correo[/mail]" class="bbimages"/>
<img src="./images/posting/dots.gif" border="0" style="padding-left: 5px; padding-right: 5px;" />
<!-- IF S_BBCODE_FLASH -->
<img src="./images/posting/flash.gif" border="0" alt="flash" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" class="bbimages"/>
<!-- ENDIF -->
<img src="./images/posting/video.gif" border="0" alt="mp3" onclick="bbfontstyle('[video width=320 height=285]','[/video]')" title="Video (avi/wmv/mpg): [video width=ancho height=alto]URL del archivo[/video]" class="bbimages"/>
<img src="./images/posting/mp3.gif" border="0" alt="mp3" onclick="bbfontstyle('[mp3]','[/mp3]')" title="Archivo de audio (mp3): [mp3]URL del archivo[/mp3]" class="bbimages"/>
<img src="./images/posting/quick.gif" border="0" alt="quick" onclick="bbfontstyle('[quick width=320 height=240]','[/quick]')" title="Video Quicktime: [quick width=ancho height=alto]URL del archivo[/quick]" class="bbimages"/>
<img src="./images/posting/ram.gif" border="0" alt="ram" onclick="bbfontstyle('[ram width=275 height=40]','[/ram]')" title="Archivo Real Media: [ram width=ancho height=alto]URL del archivo[/ram]" class="bbimages"/>
<img src="./images/posting/googlevideo.gif" border="0" alt="googlevideo" onclick="bbfontstyle('[googlevideo]','[/googlevideo]')" title="Video google: [googlevideo]ID del video[/googlevideo]" class="bbimages"/>
<img src="./images/posting/youtube.gif" border="0" alt="youtube" onclick="bbfontstyle('[youtube]','[/youtube]')" title="Video youtube:[youtube]ID del video[/youtube]" class="bbimages"/>
<!-- IF S_BBCODE_ALLOWED and .custom_tags -->
<br>
<!-- BEGIN custom_tags -->
<img src="./images/posting/{custom_tags.BBCODE_TAG}.gif" border="0" name="addbbcode{custom_tags.BBCODE_ID}" alt="{custom_tags.BBCODE_TAG}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" class="bbimages"/>
<!-- END custom_tags -->
<!-- ENDIF -->
</div>
<!-- ENDIF -->
Original
Código: Seleccionar todo
<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}">
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
<option value="150">{L_FONT_LARGE}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
<option value="200">{L_FONT_HUGE}</option>
<!-- ENDIF -->
<!-- ENDIF -->
</select>
Código: Seleccionar todo
<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}">
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
<option value="150">{L_FONT_LARGE}</option>
<option value="200">{L_FONT_HUGE}</option>
</select>
Código: Seleccionar todo
<select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 0;" title="{L_BBCODE_F_HELP}">
<option value="" selected="selected">Tamaño</option>
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100">{L_FONT_NORMAL}</option>
<option value="150">{L_FONT_LARGE}</option>
<option value="200">{L_FONT_HUGE}</option>
</select>