Discuz!X3.2/3.3/3.4版本号社区论坛题目篇幅提升80的
摘要: 新闻报道新闻资讯blog织梦cms模版适用PC+wap+MIP+有利于S 953 1 响应式资询管理方法类网站织梦cms模版(响应式移动 896 0 饭堂承揽餐馆服务管理方法类网站织梦cms模版(带手 812 0 (响应式手机...










一、数据信息库改动,改动数据信息库题目字段名的长短为120标识符:运作下边的sql句子:
(留意改动你的表的作为前缀)
ALTER TABLE `pre_forum_post` CHANGE `subject` `subject` VARCHAR(120) NOT NULL;
ALTER TABLE `pre_forum_rsscache` CHANGE `subject` `subject` char(120) NOT NULL;
ALTER TABLE `pre_forum_thread` CHANGE `subject` `subject` char(120) NOT NULL;拷贝编码
二、改动JS认证标识符数:1、寻找文档static/js/forum_post.js的74-80行
if(($('postsubmit').name != 'replysubmit' !($('postsubmit').name == 'editsubmit' !isfirstpost) theform.subject.value == ) || !sortid !special trim(message) == ) {
showError('很抱歉,您并未键入题目或內容');
return false;
} else if(mb_strlen(theform.subject.value) 80) {
showError('您的题目超出 80 字符的限定');
return false;
}拷贝编码
改动为:
if(($('postsubmit').name != 'replysubmit' !($('postsubmit').name == 'editsubmit' !isfirstpost) theform.subject.value == ) || !sortid !special trim(message) == ) {
showError('很抱歉,您并未键入题目或內容');
return false;
} else if(mb_strlen(theform.subject.value) 120) {
showError('您的题目超出 120 字符的限定');
return false;
}拷贝编码
2、寻找文档sitatic/js/forum.js的209到215行编码:
if(theform.message.value == '' theform.subject.value == '') {
s = '很抱歉,您并未键入题目或內容';
theform.message.focus();
} else if(mb_strlen(theform.subject.value) 80) {
s = '您的题目超出 80 字符的限定';
theform.subject.focus();
}拷贝编码
改动为:
if(theform.message.value == '' theform.subject.value == '') {
s = '很抱歉,您并未键入题目或內容';
theform.message.focus();
} else if(mb_strlen(theform.subject.value) 120) {
s = '您的题目超出 120 字符的限定';
theform.subject.focus();
}拷贝编码
三、改动模版中写死的标识符限定数:
1、寻找文档\template\default\forum\post_editor_extra.htm的24到32行:
!--{if $_GET[action] != 'reply'}--
span input type= text name= subject id= subject 'newthread'}onblur= if($('tags')){relatekw('-1','-1'{if $_G['group']['allowposttag']},function(){extraCheck(4)}{/if});doane();} {/if}#0000ff > !--{else}--
span id= subjecthide > span id= subjectbox > !--{/if}--
span id= subjectchk {if $_GET[action] == 'reply'} > script type= text/javascript strLenCalc($('subject'), 'checklen', 80) /script
!--{/if}-- 拷贝编码
改动为下边编码:
!--{if $_GET[action] != 'reply'}--
span input type= text name= subject id= subject 'newthread'}onblur= if($('tags')){relatekw('-1','-1'{if $_G['group']['allowposttag']},function(){extraCheck(4)}{/if});doane();} {/if}#ff0000 120); > !--{else}--
span id= subjecthide > span id= subjectbox > !--{/if}--
span id= subjectchk {if $_GET[action] == 'reply'} > script type= text/javascript strLenCalc($('subject'), 'checklen', 120) /script
!--{/if}-- 拷贝编码
2、寻找文档\template\default\forum\forumdisplay_fastpost.htm31-32行:
input type= text id= subject name= subject > span {ment_message1} strong id= checklen 80 /strong {ment_message2} /span 拷贝编码
改动为:
input type= text id= subject name= subject > span {ment_message1} strong id= checklen 120 /strong {ment_message2} /span 拷贝编码
四,改动涵数认证提醒:
寻找文档source/的346-348行:
if(dstrlen($subject) 80) {
return 'post_subject_toolong';
}拷贝编码
改动为:
if(dstrlen($subject) 120) {
return 'post_subject_toolong';
}
拷贝编码
五、寻找語言包提醒文本,开启 source/ 并寻找985行改成:
'post_subject_toolong' = '很抱歉,您的题目超出 120 字符改动题目长短',拷贝编码最终别忘记进到后台管理升级缓存文件,大获全胜!
备注名称:假如您看了还模糊不清白,能够跟帖或是联络官方网技术性()有偿服务服务立即给您解决好!
本实例教程由【】殊荣荣誉出品!转截请标明出處!