<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LiangXu Wang &#187; phpbb</title>
	<atom:link href="http://wlx.westgis.ac.cn/category/computer/phpbb/feed/" rel="self" type="application/rss+xml" />
	<link>http://wlx.westgis.ac.cn</link>
	<description>technology backup/share</description>
	<lastBuildDate>Sat, 14 Jan 2012 03:56:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>phpbb3的anti-spam</title>
		<link>http://wlx.westgis.ac.cn/575/</link>
		<comments>http://wlx.westgis.ac.cn/575/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 01:57:01 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[phpbb]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=575</guid>
		<description><![CDATA[phpbb3自身带的anti-spam系统已经被破解，导致论坛上出现了大量的垃圾帖子和用户。 经搜索，可以暂时使用PHPBBCHINA上的这个方案： Administration Control Panel -> Users and Groups -> Custom profile fields [Create new field]: antibot (Field identification: antibot, Field type: Numbers) Display in user control panel: Yes Display on registration screen: Yes Required field: Yes Field name: Anti-Bot &#8230; <a href="http://wlx.westgis.ac.cn/575/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>phpbb3自身带的anti-spam系统已经被破解，导致论坛上出现了大量的垃圾帖子和用户。<br />
经搜索，可以暂时使用<a href="http://cnc.phpbbchina.com/forum/viewtopic.php?f=5&#038;t=4651">PHPBBCHINA</a>上的这个方案：</p>
<blockquote><p>Administration Control Panel -> Users and Groups -> Custom profile fields<br />
[Create new field]: antibot (Field identification: antibot, Field type: Numbers)<br />
Display in user control panel: Yes<br />
Display on registration screen: Yes<br />
Required field: Yes<br />
Field name: Anti-Bot check<br />
Field description: 如果您不是机器人，请输入一个130到139之间的数字:<br />
[Profile type specific options]<br />
Lowest allowed number: 130<br />
Highest allowed number: 139<br />
没有用mod，目前为止好像有效，是俺搞完后做的记录，看不明白的可以问，</p>
<p>还有一个办法是使用初始发帖审核，可阻止垃圾帖泛滥，但不能应对注册，设置很简单：<br />
Administration Control Panel -> General -> Post settings<br />
Enable queued posts: Yes<br />
默认的最大帖子数是3，也就是说，只有前3帖通过审核发表后，用户才能自由发帖。<br />
否则你发了他也不显示。。。<br />
注意这个是3.0.0以后版本才有的功能（3.0.0本身木有）</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/575/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>整合phpbb3和mediawiki</title>
		<link>http://wlx.westgis.ac.cn/476/</link>
		<comments>http://wlx.westgis.ac.cn/476/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 03:48:03 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[phpbb]]></category>
		<category><![CDATA[mediawiki]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/476/</guid>
		<description><![CDATA[mediawiki是1.11.0版本，phpbb3 rc7，整合起来也还是比较简单的。 下载整合插件,解开到extension目录下，然后修改LocalSettings.php文件，在最后添加一下内容，也可以参考其readme。 /*&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;[ Everything below this line. ]&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;*/ // PHPBB User Database Plugin. (Requires MySQL Database) require_once &#8216;./extensions/Auth_phpbb.php&#8217;; $wgAuth_Config = array(); // Clean. $wgAuth_Config['WikiGroupName'] = &#8216;Wiki&#8217;; // Name of your PHPBB group // users need to be a member &#8230; <a href="http://wlx.westgis.ac.cn/476/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>mediawiki是1.11.0版本，phpbb3 rc7，整合起来也还是比较简单的。<br />
下载<a href="http://uber.leetphp.com/index.php?categoryid=16&#038;p13_sectionid=1&#038;p13_fileid=14">整合插件</a>,解开到extension目录下，然后修改LocalSettings.php文件，在最后添加一下内容，也可以参考其readme。</p>
<blockquote>
<p>/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;[ Everything below this line. ]&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;*/</p>
<p>// PHPBB User Database Plugin. (Requires MySQL Database)<br />
require_once &#8216;./extensions/Auth_phpbb.php&#8217;;</p>
<p>$wgAuth_Config = array(); // Clean.</p>
<p>$wgAuth_Config['WikiGroupName'] = &#8216;Wiki&#8217;;       // Name of your PHPBB group<br />
                                                // users need to be a member<br />
                                                // of to use the wiki. (i.e. Wiki)</p>
<p>$wgAuth_Config['UseWikiGroup'] = true;          // This tells the Plugin to require<br />
                                                // a user to be a member of the above<br />
                                                // phpBB group. (ie. wiki) Setting<br />
                                                // this to false will let any phpBB<br />
                                                // user edit the wiki.</p>
<p>$wgAuth_Config['UseExtDatabase'] = true;        // This tells the plugin that the phpBB tables<br />
                                                // are in a different database then the wiki.<br />
                                                // The default settings is false.</p>
<p>/*-[NOTE: You only need the next four settings if you set $wgAuth_Config['UseExtDatabase'] to true.]-*/<br />
// $wgAuth_Config['MySQL_Host']        = &#8216;host&#8217;;            // phpBB MySQL Host Name.<br />
// $wgAuth_Config['MySQL_Username']    = &#8216;username&#8217;;        // phpBB MySQL Username.<br />
// $wgAuth_Config['MySQL_Password']    = &#8216;password&#8217;;        // phpBB MySQL Password.<br />
// $wgAuth_Config['MySQL_Database']    = &#8216;database_name&#8217;;   // phpBB MySQL Database Name.</p>
<p>$wgAuth_Config['UserTB']         = &#8216;phpbb_users&#8217;;       // Name of your PHPBB user table. (i.e. phpbb_users)<br />
$wgAuth_Config['GroupsTB']       = &#8216;phpbb_groups&#8217;;      // Name of your PHPBB groups table. (i.e. phpbb_groups)<br />
$wgAuth_Config['User_GroupTB']   = &#8216;phpbb_user_group&#8217;;  // Name of your PHPBB user_group table. (i.e. phpbb_user_group)<br />
$wgAuth_Config['PathToPHPBB']    = &#8216;../phpbb3/&#8217;;        // Path from this file to your phpBB install.</p>
<p>// Local<br />
$wgAuth_Config['LoginMessage']   = &#8216;<b>You need a phpBB account to login.</b>&#8216;;         // Localize this message.<br />
$wgAuth_Config['NoWikiError']    = &#8216;You are not a member of the required phpBB group.&#8217;; // Localize this message.</p>
<p>$wgAuth = new Auth_phpBB($wgAuth_Config);     // Auth_PHPBB Plugin.</p>
</blockquote>
<p>然后还需要修改Auth_phpbb.php，查找</p>
<blockquote><p>if (md5($password) == $faryMySQLResult['user_password'] &#038;&#038; $this->isMemberOfWikiGroup($username))
</p></blockquote>
<p>替换为：</p>
<blockquote><p>require_once $this->_PathToPHPBB . &#8216;includes/functions.php&#8217;;<br />
                if (phpbb_check_hash($password, $faryMySQLResult['user_password']) &#038;&#038; $this->isMemberOfWikiGroup($username))
</p></blockquote>
<p>最后要到论坛上建立对应的用户组，并添加用户。</p>
<p>参考：<br />
1 http://www.mediawiki.org/wiki/Extension:PHPBB/Users_Integration</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/476/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>发现一个PHPBB RC5的BUG</title>
		<link>http://wlx.westgis.ac.cn/423/</link>
		<comments>http://wlx.westgis.ac.cn/423/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 03:49:45 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[phpbb]]></category>
		<category><![CDATA[bug]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/423/</guid>
		<description><![CDATA[已经报告到给官方了。 是local_upload的问题，估计之前没有人使用这个函数，所以一直没发现。 调用的时候会报这个错误： Notice: in file /includes/functions_upload.php on line 580: mime_content_type() [function.mime-content-type]: can only process string or stream arguments 一直跟踪下来，发现这个$filename是一个空变量，应该是用$source_file这个变量。]]></description>
			<content:encoded><![CDATA[<p>已经报告到给<a href="http://www.phpbb.com/bugs/phpbb3/ticket.php?ticket_id=14422">官方</a>了。<br />
是local_upload的问题，估计之前没有人使用这个函数，所以一直没发现。<br />
调用的时候会报这个错误：</p>
<blockquote><p>Notice: in file /includes/functions_upload.php on line 580: mime_content_type() [function.mime-content-type]: can only process string or stream arguments</p></blockquote>
<p>一直跟踪下来，发现这个$filename是一个空变量，应该是用$source_file这个变量。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/423/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>整合phpbb3和svn服务</title>
		<link>http://wlx.westgis.ac.cn/416/</link>
		<comments>http://wlx.westgis.ac.cn/416/#comments</comments>
		<pubDate>Sun, 02 Sep 2007 05:12:19 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[phpbb]]></category>
		<category><![CDATA[westdc]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpbb3]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/416/</guid>
		<description><![CDATA[整合，题目有点大，呵呵。 其实就是把SVN的用户控制交给phpbb3来进行处理。 要求SVN必须采用apache2/mod_auth_mysql来进行控制的。 然后在phpbb3的后台创建一个新的用户组，用于控制可以访问SVN服务的用户。然后在mysql里创建一个视图，提取用户名称和密码。注意，PHPBB3采用的加密方式是直接MD5。假设创建的组名为svn： create view svnauth (username,passwd,groups) as select users.username,users.user_password,groups.group_name from groups,user_group left join users on user_group.user_id=users.user_id where groups.group_name=”svn” and user_group.group_id=groups.group_id ; 然后在apache2的site文件里设置为： Auth_MySQL_Encryption_Types PHP_MD5 这样就可以了，具体的操作还需要参考之前的文章：安装subversion: ssl+auth_mysql+mod_svn。 估计还需要mysql 5的支持，不知道mysql 4是否支持视图。]]></description>
			<content:encoded><![CDATA[<p>整合，题目有点大，呵呵。<br />
其实就是把SVN的用户控制交给phpbb3来进行处理。<br />
要求SVN必须采用apache2/mod_auth_mysql来进行控制的。<br />
然后在phpbb3的后台创建一个新的用户组，用于控制可以访问SVN服务的用户。然后在mysql里创建一个视图，提取用户名称和密码。注意，PHPBB3采用的加密方式是直接MD5。假设创建的组名为svn：</p>
<blockquote><p> create view svnauth (username,passwd,groups) as select users.username,users.user_password,groups.group_name from groups,user_group left join users on user_group.user_id=users.user_id where groups.group_name=”svn” and user_group.group_id=groups.group_id ;</p></blockquote>
<p>然后在apache2的site文件里设置为：</p>
<blockquote><p>Auth_MySQL_Encryption_Types PHP_MD5
</p></blockquote>
<p>这样就可以了，具体的操作还需要参考之前的文章：<a href="http://wlx.westgis.ac.cn/412">安装subversion: ssl+auth_mysql+mod_svn</a>。</p>
<p>估计还需要mysql 5的支持，不知道mysql  4是否支持视图。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/416/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>phpbb 3.0 rc4发布</title>
		<link>http://wlx.westgis.ac.cn/401/</link>
		<comments>http://wlx.westgis.ac.cn/401/#comments</comments>
		<pubDate>Sun, 29 Jul 2007 08:30:46 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[phpbb]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/401/</guid>
		<description><![CDATA[PHPBB3.0 RC4发布，修正了一系列的BUG，升级部分做了一些增强。详细情况请参考官方说明。 在RC1到RC2的升级中，可以进行自动的升级。从RC2之后，好像需要手工确认了，不知道这个改进是好还是不好。 同时，在RC4升级过程中，若你使用了其他语言包，需要注意更新对应的语言包，或者，根据这个帖子进行简单的修改。 dallas2 wrote:I don't know if this is the right thing to do, but in your language pack find common.php file and open it. In that file find: 'NEWEST_USER' =&#62; 'Our newest member &#60;strong&#62;%s%s%s&#60;/strong&#62;', (of course, this &#8230; <a href="http://wlx.westgis.ac.cn/401/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>PHPBB3.0 RC4发布，修正了一系列的BUG，升级部分做了一些增强。详细情况请参考<a href="http://www.phpbb.com/community/viewtopic.php?f=14&#038;t=570985">官方说明</a>。</p>
<p>在RC1到RC2的升级中，可以进行自动的升级。从RC2之后，好像需要手工确认了，不知道这个改进是好还是不好。<br />
同时，在RC4升级过程中，若你使用了其他语言包，需要注意更新对应的语言包，或者，根据<a href="http://www.phpbb.com/community/viewtopic.php?f=46&#038;t=571020#p3140085">这个帖子</a>进行简单的修改。</p>
<blockquote><p><code>dallas2 wrote:I don't know if this is the right thing to do, but in your language pack find common.php file and open it. In that file find:</p>
<p>'NEWEST_USER' =&gt; 'Our newest member &lt;strong&gt;%s%s%s&lt;/strong&gt;',</p>
<p>(of course, this second line will be in your language). Remove two of those "%s%s%s" so that the final line looks like this:</p>
<p>'NEWEST_USER' =&gt; 'Our newest member &lt;strong&gt;%s&lt;/strong&gt;',</p>
<p>This removes the error line for me.</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/401/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpbb 3.0 rc3发布</title>
		<link>http://wlx.westgis.ac.cn/397/</link>
		<comments>http://wlx.westgis.ac.cn/397/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 14:47:05 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[phpbb]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/397/</guid>
		<description><![CDATA[详细情况见phpbb3。 祝贺，感觉离正式版本不远了。]]></description>
			<content:encoded><![CDATA[<p>详细情况见<a href="http://www.phpbb.com/community/viewtopic.php?f=14&#038;t=563407">phpbb3</a>。<br />
祝贺，感觉离正式版本不远了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/397/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpbb 3.0 rc1到rc2的升级</title>
		<link>http://wlx.westgis.ac.cn/391/</link>
		<comments>http://wlx.westgis.ac.cn/391/#comments</comments>
		<pubDate>Mon, 25 Jun 2007 03:27:25 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[phpbb]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/391/</guid>
		<description><![CDATA[开始走了弯路，以为要覆盖后升级，没想到是直接下载升级包就可以了。 cd myforum sudo wget http://prdownloads.sourceforge.net/phpbb/phpBB-3.0.RC1_to_3.0.RC2.zip?download sudo unzip phpBB-3.0RC1_to_3.0RC2.zip 然后进入install目录，选择upgrade就可以了。]]></description>
			<content:encoded><![CDATA[<p>开始走了弯路，以为要覆盖后升级，没想到是直接下载升级包就可以了。</p>
<blockquote><p>cd myforum<br />
sudo wget http://prdownloads.sourceforge.net/phpbb/phpBB-3.0.RC1_to_3.0.RC2.zip?download<br />
sudo unzip phpBB-3.0RC1_to_3.0RC2.zip
</p></blockquote>
<p>然后进入install目录，选择upgrade就可以了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/391/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

