這會把字型和文字大小按鈕改成下拉式選單。
Open Post.template.php:
Find:
<option value="LimeGreen">', $txt[275], '</option>
</select>';
echo '<br />';
刪除最後一行的:
echo '<br />';
Add after:
// Begin Print a drop down list for font face . . . . . . .
echo ' <select onchange="surroundText(\'[font=\'+this.options[this.selectedIndex].value+\']\', \'[/font]\', document.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0;" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt[533], '</option>
<option value="Arial">Arial</option>
<option value="Times New Roman">Times New Roman</option>
<option value="Tahoma">Tahoma</option>
<option value="Verdana">Verdana</option>
</select>';
// End Print a drop down list for font face . . . . . . . .
// Begin Print a drop down list for font size . . . . . . .
echo ' <select onchange="surroundText(\'[size=\'+this.options[this.selectedIndex].value+\']\', \'[/size]\', document.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0;" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt[532], '</option>
<option value="10pt">10pt</option>
<option value="14pt">14pt</option>
<option value="18pt">18pt</option>
</select>';
echo '<br />';
// End Print a drop down list for font size . . . . . . . .
接下來刪除文字大小和字型的圖示:
Find and remove:
'size' => array('code' => 'size', 'before' => '[size=10pt]', 'after' => '[/size]', 'description' => $txt[532]),
'face' => array('code' => 'font', 'before' => '[font=Verdana]', 'after' => '[/font]', 'description' => $txt[533]),
來源:http://www.simplemachines.org/community/index.php?topic=17867.msg146789#msg146789