Discuz! :
1. 編輯 ./misc.php
修改 $sqlreason = cutstr($reason, 40); 這行的值
2. 修改資料表
cdb_ratelog 資料表底下的 reason
ex: ALTER TABLE `cdb_ratelog` CHANGE `reason` `reason` CHAR( 100 ) NOT NULL;
Discuz! X:
1. 編輯 ./source/module/forum/forum_misc.php
修改 $sqlreason = cutstr(dhtmlspecialchars($sqlreason), 40, '.'); 這行的值
2. 修改資料表
pre_forum_ratelog 資料表底下的 reason
ex: ALTER TABLE `pre_forum_ratelog` CHANGE `reason` `reason` CHAR( 100 ) NOT NULL;
另外,改了大小以後,會發現輸入框不夠用,所以需將 input[type=text] 改為 textarea
位置:./template/default/forum/rate.htm
第 75 行:<input type="text" name="reason" id="reason" class="px" onkeyup="seditor_ctlent(event, '$(\'rateform\').ratesubmit.click()')" />
修改為:<textarea name="reason" id="reason" class="pt" onkeyup="seditor_ctlent(event, '$(\'rateform\').ratesubmit.click()')" rows="5"></textarea>
說明:因為目前用 X 版的,所以舊版就沒找位置了