這個可以讓你限制文章內的表情圖案數量. 請依照下面的說明修改檔案:
<edit file>
Sources/Post.php
</edit file>
<search for>
$post_errors[] = 'long_message';
</search for>
<add after>
if (isset($_POST['message']))
{
$smileyLimit = 3;
$prev = substr_count($_POST['message'], '[img') + substr_count($_POST['message'], '[IMG');
$tempmsg = doUBBC($_POST['message'], true);
if (substr_count($tempmsg, '<img') > ($prev + $smileyLimit))
$post_errors[] = 'smiley_limit';
}
</add after>
<edit file>
Themes/default/languages/Post.english.php
</edit file>
<search for>
?>
</search for>
<add before>
$txt['error_smiley_limit'] = 'You can ad x smilies per post. Remove some smilyes and try again.';
</add before>
$smileyLimit = 3; 表示只允許3個表情圖案, 請改成你要允許的數量.
<edit file> - 修改檔案
<search for> - 找裡面的程式碼
<add after> - 在找到的程式碼後面加上
<add before> - 在找到的程式碼前面加上
來源: http://www.simplemachines.org/community/index.php?topic=17213.0