Pues cambié los BBcodes para modificacion de botones en imagenes Creado por mitch y siempre que instalo alguno nuevo y le adjunto una imagen desde posting_buttons.html,me va perfecto. Pero cuando los pongo desde Mensajes del ACP y los activo Mostrar en mensajes me sale esto:
o sea si pulso en boton-descarga me sale [size=][/size]
y si lo hago en member me pone [boton-descarga] [/boton-descarga]
cada vez me pone el anterior
He estado revisando el archivo posting_buttons.html y no encuentro ningún error.
Se lo adjunto aquí:
contenido de posting_buttons.html
Código: Seleccionar todo
<script type="text/javascript">
// <![CDATA[
var form_name = 'postform';
var text_name = <!-- IF $SIG_EDIT -->'signature'<!-- ELSE -->'message'<!-- ENDIF -->;
var load_draft = false;
var upload = false;
// Define the bbCode tags
var bbcode = new Array();
var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
- ','
- ','
var imageTag = false;
// Helpline messages
var help_line = {
b: '{LA_BBCODE_B_HELP}',
i: '{LA_BBCODE_I_HELP}',
u: '{LA_BBCODE_U_HELP}',
q: '{LA_BBCODE_Q_HELP}',
c: '{LA_BBCODE_C_HELP}',
l: '{LA_BBCODE_L_HELP}',
o: '{LA_BBCODE_O_HELP}',
p: '{LA_BBCODE_P_HELP}',
w: '{LA_BBCODE_W_HELP}',
a: '{LA_BBCODE_A_HELP}',
s: '{LA_BBCODE_S_HELP}',
f: '{LA_BBCODE_F_HELP}',
e: '{LA_BBCODE_E_HELP}',
d: '{LA_BBCODE_D_HELP}'
<!-- BEGIN custom_tags -->
,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
<!-- END custom_tags -->
}
var panels = new Array('options-panel', 'attach-panel', 'poll-panel');
var show_panel = 'options-panel';
// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
<!-- 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: Texto">
<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="Georgia" style="font-family: 'Georgia';">Georgia</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('
<img src="./images/posting/center.gif" border="0" alt="align=center" onclick="bbfontstyle('
<img src="./images/posting/right.gif" border="0" alt="align=right" onclick="bbfontstyle('
<img src="./images/posting/justify.gif" border="0" alt="align=justify" onclick="bbfontstyle('
<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('
<img src="./images/posting/sup.gif" border="0" alt="sup" onclick="bbfontstyle('','')" title="Superíndice: Texto" class="bbimages"/>
<img src="./images/posting/sub.gif" border="0" alt="sub" onclick="bbfontstyle('','')" title="Subíndice: Texto" 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('','')" title="Toque de luz (highlight): [highlight=#COLOR]Texto[/highlight]" class="bbimages"/>
<img src="./images/posting/warning.gif" border="0" alt="warning" onclick="bbfontstyle('[warning]','[/warning]')" title="Advertencia (warning): [warning]Texto[/warning]" class="bbimages"/>
<img src="./images/posting/hr.gif" border="0" alt="hr" onclick="bbfontstyle('
')" title="Línea Horizontal:
" class="bbimages"/>
<img src="./images/posting/ot.gif" border="0" alt="ot" onclick="bbfontstyle('
<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('','')" title="Desplazar texto hacia abajo: Texto" class="bbimages"/>
<img src="./images/posting/marqu.gif" border="0" alt="marquee=up" onclick="bbfontstyle('','')" title="Desplazar texto hacia arriba: Texto" class="bbimages"/>
<img src="./images/posting/marql.gif" border="0" alt="marquee=left" onclick="bbfontstyle('','')" title="Desplazar texto hacia la izquierda: Texto" class="bbimages"/>
<img src="./images/posting/marqr.gif" border="0" alt="marquee=right" onclick="bbfontstyle('','')" title="Desplazar texto hacia la derecha: Texto" 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
<img src="./images/posting/spoiler2.gif" border="0" alt="spoiler2" onclick="bbfontstyle('[spoiler2=Advertencia Spoiler]','[/spoiler2]')" title="Spoiler 2: [spoiler2=Advertencia Spoiler]Texto[/spoiler2]" class="bbimages"/>
<img src="./images/posting/edit.gif" border="0" alt="edit" onclick="bbfontstyle('[edit]','[/edit]')" title="Edit: [edit]Texto a editar[/edit]" class="bbimages"/>
<img src="./images/posting/hide.gif" border="0" alt="hide" onclick="bbfontstyle('
<img src="./images/posting/password.gif" border="0" alt="password" onclick="bbfontstyle('[pass_box]','[/pass_box]')" title="Pass Box: [pass_box]El Password[/pass_box]" 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="BBcodeimg()" 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="BBcodeurl()" title="{L_BBCODE_W_HELP}" class="bbimages"/>
<img src="./images/posting/link2.gif" border="0" alt="link2" onclick="bbfontstyle('[link2]','[/link2]')" title="link2: [link2]texto,enlace[/link2]" class="bbimages"/>
<!-- ENDIF -->
<img src="./images/posting/email.gif" alt="email" border="0" onclick="BBcodeemail()" 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="BBcodeflash()" title="{L_BBCODE_D_HELP}" class="bbimages"/>
<!-- ENDIF -->
<img src="./images/posting/video.gif" border="0" alt="mp3" onclick="BBcodevideo()" 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="BBcodemp3()" title="Archivo de audio (mp3): " class="bbimages"/>
<img src="./images/posting/quick.gif" border="0" alt="quick" onclick="BBcodequick()" 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="BBcoderam()" 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="BBcodegooglevideo()" title="Video google: [googlevideo]ID del video[/googlevideo]" class="bbimages"/>
<img src="./images/posting/youtube.gif" border="0" alt="youtube" onclick="BBcodeyoutube()" title="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 -->[/code]
Gracias por su ayuda