<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA["jforum论坛二次开发--显示版主" 主题的最后发表文章]]></title>
		<link>http://www.mydwbi.com/posts/list/18.page</link>
		<description><![CDATA[最后发表在 "jforum论坛二次开发--显示版主" 主题的信息]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>jforum论坛二次开发--显示版主</title>
				<description><![CDATA[ ***************************************** <br /> lynx286原创, 首发www.mydwbi.com <br /> <a class="snap_shots" href="http://www.mydwbi.com/posts/list/0/45.page" target="_blank" rel="nofollow">http://www.mydwbi.com/posts/list/0/45.page</a><br /> 欢迎转贴, 但转贴请不要删除此段版权说明. <br /> ***************************************** <br /> <br /> jforum论坛是很流行的java开源论坛,但不支持版主.网友可以查查其他的jforum论坛都没有版主, 这种论坛貌似很不适合中国国情,本人在这里介绍一个显示版主的方法.<br /> <br /> 1. 为每个板块添加一个群组, 将版主的群组属性改成此群组.<br /> 2. 板块的审核属性用默认的"不审核", 原来只有设置成"审核状态"才显示版主,但这样每发一个帖子都要审核,不好.<br /> 3. 删除forum_list.htm 第51(57)行那个if语句即可. <br /> <br /> 其实过程非常简单, 但是网上都没有人研究,尝试解决这个问题.<br /> ]]></description>
				<guid isPermaLink="true">http://www.mydwbi.com/posts/preList/45/152.page</guid>
				<link>http://www.mydwbi.com/posts/preList/45/152.page</link>
				<pubDate><![CDATA[Thu, 1 May 2008 07:00:10]]> GMT</pubDate>
				<author><![CDATA[ lynx286]]></author>
			</item>
			<item>
				<title>回复:jforum论坛二次开发--显示版主</title>
				<description><![CDATA[ jforum论坛二次开发--显示版主(续)   直接显示版主名称,而不是显示版主群组名称<br /> <br /> ForumRepository.java  增加以下函数:<br /> <br /> [code]<br /> public static List getModeratorList2(int forumId) {<br /> 		List ulist = new ArrayList();<br /> 		List l = getModeratorList(forumId);<br /> 		System.out.println(&quot;************&quot; + l.size());<br /> 		if (l != null && l.size() &gt; 0) {<br /> 			for (Iterator it = l.iterator(); it.hasNext();) {<br /> 				ModeratorInfo mi = (ModeratorInfo) it.next();<br /> 				int groupId = mi.getId();<br /> 				List users = listGroup(groupId);<br /> 				ulist.addAll(users);<br /> 				System.out.println(&quot;========&quot; + users.size());<br /> 			}<br /> 		}<br /> 		return ulist;<br /> 	}<br /> <br /> 	public static List listGroup(int groupId) {<br /> 		// int groupId = this.request.getIntParameter(&quot;group_id&quot;);<br /> <br /> 		int start = preparePagination(DataAccessDriver.getInstance()<br /> 				.newUserDAO().getTotalUsersByGroup(groupId));<br /> 		int usersPerPage = SystemGlobals.getIntValue(ConfigKeys.USERS_PER_PAGE);<br /> <br /> 		List users = DataAccessDriver.getInstance().newUserDAO()<br /> 				.selectAllByGroup(groupId, start, usersPerPage);<br /> 		return users;<br /> 		// this.context.put(&quot;users&quot;, users);<br /> 		// this.setTemplateName(TemplateKeys.USER_LIST);<br /> 	}<br /> <br /> 	private static int preparePagination(int totalUsers) {<br /> 		int start = ViewCommon.getStartPage();<br /> 		int usersPerPage = SystemGlobals.getIntValue(ConfigKeys.USERS_PER_PAGE);<br /> <br /> 		ViewCommon.contextToPagination(start, totalUsers, usersPerPage);<br /> <br /> 		return start;<br /> 	}<br /> <br /> [/code]<br /> <br /> <br /> forum_list.htm   53-56行改成:<br /> [code]<br /> &lt;#assign moderators = forumRepository.getModeratorList2(forum.id)/&gt;<br /> &lt;#list moderators as m&gt;<br /> &lt;a /user/profile/${m.id}")}"&gt;${m.username?html}&lt;/a&gt;<br /> &lt;/#list&gt;<br /> [/code]<br /> ]]></description>
				<guid isPermaLink="true">http://www.mydwbi.com/posts/preList/45/361.page</guid>
				<link>http://www.mydwbi.com/posts/preList/45/361.page</link>
				<pubDate><![CDATA[Fri, 9 May 2008 11:09:22]]> GMT</pubDate>
				<author><![CDATA[ lynx286]]></author>
			</item>
			<item>
				<title>回复:jforum论坛二次开发--显示版主</title>
				<description><![CDATA[ 我看过forum_list.htm 没找到那个IF语句.<br /> 我用的是TRYDONE的模板,是不是这个文件不一样了?]]></description>
				<guid isPermaLink="true">http://www.mydwbi.com/posts/preList/45/2211.page</guid>
				<link>http://www.mydwbi.com/posts/preList/45/2211.page</link>
				<pubDate><![CDATA[Sat, 4 Oct 2008 02:45:33]]> GMT</pubDate>
				<author><![CDATA[ g7235723]]></author>
			</item>
			<item>
				<title>回复:jforum论坛二次开发--显示版主</title>
				<description><![CDATA[ TRYDONE的模板没研究过.不清楚. 我用的jforum官方的源文件.]]></description>
				<guid isPermaLink="true">http://www.mydwbi.com/posts/preList/45/2213.page</guid>
				<link>http://www.mydwbi.com/posts/preList/45/2213.page</link>
				<pubDate><![CDATA[Sat, 4 Oct 2008 06:23:49]]> GMT</pubDate>
				<author><![CDATA[ lynx286]]></author>
			</item>
			<item>
				<title>回复:jforum论坛二次开发--显示版主</title>
				<description><![CDATA[ 请问一下版主，这个问题应该怎么解决呢？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？？]]></description>
				<guid isPermaLink="true">http://www.mydwbi.com/posts/preList/45/3198.page</guid>
				<link>http://www.mydwbi.com/posts/preList/45/3198.page</link>
				<pubDate><![CDATA[Tue, 2 Jun 2009 01:11:33]]> GMT</pubDate>
				<author><![CDATA[ taoran]]></author>
			</item>
	</channel>
</rss>
