<?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>黑莓风暴 &#187; problem</title>
	<atom:link href="http://bbdev.org/tag/problem/feed/" rel="self" type="application/rss+xml" />
	<link>http://bbdev.org</link>
	<description>blackberry storm</description>
	<lastBuildDate>Tue, 23 Mar 2010 03:23:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>安装 Wordpress 插件</title>
		<link>http://bbdev.org/2008/12/install-wordpress-plugin/</link>
		<comments>http://bbdev.org/2008/12/install-wordpress-plugin/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 15:34:14 +0000</pubDate>
		<dc:creator>bbdev</dc:creator>
				<category><![CDATA[随笔记录]]></category>
		<category><![CDATA[fatal error]]></category>
		<category><![CDATA[Popularity Contest]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bbdev.org/?p=90</guid>
		<description><![CDATA[今天忽然想给自己的blog增加一些有用的功能，最快速的方法当然就是安装插件。从http://www.berryon.com/plugin借鉴了一些插件，哈哈。
但是装Popularity Contest碰到了些问题，出现了“Plugin could not be activated because it triggered a fatal error.”。
google之，发现一些解决方法，Open popularity-contest.php and scroll down to line 59. Replace require(’../../wp-blog-header.php’); with require(’../wp-blog-header.php’);
按照这个方法做了，还是一样的错误，真晕啊～
于是乎，继续google，发现有朋友说新安装的WP要把

if &#40;isset&#40;$_GET&#91;'activate'&#93;&#41; &#38;amp;&#38;amp; $_GET&#91;'activate'&#93; == ‘true’&#41; &#123;
换成
if &#40;isset&#40;$_GET&#91;'action'&#93;&#41; &#38;amp;&#38;amp; $_GET&#91;'action'&#93; == ‘activate’&#41; &#123;

这次成功了，不过active后发现首页显示有重复，这次google半天也没找到解决方法，或者是我找的方法不对。所以只能自己动手分析下代码了。先把AKPC_SHOWPOP和AKPC_SHOWHELP 2 个开关全部关了，发现没任何显示了。
ok，既然AKPC_SHOWPOP是控制内容的，那么就在代码里搜索AKPC_SHOWPOP，找到

if &#40;AKPC_SHOWPOP == 1&#41; &#123;
add_action&#40;'the_content', 'akpc_content_pop'&#41;;
add_action&#40;'the_excerpt', 'akpc_content_pop'&#41;;
&#125;

不太熟悉WP插件的编写，不过写程序的思想多数是相通的，既然要实现插件，那么就肯定要hook event的，试着把add_action(&#8217;the_excerpt&#8217;, &#8216;akpc_content_pop&#8217;);注释掉。
ok，问题解决，明天继续研究下这个东西。
]]></description>
		<wfw:commentRss>http://bbdev.org/2008/12/install-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
