*****************************************
lynx286原创, 首发
www.mydwbi.com
http://www.mydwbi.com/posts/list/0/103.page
欢迎转贴, 但转贴请不要删除此段版权说明.
*****************************************
将会员列表改成按id排序(新注册用户排前面)
web-inf\config\database\generic\generic_queries.sql
将58-59行 "order by username" 改成 "order by user_id desc"
添加网站地图
-生成sitemap.xml
jforum 的url后缀是.page不是常规的.htm .html .asp .jsp 所以很多sitemap.xml builder不能识别jforum中的链接,所以自动生成不了sitemap.xml(本人猜想是这个原因),后来找半天找到一个工具叫SOFTplus GSiteCrawler的可以自定义页面后缀,从而自动生成sitemap.xml.
-添加国际化属性
zh_CN.properties中最后添加:mydwbi.sitemap=\u7f51\u7ad9\u5730\u56fe
-添加入口链接
在forum_list.htm中第181行下添加:
<td> </td>
<td align="center" width="20"><img /></td>
<td><span class="gensmall"><a href="${contextPath}/sitemap.xml">${I18n.getMessage("mydwbi.sitemap")}</a></span></td>
修改版权信息
修改bottom.htm 11行.
将发贴时"poll","attachments","options"改成中文
-添加国际化属性
mydwbi.Options=\u9009\u9879
mydwbi.Poll=\u6295\u7968
mydwbi.Attach=\u9644\u4ef6
-修改模板
将post_form.htm中第369,372,375行"poll","attachments","options"改成:
${I18n.getMessage("mydwbi.Options")}
${I18n.getMessage("mydwbi.Poll")}
${I18n.getMessage("mydwbi.Attach")}
让发贴的表情符号列表多显示几个表情
修改post_form.htm261行,改成:<#if (count < 32)>
特定用户显示ip
post_show_user_inc.htm36,37行改成:
<#if (post.userIp?exists && isModerator) || (post.userIp?exists && session.username = "lynx286")>
${I18n.getMessage("PostShow.userIP")}: <a href="http://whois.domaintools.com/${post.userIp}" target="_blank">${post.userIp}</a>
即如果当前登陆用户为该版版主或用户名为lynx286,就显示发贴人ip地址
进入板块后显示主题列表页面发表人栏显示帖子发表时间
进入板块后显示主题列表页面指: /forums/show/xxxx.page 页面
forum_show.htm页面224行改成:
<span class="postdetails">${topic.firstPostTime}<br />
<a href="${JForumContext.encodeURL("/user/profile/${topic.postedBy.id}")}">${topic.postedBy.username}</a></span>
176行改成:width=140
bmp图片也显示缩略图
用户经常用print screen键拷贝屏幕图片,并发到帖子上,是bmp格式,不能显示缩略图,要下载才能看,不太方便。这里改一下可显示缩略图 。
AttachmentCommon.java 254行添加:"bmp".equals(extension) ||