[MOD] BBCode Strikethrough MOD
พัฒนาโดย :: all4phone
Version :: 1.0.3
ดาวน์โหลดได้ที่ :: https://www.mindphp.com/download/files/8 ... 3-zip.html
ไฟล์ที่ใช้ในการติดตั้ง ::
adm/style/overall_header.html,
includes/bbcode.php,
includes/constants.php,
includes/functions.php,
includes/functions_display.php,
includes/message_parser.php,
language/en/posting.php,
styles/prosilver/template/bbcode.html,
styles/prosilver/template/posting_buttons.html
วิธีการติดตั้ง ::
เปิดไฟล์ ->adm/style/overall_header.html,
ค้นหา ::
โค้ด: เลือกทั้งหมด
<link href="style/admin.css" rel="stylesheet" type="text/css" media="screen" />
โค้ด: เลือกทั้งหมด
<link href="style/strike.css" rel="stylesheet" type="text/css" media="screen" />
ค้นหา ::
โค้ด: เลือกทั้งหมด
'#\[attachment=([0-9]+):$uid\]#' => $this->bbcode_tpl('inline_attachment_open', $bbcode_id)
)
);
break;
โค้ด: เลือกทั้งหมด
// Begin BBCode Strikethrough MOD
case 13:
$this->bbcode_cache[$bbcode_id] = array(
'str' => array(
'[s:$uid]' => $this->bbcode_tpl('s_open', $bbcode_id),
'[/s:$uid]' => $this->bbcode_tpl('s_close', $bbcode_id),
)
);
break;
// End BBCode Strikethrough MOD
โค้ด: เลือกทั้งหมด
'email' => '<a href="mailto:$1">$2</a>'
โค้ด: เลือกทั้งหมด
'email' => '<a href="mailto:$1">$2</a>',
// Begin BBCode Strikethrough MOD
's_open' => '<span style="text-decoration: line-through">',
's_close' => '</span>'
// End BBCode Strikethrough MOD
ค้นหา ::
โค้ด: เลือกทั้งหมด
// Number of core BBCodes
define('NUM_CORE_BBCODES', 12);
โค้ด: เลือกทั้งหมด
// Number of core BBCodes
define('NUM_CORE_BBCODES', 13);
ค้นหา ::
โค้ด: เลือกทั้งหมด
'S_SEARCH_HIDDEN_FIELDS' => build_hidden_fields($s_search_hidden_fields),
โค้ด: เลือกทั้งหมด
// BEGIN strike Mod
'S_STRIKE_ENABLE' => (!empty($config['strike_enable'])) ? true : false,
'S_STRIKE_POSITION' => (!empty($config['strike_position'])) ? $config['strike_position'] : false,
// END strike MOD
ค้นหา ::
โค้ด: เลือกทั้งหมด
// Start counting from 22 for the bbcode ids (every bbcode takes two ids - opening/closing)
$num_predefined_bbcodes = 22;
โค้ด: เลือกทั้งหมด
// Start counting from 24 for the bbcode ids (every bbcode takes two ids - opening/closing)
$num_predefined_bbcodes = 24;
ค้นหา ::
โค้ด: เลือกทั้งหมด
'flash' => array('bbcode_id' => 11, 'regexp' => array('#\[flash=([0-9]+),([0-9]+)\](.*?)\[/flash\]#uie' => "\$this->bbcode_flash('\$1', '\$2', '\$3')"))
โค้ด: เลือกทั้งหมด
'flash' => array('bbcode_id' => 11, 'regexp' => array('#\[flash=([0-9]+),([0-9]+)\](.*?)\[/flash\]#uie' => "\$this->bbcode_flash('\$1', '\$2', '\$3')")),
// Begin BBCode Strikethrough MOD
's' => array('bbcode_id' => 13, 'regexp' => array('#\[s\](.*?)\[/s\]#uise' => "\$this->bbcode_linethrough('\$1')"))
// End BBCode Strikethrough MOD
โค้ด: เลือกทั้งหมด
return '[flash=' . $width . ',' . $height . ':'
. $this->bbcode_uid . ']' . $this->bbcode_specialchars($in) . '[/flash:' . $this->bbcode_uid . ']';
}
โค้ด: เลือกทั้งหมด
// Begin BBCode Strikethrough MOD
/**
* Parse s tag
*/
function bbcode_linethrough($in)
{
if (!$this->check_bbcode('s', $in))
{
return $in;
}
return '[s:' . $this->bbcode_uid . ']' . $in . '[/s:' . $this->bbcode_uid . ']';
}
// End BBCode Strikethrough MOD
ค้นหา ::
โค้ด: เลือกทั้งหมด
'BBCODE_D_HELP' => 'Flash: [flash=width,height]http://url[/flash]',
โค้ด: เลือกทั้งหมด
// Begin BBCode Strikethrough MOD
'BBCODE_ST_HELP' => 'Strikethrough: [s]Text in here[/s]',
// End BBCode Strikethrough MOD
ค้นหา ::
โค้ด: เลือกทั้งหมด
<!-- BEGIN i_open --><em><!-- END i_open -->
<!-- BEGIN i_close --></em><!-- END i_close -->
โค้ด: เลือกทั้งหมด
<!-- BEGIN s_open --><span style="text-decoration: line-through"><!-- END s_open -->
<!-- BEGIN s_close --></span><!-- END s_close -->
โค้ด: เลือกทั้งหมด
โค้ด: เลือกทั้งหมด
ค้นหา ::
โค้ด: เลือกทั้งหมด
// Define the bbCode tags
var bbcode = new Array();
var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
- ','
'
- ','
<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
var imageTag = false;[/code]
แทนที่ ::
โค้ด: เลือกทั้งหมด
// Define the bbCode tags
var bbcode = new Array();
var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
- ','
- ',
'
<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
var imageTag = false;[/code]
ค้นหา ::
โค้ด: เลือกทั้งหมด
d: '{LA_BBCODE_D_HELP}'
โค้ด: เลือกทั้งหมด
d: '{LA_BBCODE_D_HELP}',
st: '{LA_BBCODE_ST_HELP}'
โค้ด: เลือกทั้งหมด
<input type="button" class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold;
width: 30px" onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" />
โค้ด: เลือกทั้งหมด
<!-- IF S_STRIKE_ENABLE and S_STRIKE_POSITION == 1 -->
<input type="button"
class="button2" accesskey="st" name="addbbcode22" value=" S " style="font-weight:bold;text-decoration: line-through; width: 30px" onclick="bbstyle(22)" title="{L_BBCODE_ST_HELP}" />
<!-- ELSE --><!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<input type="button" class="button2"
accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onclick="bbstyle(2)" title="{L_BBCODE_I_HELP}" />
โค้ด: เลือกทั้งหมด
<!-- IF S_STRIKE_ENABLE and S_STRIKE_POSITION == 2 -->
<input type="button" class="button2"
accesskey="st" name="addbbcode22" value=" S " style="font-weight:bold;text-decoration: line-through; width: 30px" onclick="bbstyle(22)" title="{L_BBCODE_ST_HELP}" />
<!-- ELSE --><!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<input type="button" class="button2"
accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onclick="bbstyle(4)" title="{L_BBCODE_U_HELP}" />
โค้ด: เลือกทั้งหมด
<!-- IF S_STRIKE_ENABLE and S_STRIKE_POSITION == 3 -->
<input type="button" class="button2"
accesskey="st" name="addbbcode22" value=" S " style="font-weight:bold;text-decoration: line-through; width: 30px" onclick="bbstyle(22)" title="{L_BBCODE_ST_HELP}" />
<!-- ELSE --><!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<!-- IF S_BBCODE_QUOTE -->
โค้ด: เลือกทั้งหมด
<!-- IF S_STRIKE_ENABLE and S_STRIKE_POSITION == 4 -->
<input type="button" class="button2"
accesskey="st" name="addbbcode22" value=" S " style="font-weight:bold;text-decoration: line-through; width: 30px" onclick="bbstyle(22)" title="{L_BBCODE_ST_HELP}" />
<!-- ELSE --><!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<input type="button" class="button2" accesskey="c"
name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" />
โค้ด: เลือกทั้งหมด
<!-- IF S_STRIKE_ENABLE and S_STRIKE_POSITION == 5 -->
<input type="button" class="button2"
accesskey="st" name="addbbcode22" value=" S " style="font-weight:bold;text-decoration: line-through; width: 30px" onclick="bbstyle(22)" title="{L_BBCODE_ST_HELP}" />
<!-- ELSE --><!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<input type="button" class="button2" accesskey="l"
name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" />
โค้ด: เลือกทั้งหมด
<!-- IF S_STRIKE_ENABLE and S_STRIKE_POSITION == 6 -->
<input type="button" class="button2" accesskey="st"
name="addbbcode22" value=" S " style="font-weight:bold;text-decoration: line-through; width: 30px" onclick="bbstyle(22)" title="{L_BBCODE_ST_HELP}" />
<!-- ELSE --><!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<!-- IF S_BBCODE_IMG -->
โค้ด: เลือกทั้งหมด
<!-- IF S_STRIKE_ENABLE and S_STRIKE_POSITION == 7 -->
<input type="button" class="button2" accesskey="st"
name="addbbcode22" value=" S " style="font-weight:bold;text-decoration: line-through; width: 30px" onclick="bbstyle(22)" title="{L_BBCODE_ST_HELP}" />
<!-- ELSE --><!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<!-- IF S_LINKS_ALLOWED -->
โค้ด: เลือกทั้งหมด
<!-- IF S_STRIKE_ENABLE and S_STRIKE_POSITION == 8 -->
<input type="button" class="button2" accesskey="st"
name="addbbcode22" value=" S " style="font-weight:bold;text-decoration: line-through; width: 30px" onclick="bbstyle(22)" title="{L_BBCODE_ST_HELP}" />
<!-- ELSE --><!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<!-- IF S_BBCODE_FLASH -->
โค้ด: เลือกทั้งหมด
<!-- IF S_STRIKE_ENABLE and S_STRIKE_POSITION == 9 -->
<input type="button" class="button2" accesskey="st"
name="addbbcode22" value=" S " style="font-weight:bold;text-decoration: line-through; width: 30px" onclick="bbstyle(22)" title="{L_BBCODE_ST_HELP}" />
<!-- ELSE --><!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']',
'[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
โค้ด: เลือกทั้งหมด
<!-- IF S_STRIKE_ENABLE and S_STRIKE_POSITION == 10 -->
<input type="button" class="button2" accesskey="st"
name="addbbcode22" value=" S " style="font-weight:bold;text-decoration: line-through; width: 30px" onclick="bbstyle(22)" title="{L_BBCODE_ST_HELP}" />
<!-- ELSE --><!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<input type="button" class="button2" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />
โค้ด: เลือกทั้งหมด
<!-- IF S_STRIKE_ENABLE and S_STRIKE_POSITION == 11 -->
<input type="button" class="button2" accesskey="st"
name="addbbcode22" value=" S " style="font-weight:bold;text-decoration: line-through; width: 30px" onclick="bbstyle(22)" title="{L_BBCODE_ST_HELP}" />
<!-- ELSE --><!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<!-- BEGIN custom_tags -->
โค้ด: เลือกทั้งหมด
<!-- IF S_STRIKE_ENABLE and S_STRIKE_POSITION == 12 -->
<input type="button" class="button2" accesskey="st"
name="addbbcode22" value=" S " style="font-weight:bold;text-decoration: line-through; width: 30px" onclick="bbstyle(22)" title="{L_BBCODE_ST_HELP}" />
<!-- ELSE --><!-- ENDIF -->
ผลการติดตั้ง
ส่วนของ admin ส่วนของ user