Ejemplo: Click para ver
Instrucciones
Subir a /images/bbcb_mg/images/gif estas imágenes
En /languages/lang_spanish/bbcb_mg.js
BUSCAR:
s_smiley_creator =
LUEGO, AÑADIR
s_hide_help = 'Ocultar un mensaje. Responder para ver: [hide]Oculto[/hide]';
BUSCAR:
var Td = 0;
LUEGO, AÑADIR:
var Hide = 0;
BUSCAR:
'[highlight=]'
LUEGO, AÑADIR
'[hide]','[/hide]',
BUSCAR:
function BBCbold()
ANTES, AÑADIR:
function BBChide()
{
var txtarea = document.post.message;
if ((clientVer >= 4) && is_ie && is_win)
{
theSelection = document.selection.createRange().text;
if (theSelection != '')
{
document.selection.createRange().text = "[hide]" + theSelection + "[/hide]";
document.post.message.focus();
return;
}
}
else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
{
mozInsert(txtarea, "[hide]", "[/hide]");
return;
}
ToAdd = "[hide]"+" "+"[/hide]";
PostWrite(ToAdd);
}
{
var txtarea = document.post.message;
if ((clientVer >= 4) && is_ie && is_win)
{
theSelection = document.selection.createRange().text;
if (theSelection != '')
{
document.selection.createRange().text = "[hide]" + theSelection + "[/hide]";
document.post.message.focus();
return;
}
}
else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
{
mozInsert(txtarea, "[hide]", "[/hide]");
return;
}
ToAdd = "[hide]"+" "+"[/hide]";
PostWrite(ToAdd);
}
En /templates/mg_themes/bbcb_mg.tpl
BUSCAR:
<a href="javascript:BBChl()" ><img border="0" src="{BBCB_MG_IMG_PATH}highlight{BBCB_MG_IMG_EXT}" name="highlight" onMouseOver="helpline('highlight')" alt="{L_BBCB_MG_HIGHLIGHT}" title="{L_BBCB_MG_HIGHLIGHT}" class="bbimages" /></a>
AFTER ADD:
<a href="javascript:BBChide()" ><img border="0" src="{BBCB_MG_IMG_PATH}hide{BBCB_MG_IMG_EXT}" name="hide" type="image" onMouseOver="helpline('hide')" alt="Ocultar un Mensaje" title="Ocultar un Mensaje" class="bbimages" /></a>












































