不過或許覺得DSL代碼有時候過長...用CODE包住會破壞版面\r
也許有人的戰不會... 像我的戰就是這樣
開啟templates/subSilver/posting_body.tpl
搜尋f_help = "{L_BBCODE_F_HELP}";
下行加入d_help = "DSL代碼:[dsl]DSL代碼[/dsl] (alt+d)";
搜尋'',''
後面加入,'[dsl]','[/dsl]'
開啟includes/bbcode.php
找到$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\\1[/b:$uid]", $text);
下行加入 // [dsl] and [/dsl] for dsl code.
$text = preg_replace("#\[dsl\](.*?)\[/dsl\]#si", "[dsl:$uid]\\\1[/dsl:$uid]", $text);
找到$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text);
下行加入 // [DSL] and [/DSL] for bolding text.
$text = str_replace("[dsl:$uid]", $bbcode_tpl['dsl_open'], $text);
$text = str_replace("[/dsl:$uid]", $bbcode_tpl['dsl_close'], $text);
開啟templates/subSilver/bbcode.tpl
上方加入<!-- BEGIN dsl_open --></span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td><span class="genmed"><img src=http://myweb.hinet.net/home1/paikang/DS ... o><b>DSL載點: <a href="dsl://<!-- END dsl_open -->
<!-- BEGIN dsl_close -->">請點此下載</a></td>
</tr>
</table>
<span class="postbody"><!-- END dsl_close -->
