修复 回溯之前的快速发帖开关的功能,完善后台说明

This commit is contained in:
康盛Discuz! 2017-01-23 20:06:37 +08:00
parent 04727754f6
commit 50ed449e6f
2 changed files with 5 additions and 5 deletions

View File

@ -1011,8 +1011,8 @@ $lang = array
'setting_styles_forumdisplay_stick_comment' => '以英文状态下的逗号分割,只有三项有效,级别依次为从高至低',
'setting_styles_forumdisplay_visitedforums' => '显示最近访问版块数量',
'setting_styles_forumdisplay_visitedforums_comment' => '设置在版块列表和帖子浏览中显示最近访问过的版块数量,建议设置为 10 以内0 为关闭此功能',
'setting_styles_forumdisplay_fastpost' => '快速发帖',
'setting_styles_forumdisplay_fastpost_comment' => '底部显示快速发帖表单',
'setting_styles_forumdisplay_fastpost' => '快速发帖/回帖',
'setting_styles_forumdisplay_fastpost_comment' => '在主题列表页底部显示快速发帖,在帖子内容页底部显示快速回帖',
'setting_styles_forumdisplay_fastsmilies' => '显示推荐表情',
'setting_styles_forumdisplay_fastsmilies_comment' => '在快速发帖右侧显示推荐表情。推荐的表情需要到“表情管理”中设置',
'setting_styles_forumdisplay_forumpicstyle_thumbwidth' => '主题封面宽度',
@ -1103,7 +1103,7 @@ $lang = array
'setting_styles_viewthread_usernamepos' => '作者用户名显示位置',
'setting_styles_viewthread_imgcontent' => '主题内容生成图片宽度',
'setting_styles_viewthread_imgcontent_comment' => '本功能需要PHP支持GD库内容里有中文需要将中文 TTF 字体文件放到 static/image/seccode/font/ch/ 目录下。默认100个汉字字体不同宽度略有差别请跟据实际效果调整。',
'setting_styles_viewthread_fast_reply' => '开启快速回复',
'setting_styles_viewthread_fast_reply' => '开启主题帖快速回复',
'setting_styles_viewthread_fast_reply_comment' => '开启后将在主题帖下方展示快速回复框',
'setting_styles_viewthread_allow_replybg' => '开启帖子快速回复框背景',
'setting_styles_viewthread_allow_replybg_comment' => '开启后允许给帖子快速回复框添加背景图片',

View File

@ -315,8 +315,8 @@ $_G['forum']['allowreply'] = isset($_G['forum']['allowreply']) ? $_G['forum']['a
$_G['forum']['allowpost'] = isset($_G['forum']['allowpost']) ? $_G['forum']['allowpost'] : '';
$allowpostreply = ($_G['forum']['allowreply'] != -1) && (($_G['forum_thread']['isgroup'] || (!$_G['forum_thread']['closed'] && !checkautoclose($_G['forum_thread']))) || $_G['forum']['ismoderator']) && ((!$_G['forum']['replyperm'] && $_G['group']['allowreply']) || ($_G['forum']['replyperm'] && forumperm($_G['forum']['replyperm'])) || $_G['forum']['allowreply']);
$fastpost = $_G['setting']['allowfastreply'] && !$_G['forum_thread']['archiveid'] && ($_G['forum']['status'] != 3 || $_G['isgroupuser']);
$allowfastpost = $_G['setting']['allowfastreply'] && $allowpostreply;
$fastpost = $_G['setting']['fastpost'] && !$_G['forum_thread']['archiveid'] && ($_G['forum']['status'] != 3 || $_G['isgroupuser']);
$allowfastpost = $_G['setting']['fastpost'] && $allowpostreply;
if(!$_G['uid'] && ($_G['setting']['need_avatar'] || $_G['setting']['need_email'] || $_G['setting']['need_friendnum']) || !$_G['adminid'] && (!cknewuser(1) || $_G['setting']['newbiespan'] && (!getuserprofile('lastpost') || TIMESTAMP - getuserprofile('lastpost') < $_G['setting']['newbiespan'] * 60) && TIMESTAMP - $_G['member']['regdate'] < $_G['setting']['newbiespan'] * 60)) {
$allowfastpost = false;
}