Note: This is just a modification for the code from MrBass to work with the hide tag.
- Code: Select all
#
#-----[ OPEN ]----------------------------------------------
#
posting.php
#
#-----[ FIND ]----------------------------------------------
#
'L_BBCODE_W_HELP' => $lang['bbcode_w_help'],
#
#-----[ AFTER, ADD ]----------------------------------------
#
'L_BBCODE_H_HELP' => $lang['bbcode_h_help'],
#
#-----[ OPEN ]----------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]----------------------------------------------
#
$lang['bbcode_q_help'] = 'Quote text: [quote]text[/quote] (alt+q)';
#
#-----[ AFTER, ADD ]----------------------------------------
#
$lang['bbcode_h_help'] = 'Insert hide text: [hide]text[/hide] (alt+h)';
#
#-----[ OPEN ]----------------------------------------------
#
language/lang_english/lang_bbcode.php
#
#-----[ FIND ]----------------------------------------------
#
$faq[] = array("Outputting code or fixed width data", "If you want to output a piece of code or in fact anything that requires a fixed width with a Courier-type font, you should enclose the text in <b>[code][/code]</b> tags, eg.<br /><br /><b>[code]</b>echo \"This is some code\";<b>[/code]</b><br /><br />All formatting used within <b>[code][/code]</b> tags is retained when you later view it.");
#
#-----[ AFTER, ADD ]----------------------------------------
#
$faq[] = array("Hide message", "Sometimes you want to hide a message to guest users on your forum, but want to post that message in a public forum. With this code you can make it so only registered member who have posted on that topic can read the hidden message. Very useful. If you want to add this code to to your posts, just write this; [hide]Message to hide[/hide]. <b>Note:</b> The hidden message function is a modification to the phpBB core code and <u>not</u> a standard phpBB feature. The mod that is implemented on this site is called XS BBCode and you can get the latest version by visiting <a href='http://www.phpbbstyles.com/viewtopic.php?t=12126'>here</a>.");
#
#-----[ OPEN ]----------------------------------------------
#
templates/ca_aphrodite/posting_body.tpl
#
#-----[ FIND ]----------------------------------------------
#
q_help = "{L_BBCODE_Q_HELP}";
#
#-----[ AFTER, ADD ]----------------------------------------
#
h_help = "{L_BBCODE_H_HELP}";
#
#-----[ FIND ]----------------------------------------------
#
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'[/url]'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
,'[hide]','[/hide]'
#
#-----[ FIND ]----------------------------------------------
#
<td><span class="genmed">
<input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" />
</span></td>
#
#-----[ AFTER, ADD ]----------------------------------------
#
<td><span class="genmed">
<input type="button" class="button" accesskey="h" name="addbbcode26" value="Hide" style="width: 60px" onClick="bbstyle(26)" onMouseOver="helpline('h')" />
</span></td>
#
#-----[ FIND ]----------------------------------------------
#
<td colspan="9">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="genmed button"> {L_FONT_COLOR}:
<select class="button" name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
#
#-----[ REPLACE WITH ]--------------------------------------
#
<td colspan="10">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="genmed button"> {L_FONT_COLOR}:
<select class="button" name="addbbcode26" onChange="bbfontstyle('[color=' + this.form.addbbcode26.options[this.form.addbbcode26.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
#
#-----[ FIND ]----------------------------------------------
#
</select> {L_FONT_SIZE}:<select class="button" name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ REPLACE WITH ]--------------------------------------
#
</select> {L_FONT_SIZE}:<select class="button" name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ FIND ]----------------------------------------------
#
<td colspan="9"><input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" readonly="readonly" /></td>
#
#-----[ REPLACE WITH ]--------------------------------------
#
<td colspan="10"><input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" readonly="readonly" /></td>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------
#
# EoM
Edited: Changed an issue with the font bbcode.



