问题:投票帖在截止日期后 重新编辑 投票会变成无限期
编辑投票时候 积分限制下拉框默认不是发起投票的积分选项
修改:
lib\forum\special\post_1.class.php
- $reset['voteable'] = ($this->post->_G['modifyvote'] && $reset['close'] == 0) ? '' : 'disabled';
改成
- $reset['voteable'] = ($this->post->_G['modifyvote'] && $reset['close'] == 0) ? '' : 'readonly';
- $reset['ifcreditlimit'] = $value;
下加
template\wind\post_special.htm
- print <<<EOT
- -->
- <option value="$key">$value</option>
- <!--
- EOT;
改成
- if($key == $set['credit']){
- print <<<EOT
- -->
- <option value="$key" selected>$value</option>
- <!--
- EOT;
- }else{print <<<EOT
- -->
- <option value="$key">$value</option>
- <!--
- EOT;
- }
[ 此帖被prisk在2012-04-10 12:39重新编辑 ]