problema al instalar bbcode goear
Publicado: 20 Jul 2010, 06:11
Hola a todos, tengo un problema, resulta que he instalado el bbcode [goear] en la web y funciona correctamente pero he intentado ponerlo como tengo los demás bbcode con el mod de mitch para que salga la ventana y poner el ID pero no me funciona. Los demás bbcode funcionan todos.
El bbcode es el siguiente:
reemplazo HTML
En el posting_butons.html he echo lo siguiente
Buscar
Agregar después
Buscar
Agregar después
En el editor.js
Buscar esta linea
Añadir antes
Puede que lo que he echo no sea correcto por eso pido vuestra ayuda.
Saludos
El bbcode es el siguiente:
Código: Seleccionar todo
[goear]{SIMPLETEXT}[/goear]
Código: Seleccionar todo
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="353" height="132"><param name="movie" value="http://www.goear.com/files/external.swf" /><param name="FlashVars" value="file={SIMPLETEXT}" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed src="http://www.goear.com/files/external.swf" width="353" height="132" flashvars="file={SIMPLETEXT}" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed></object>
Buscar
Código: Seleccionar todo
youtube: 'Video youtube: [youtube]ID del video[/youtube]',
Código: Seleccionar todo
goear: 'Mp3 goear: [goear]ID del mp3[/goear]',
Código: Seleccionar todo
<img src="./images/posting/youtube.gif" border="0" alt="youtube" onclick="BBcodeyoutube()" onmouseover="helpline('youtube')" onmouseout="helpline('tip')" border="0" class="bbimages"/>
Código: Seleccionar todo
<img src="./images/posting/goear.gif" border="0" alt="goear" onclick="BBcodegoear()" onmouseover="helpline('goear')" onmouseout="helpline('tip')" border="0" class="bbimages"/>
Buscar esta linea
Código: Seleccionar todo
// BBcodes por Mitch
Código: Seleccionar todo
function BBcodegoear() {
theSelection = false;
var textarea = document.forms[form_name].elements[text_name];
textarea.focus();
if ((clientVer >= 4) && is_ie && is_win)
{
theSelection = document.selection.createRange().text;
if (theSelection)
{
bbfontstyle('[goear]','[/goear]');
return;
}
}
else if (document.forms[form_name].elements[text_name].selectionEnd && (document.forms[form_name].elements[text_name].selectionEnd - document.forms[form_name].elements[text_name].selectionStart > 0))
{
bbfontstyle('[goear]','[/goear]');
return;
}
var Errores = '';
var enterURL = prompt("Introduzca la ID del mp3 (solo la ID, no la URL completa)", "6fe7a2c");
if (!enterURL) {
Errores += "Debes ingresar la ID del mp3.";
alert("Error: "+Errores);
return;
}
var Post = "[goear]"+enterURL+"[/goear]";
insert_text(Post);
}
Saludos