1.net.jforum.context.web.WebRequestContext.java的96改为String contextPath = this.getContextPath();
470行改为String contextPath = super.getContextPath()+”/forum”;
224改为.append(‘/’).append(“forum/”)
2.在项目中新建一个forum文件夹,把templates和images文件夹剪切进去
3.修改模板中的post_form.html文件369行开始,汉化—选项|投票|附件三个选项
并在WEB-INF/config/language文件夹下面的资源文件增加相应项
4 net.jforum.view.forum.common.AttachmentCommon处理附件上传下载
net.jforum.util.preferences.SystemGlobals246行改为return getValue(ConfigKeys.APPLICATION_PATH)+”/forum”;
5.修改SystemGlobals.properties的205行attachments.upload.dir =forum/upload
6.更改post_forum.htm的68行下面增加一行if(f.subject.value.length>100)f.subject.value=f.subject.value.substring(0,100);
因为数据库总共长度才100个字符 超出100个字符就会报错
7.在post_show_user_profuke_inc.htm里面更改用户的icq msn email qq 等个性资料的表达方式
8.更改style.css修正中文字体太小
.gen, .poll { font-size: 13px }
.genmed, .name { font-size: 13px; }
.gensmall, .postdetails { font-size: 13px; }
.strong { font-weight: bold; }