This is a simple method to have a bbcode Hide message with an image (with the message that says that you must post a reply to view the hidden message).
The Image to explain the hide message: Example of Image to show with the bbcode hide message (example)
Example Image of this hack: Hide Text with Image
In /includes/bbcode.php
FIND:
- $html .= '<div class="quote-message">' . $lang['xs_bbc_hide_message_explain'] . '</div>';
BEFORE ADD (or AFTER, if you want the image after the message explain):
(here you can put <center> or any html code)
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/ this images:


In /languages/lang_xxx/bbcb_mg.js
FIND:
AFTER, ADD (in the next line):
- s_hide_help = 'Hide a text, the registered users must post a reply to view the hidden message: [hide]Message[/hide]';
FIND:
AFTER ADD:
FIND:
AFTER ADD (in the next line):
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]" + theSelection + "[/hide]";
- document.post.message.focus();
- return;
- }
- }
- else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
- {
- //mozWrap(txtarea, "[hide]", "[/hide]");
- mozInsert(txtarea, "[hide]", "[/hide]");
- return;
- }
- if (Hide == 0)
- {
- ToAdd = "[hide]";
- document.post.hide.src = bbcb_mg_img_path + "hide1.gif";
- Hide = 1;
- }
- else
- {
- ToAdd = "[/hide]";
- document.post.hide.src = bbcb_mg_img_path + "hide.gif";
- Hide = 0;
- }
- PostWrite(ToAdd);
- }
In /templates/ca_aphrodite/bbcb_mg.tpl
FIND:
- <a href="javascript:BBChl()" ><img border="0" src="{BBCB_MG_IMG_PATH}spoil.gif" name="highlight" type="image" onMouseOver="helpline('highlight')" alt="{L_BBCB_MG_HIGHLIGHT}" title="{L_BBCB_MG_HIGHLIGHT}" /></a>
AFTER ADD:
- <a href="javascript:BBChide()" ><img border="0" src="{BBCB_MG_IMG_PATH}hide.gif" name="hide" type="image" onMouseOver="helpline('hide')" alt="Hide a text" title="Hide a Text" /></a>
(note: the text in alt="" and title="" must be with {language}, but i don“t know how to add this :()
Now, with this changes, we have a new button to use the bbcode hide in the posting page :)
PD: Sorry for my bad english ;)