With this changes, we have an image with the text of BBcode Hide explain.
But, the BBcode Hide doesn't have a bbcode button on posting.php (on reply).
With this changes, you can add this button.
Example Image of the button: Image of the button pressed
Follow this instructions:
Upload to
/images/bbcb_mg/images/gif this images:
= (rename this to
hide.gif)
= (rename this to
hide1.gif)
In
/languages/lang_xxx/bbcb_mg.js
FIND:
AFTER, ADD
s_hide_help = 'Hide a text, registered users must reply to view the hidden message: [hide]Quoted Hidden Message, which is still hidden.[/hide]';
FIND:
AFTER ADD:
FIND:
AFTER ADD
'[hide]Quoted Hidden Message, which is still hidden.[/hide]',
FIND:
BEFORE ADD:
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]Quoted Hidden Message, which is still hidden.[/hide]";
document.post.message.focus();
return;
}
}
else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
{
mozInsert(txtarea, "[hide]Quoted Hidden Message, which is still hidden.[/hide]");
return;
}
ToAdd = "[hide]Quoted Hidden Message, which is still hidden.[/hide]";
PostWrite(ToAdd);
}
In
/templates/mg_themes/bbcb_mg.tpl
FIND:
<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="Hide a message" title="Hide a message" class="bbimages" /></a>
(note: the text in
alt="" and
title="" must be with
{language}
Now, with this changes, we have a new button to use the bbcode hide in the posting page