Code:Upload select_expand_bbcodes.rar to modules/Forums/includes/ folder
#-----[ OPEN ]------------------------------------------
#
# NOTE --- You need to do this for all your installed languages
#
modules/Forums/language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
?>
#-----[ BEFORE, ADD ]------------------------------------------
//+MOD: Select Expand BBcodes MOD
$lang['Select'] = 'Select';
$lang['Expand'] = 'Expand';
$lang['Contract'] = 'Contract';
//-MOD: Select Expand BBcodes MOD
--------------------------------------------------
#-----[ OPEN ]------------------------------------------
#
modules/Forums/includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
define("BBCODE_TPL_READY", true);
#-----[ BEFORE, ADD ]------------------------------------------
//+MOD: Select Expand BBcodes MOD
global $phpbb_root_path;
$u_sxbb_jslib = 'modules/Forums/includes/select_expand_bbcodes.js';
// Replacing BBCode variables, but also adding CR to preserve HTML comment delimiters for JS code.
$expand_ary1 = array('<!--', '//-->', '{L_SELECT}', '{L_EXPAND}', '{L_CONTRACT}', '{U_SXBB_JSLIB}');
$expand_ary2 = array("\r<r>\r", $lang['Select'], $lang['Expand'], $lang['Contract'], $u_sxbb_jslib);
$expand_ary3 = array('<!--', '//-->');
$expand_ary4 = array("\r<r>\r");
$bbcode_tpl['quote_open'] = str_replace($expand_ary1, $expand_ary2, $bbcode_tpl['quote_open']);
$bbcode_tpl['quote_username_open'] = str_replace($expand_ary1, $expand_ary2, $bbcode_tpl['quote_username_open']);
$bbcode_tpl['code_open'] = str_replace($expand_ary1, $expand_ary2, $bbcode_tpl['code_open']);
$bbcode_tpl['quote_close'] = str_replace($expand_ary3, $expand_ary4, $bbcode_tpl['quote_close']);
$bbcode_tpl['code_close'] = str_replace($expand_ary3, $expand_ary4, $bbcode_tpl['code_close']);
//-MOD: Select Expand BBcodes MOD
----------------
#-----[ OPEN ]------------------------------------------
#
# NOTE --- You need to do this for all of your installed template styles
#
modules/Forums/templates/subSilver/bbcode.tpl or use themes/YOURTHEMES/forums/bbcode.tpl
#
#=================================
# MOD Section: quote_username_open
#=================================
#-----[ FIND ]------------------------------------------
<BEGIN></span>
<table
#
#-----[ IN-LINE FIND ]------------------------------------------
<td><span>{USERNAME} {L_WROTE}:</span></td>
</tr>
<tr>
<td><END>
#-----[ REPLACE WITH ]------------------------------------------
<td><span>{USERNAME} {L_WROTE}:
<script></script>
<script>
<var>
</script>
</span></td>
</tr>
<tr>
<td>
<script>
<SXBB>
</script><END>
#
#=================================
# MOD Section: quote_open
#=================================
#
#-----[ FIND ]------------------------------------------
<BEGIN></span>
<table
#-----[ IN-LINE FIND ]------------------------------------------
#
<table
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
class="bodyline"
#-----[ FIND ]------------------------------------------
<td><span>{L_QUOTE}:</span></td>
</tr>
<tr>
<td><END>
#-----[ REPLACE WITH ]------------------------------------------
<td><span>{L_QUOTE}:
<script></script>
<script>
<var>
</script>
</span></td>
</tr>
<tr>
<td>
<script>
<SXBB>
</script><END>
--------------------------------------
#=================================
# MOD Section: quote_close
#=================================
#
#-----[ FIND ]------------------------------------------
<BEGIN></td>
#-----[ REPLACE WITH ]------------------------------------------
<BEGIN>
<script>
</div>
</script>
</td>
#=================================
# MOD Section: code_open
#=================================
#
#-----[ FIND ]------------------------------------------
<BEGIN></span>
<table
#-----[ IN-LINE FIND ]------------------------------------------
<table
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
class="bodyline"
#
#-----[ FIND ]------------------------------------------
#
<td><span>{L_CODE}:</span></td>
</tr>
<tr>
<td><END>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td><span>{L_CODE}:
<script></script>
<script>
<var>
</script>
</span></td>
</tr>
<tr>
<td>
<script>
<SXBB>
</script><END>
#=================================
# MOD Section: code_close
#=================================
#
#-----[ FIND ]------------------------------------------
#
<BEGIN></td>
#-----[ REPLACE WITH ]------------------------------------------
<BEGIN>
<script>
</div>
</script>
</td>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
__________
|