<?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/"
	>

<channel>
	<title>余心烦错</title>
	<atom:link href="http://efrees.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://efrees.com/blog</link>
	<description>穷居而野外，升高而望远</description>
	<pubDate>Wed, 29 Oct 2008 13:06:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>辐射III终于来了</title>
		<link>http://efrees.com/blog/fallout-3-finally-come.html</link>
		<comments>http://efrees.com/blog/fallout-3-finally-come.html#comments</comments>
		<pubDate>Wed, 29 Oct 2008 13:06:25 +0000</pubDate>
		<dc:creator>muzik</dc:creator>
		
		<category><![CDATA[Pastime]]></category>

		<category><![CDATA[辐射]]></category>

		<guid isPermaLink="false">http://efrees.com/blog/?p=88</guid>
		<description><![CDATA[等了这么多年，经过一再的延期、跳票、开发计划中止，我早已经相信再也不会有辐射3了。
但它却就这么蹦了出来，我的承认，在看到的那一瞬间，我就傻掉了。
辐射III @ verycd


No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>等了这么多年，经过一再的延期、跳票、开发计划中止，我早已经相信再也不会有辐射3了。</p>
<p>但它却就这么蹦了出来，我的承认，在看到的那一瞬间，我就傻掉了。</p>
<p><a href="http://www.verycd.com/topics/420956/">辐射III @ verycd</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://efrees.com/blog/fallout-3-finally-come.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>找碴</title>
		<link>http://efrees.com/blog/hunt-for-bugs.html</link>
		<comments>http://efrees.com/blog/hunt-for-bugs.html#comments</comments>
		<pubDate>Sat, 18 Oct 2008 05:07:27 +0000</pubDate>
		<dc:creator>muzik</dc:creator>
		
		<category><![CDATA[should do this]]></category>

		<category><![CDATA[网易]]></category>

		<guid isPermaLink="false">http://efrees.com/blog/?p=86</guid>
		<description><![CDATA[网易校园招聘擂台赛看看哪些校友参加这里，过滤的界面是这样徳

选择学校之后，变成了这样这样的

因为院系这个select没有设置最大宽度，当某个学校的院系列表中有名称较长的项时，这个select就会变长&#8230;于是就把查找按钮挤到下一行去了。而上级容器又设置了固定高度和overflow:hidden,于是查找就不见了&#8230;囧


No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>网易校园招聘擂台赛<a id="a555" title="看看哪些校友参加" href="http://blog.163.com/activities/zhaopin/zhaopin.do?action=all" target="_blank">看看哪些校友参加</a>这里，过滤的界面是这样徳</p>
<p><img style="width: 440px; height: 110px;" src="http://docs.google.com/File?id=ahhxcdfmbrnd_31ffcmq6g2_b" alt="" /></p>
<p>选择学校之后，变成了这样这样的</p>
<p><img style="width: 440px; height: 110px;" src="http://docs.google.com/File?id=ahhxcdfmbrnd_32f7hfzrd2_b" alt="" /></p>
<p>因为<strong>院系</strong>这个select没有设置最大宽度，当某个学校的院系列表中有名称较长的项时，这个select就会变长&#8230;于是就把<strong>查找</strong>按钮挤到下一行去了。而上级容器又设置了固定高度和overflow:hidden,于是<strong>查找</strong>就不见了&#8230;囧</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://efrees.com/blog/hunt-for-bugs.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>网易2009校园招聘擂台赛</title>
		<link>http://efrees.com/blog/netease-2009-campus-recruitment-challenge-cup.html</link>
		<comments>http://efrees.com/blog/netease-2009-campus-recruitment-challenge-cup.html#comments</comments>
		<pubDate>Sat, 18 Oct 2008 04:44:57 +0000</pubDate>
		<dc:creator>muzik</dc:creator>
		
		<category><![CDATA[Gossip]]></category>

		<category><![CDATA[网易]]></category>

		<guid isPermaLink="false">http://efrees.com/blog/?p=84</guid>
		<description><![CDATA[网易2009校园招聘擂台赛开赛了。这种线上招聘，说不上有太多新意。但是，由门户网站来搞，却还是让人眼前一亮。到目前为止，从乖乖的漫画专栏，到盗版豆瓣小组的购买冰岛活动，网易越来越多的体现出亲民的一面，亲近网民的一面。
网易2009校园招聘擂台赛是和网易2009年校园招聘同步推出的大型线上活动。网易网站部将通过此次校园招聘面向应届毕业生招聘13类共35个左右职位。
所有应聘者将在网上注册生成个人页面，并在指定时间内参与线上统一笔试。跟普通网申不同的是，选手的信息和答题情况将展现在个人页面上，并可以获得网友的 支持，也可以选择回答网友的出题。我们将从支持率最高的20位选手中选出6名人气王，提前视频面试并发放至少1个offer。其他喜欢低调不爱拉票的同学 也不用担心，你响当当的才能和优势同样会为你赢得offer青睐，首轮提前offer发放后各职位将单独通知后续面试事宜并发放其他offer！
但是，哈哈，我实在是太不厚道了，一打开这个活动的页面，我还以为在搞恐怖片cosplay。投票排名第一的那位兄台，实在是三分不像人，七分倒像鬼&#8230;.

其他几位么，呵呵，哈哈&#8230;没人想过应该好好的拍一张相片的呢？







No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p><a id="mwpu" title="网易2009校园招聘擂台赛" href="http://blog.163.com/activities/zhaopin/zhaopin.do" target="_blank">网易2009校园招聘擂台赛</a>开赛了。这种线上招聘，说不上有太多新意。但是，由门户网站来搞，却还是让人眼前一亮。到目前为止，从乖乖的漫画专栏，到盗版豆瓣小组的购买冰岛活动，网易越来越多的体现出亲民的一面，亲近网民的一面。</p>
<blockquote><p>网易2009校园招聘擂台赛是和网易2009年校园招聘同步推出的大型线上活动。网易网站部将通过此次校园招聘面向应届毕业生招聘13类共35个左右职位。<br />
所有应聘者将在网上注册生成个人页面，并在指定时间内参与线上统一笔试。跟普通网申不同的是，选手的信息和答题情况将展现在个人页面上，并可以获得网友的 支持，也可以选择回答网友的出题。我们将从支持率最高的20位选手中选出6名人气王，提前视频面试并发放至少1个offer。其他喜欢低调不爱拉票的同学 也不用担心，你响当当的才能和优势同样会为你赢得offer青睐，首轮提前offer发放后各职位将单独通知后续面试事宜并发放其他offer！</p></blockquote>
<p>但是，哈哈，我实在是太不厚道了，一打开这个活动的页面，我还以为在搞恐怖片cosplay。投票排名第一的那位兄台，实在是三分不像人，七分倒像鬼&#8230;.</p>
<div id="da-n" style="padding: 1em 0pt; text-align: center;"><img style="width: 240px; height: 240px;" src="http://docs.google.com/File?id=ahhxcdfmbrnd_25fwf674ht_b" alt="" /></p>
<div style="text-align: left;">其他几位么，呵呵，哈哈&#8230;没人想过应该好好的拍一张相片的呢？</p>
<div id="iweo" style="padding: 1em 0pt; text-align: center;"><img style="width: 240px; height: 240px;" src="http://docs.google.com/File?id=ahhxcdfmbrnd_26gzfx4cp7_b" alt="" /></div>
<div id="lz8y" style="padding: 1em 0pt; text-align: center;"><img src="http://docs.google.com/File?id=ahhxcdfmbrnd_29ct3r3bcz_b" alt="" /></div>
<div id="okeg" style="padding: 1em 0pt; text-align: center;"><img style="width: 240px; height: 204px;" src="http://docs.google.com/File?id=ahhxcdfmbrnd_28g53gh8dk_b" alt="" /></div>
</div>
</div>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://efrees.com/blog/netease-2009-campus-recruitment-challenge-cup.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>alimama，多给我一点数据你会死吗</title>
		<link>http://efrees.com/blog/alimama-i-give-you-information-that-you-will-die.html</link>
		<comments>http://efrees.com/blog/alimama-i-give-you-information-that-you-will-die.html#comments</comments>
		<pubDate>Fri, 17 Oct 2008 13:58:32 +0000</pubDate>
		<dc:creator>muzik</dc:creator>
		
		<category><![CDATA[should do this]]></category>

		<category><![CDATA[alimama]]></category>

		<category><![CDATA[淘客推广]]></category>

		<guid isPermaLink="false">http://efrees.com/blog/?p=83</guid>
		<description><![CDATA[其实这几天经常泡在alimama上，不妨再说一个和浏览器无关的事。淘客推广这个东西确实不错，话说不知道多少年以前，我就开始羡慕那些老外有那么多的Affiliate Program可做。现在好了，总算有个中文的了。
可问题是，你拿了它的代码去推广，它连个简单的数据报表都不给你。
有多少人通过我的推广点到这个店？其中又有多少人做了订购？不知道&#8230;只有等买卖双方钱货两清之后，它才给你一个收入报表。
这实在是，太让人为难了：如果我没办法即时知道今天的转化效率，我该如何调整我的推广策略呢？如何买流量，页面如何设置，这些都得等三四天甚至更长时间才能收到反馈。
因为这个问题，我还特地自己跑去开了一个网店，入了消保，买了旺铺，然后发现作为店主，我对这个流程中发生了什么也是一无所知。因为淘宝旺铺虽然支持一些自定义，可以安装统计代码。但是，只能安装图片型统计，这种形式无法获知用户来路。简单的说，我可以看到一天有多少人进入了我的店，但我不知道他们是从哪来的。
当然，这个是店主的问题。作为推介者，目前我只能试图通过两个途径来弥补这一问题。
* 在放置推广代码的页面上使用Google Analytics，给推广链接加点出监测。
* 尽量选择不需要邮递的所谓“虚拟商品”来做推广。
虚拟商品有几个好处，一是多卖一份Copy几乎不增加成本，所以返佣率应该可以很高——当然，代理大公司的手机卡或游戏卡不属此类。二是不须邮递，交易迅速，数据可以比较快的反映出来——尽管这也至少需要24小时。
虚拟商品的这两个特点决定了，它们是最适合做Affiliate Marketing的商品。比如在Clickbank，排名居前的几乎都是电子书、软件、培训教材之类。但是在淘宝上，这类商品实在还是太少了。或许我该考虑，去买一些软件来试着推广了看呢。


No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>其实这几天经常泡在alimama上，不妨再说一个和浏览器无关的事。淘客推广这个东西确实不错，话说不知道多少年以前，我就开始羡慕那些老外有那么多的Affiliate Program可做。现在好了，总算有个中文的了。</p>
<p>可问题是，你拿了它的代码去推广，它连个简单的数据报表都不给你。</p>
<p>有多少人通过我的推广点到这个店？其中又有多少人做了订购？不知道&#8230;只有等买卖双方钱货两清之后，它才给你一个收入报表。</p>
<p>这实在是，太让人为难了：如果我没办法即时知道今天的转化效率，我该如何调整我的推广策略呢？如何买流量，页面如何设置，这些都得等三四天甚至更长时间才能收到反馈。</p>
<p>因为这个问题，我还特地自己跑去开了一个网店，入了消保，买了旺铺，然后发现作为店主，我对这个流程中发生了什么也是一无所知。因为淘宝旺铺虽然支持一些自定义，可以安装统计代码。但是，只能安装图片型统计，这种形式无法获知用户来路。简单的说，我可以看到一天有多少人进入了我的店，但我不知道他们是从哪来的。</p>
<p>当然，这个是店主的问题。作为推介者，目前我只能试图通过两个途径来弥补这一问题。</p>
<p>* 在放置推广代码的页面上使用Google Analytics，给推广链接加点出监测。<br />
* 尽量选择不需要邮递的所谓“虚拟商品”来做推广。</p>
<p>虚拟商品有几个好处，一是多卖一份Copy几乎不增加成本，所以返佣率应该可以很高——当然，代理大公司的手机卡或游戏卡不属此类。二是不须邮递，交易迅速，数据可以比较快的反映出来——尽管这也至少需要24小时。</p>
<p>虚拟商品的这两个特点决定了，它们是最适合做Affiliate Marketing的商品。比如在Clickbank，排名居前的几乎都是电子书、软件、培训教材之类。但是在淘宝上，这类商品实在还是太少了。或许我该考虑，去买一些软件来试着推广了看呢。</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://efrees.com/blog/alimama-i-give-you-information-that-you-will-die.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>都有谁还在逼着我用IE</title>
		<link>http://efrees.com/blog/who-has-forced-me-to-use-the-ie.html</link>
		<comments>http://efrees.com/blog/who-has-forced-me-to-use-the-ie.html#comments</comments>
		<pubDate>Fri, 17 Oct 2008 13:23:27 +0000</pubDate>
		<dc:creator>muzik</dc:creator>
		
		<category><![CDATA[should do this]]></category>

		<category><![CDATA[alimama]]></category>

		<guid isPermaLink="false">http://efrees.com/blog/?p=81</guid>
		<description><![CDATA[平时里用的最多的浏览器是Firefox，因为一些插件所能提供的特殊功能是其它浏览器所不能办到的。比如Firebug,Grease Monkey，Poster，Stylish..等等，它们的存在，使我获益良多。
但 是，太多的插件有时是一种灾难，尤其是，当你不需要使用他们的时候。自从Google Chrome发布之后，我也比较经常的使用它来做一些平常的浏览，因为速度很快。此外，当我需要频繁使用Digg、delicious或者 twitter的时候，我就打开Flock。
至于Opera，唔，我已经不记得上次打开它是什么时候了，尽管它应该还在我的系统里。但我很确信的一点是，如果我现在打开opera，它一定又要叫我升级——前几次打开opera的经历都是如此。
尽管如此，同时使用三个浏览器已经够让我烦的了。但却还有一些状况，逼得我不得不再加上IE。简单罗列一下。

建行网银.
这基本上已经是老话题了，几年来我不间断的听人抱怨某某银行网银不支持firefox，到现在，抱怨的人越来越少。但那些网银并没有任何改变，所以，可能是大家已经接受了这一事实。
Chrome发布的那天，我很欣喜的发现用它访问建行网银可以输入密码——firefox不可以。在那一瞬间，我是多么的欣喜啊！
但是，我还是高兴的太早了。等我把验证码也填好之后，点击登录，只收到一个alert：“系统错误，用户昵称/证件号码没有定义minlength属性！”。
支付宝.
也 是老话题了。从我们熟知的taobao UED Team的做派来看，怎么说支付宝公司也应该是一个有生命有活力的公司。前阵子他们提供了firefox版的登录控件，这真是让我太感动了&#8230;遗憾的 是，我还是得切换到IE里去付款——至于充值，因为要用到网银，我永远不会再指望可以不用IE就能搞定。
Alimama..
其实我要说的重点是这个。哎，alimama让我比较不快的地方有这么几处：

使用Chrome访问alimama时，在淘客推广 - 我要推广商品哪里，“正在载入数据请稍候”之后，就没下文了。一开始我以为是网速慢，后来才发现，无论如何它都是不会再返回任何东西的。- -~~
使用firefox访问alimama时，在获取推广代码的页面，有个点击复制的按钮。但是这个按钮对firefox是无效的——虽然点了之后它也还乐滋滋的提示“已经成功复制”。哎..既然这个按钮无效，那你允许我自己手动选定复制好不好？不好，它就是只允许我点击复制。





No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>平时里用的最多的浏览器是Firefox，因为一些插件所能提供的特殊功能是其它浏览器所不能办到的。比如Firebug,Grease Monkey，Poster，Stylish..等等，它们的存在，使我获益良多。</p>
<p>但 是，太多的插件有时是一种灾难，尤其是，当你不需要使用他们的时候。自从Google Chrome发布之后，我也比较经常的使用它来做一些平常的浏览，因为速度很快。此外，当我需要频繁使用Digg、delicious或者 twitter的时候，我就打开Flock。</p>
<p>至于Opera，唔，我已经不记得上次打开它是什么时候了，尽管它应该还在我的系统里。但我很确信的一点是，如果我现在打开opera，它一定又要叫我升级——前几次打开opera的经历都是如此。</p>
<p>尽管如此，同时使用三个浏览器已经够让我烦的了。但却还有一些状况，逼得我不得不再加上IE。简单罗列一下。</p>
<ol>
<li>建行网银.<br/><br />
这基本上已经是老话题了，几年来我不间断的听人抱怨某某银行网银不支持firefox，到现在，抱怨的人越来越少。但那些网银并没有任何改变，所以，可能是大家已经接受了这一事实。<br/><br />
Chrome发布的那天，我很欣喜的发现用它访问建行网银可以输入密码——firefox不可以。在那一瞬间，我是多么的欣喜啊！<br/><br />
但是，我还是高兴的太早了。等我把验证码也填好之后，点击登录，只收到一个alert：“系统错误，用户昵称/证件号码没有定义minlength属性！”。<br/><br/></li>
<li>支付宝.<br/><br />
也 是老话题了。从我们熟知的taobao UED Team的做派来看，怎么说支付宝公司也应该是一个有生命有活力的公司。前阵子他们提供了firefox版的登录控件，这真是让我太感动了&#8230;遗憾的 是，我还是得切换到IE里去付款——至于充值，因为要用到网银，我永远不会再指望可以不用IE就能搞定。<br/><br/></li>
<li>Alimama..<br/><br />
其实我要说的重点是这个。哎，alimama让我比较不快的地方有这么几处：<br/></p>
<ul>
<li>使用Chrome访问alimama时，在<strong>淘客推广 </strong>-<strong> 我要推广商品</strong>哪里，“正在载入数据请稍候”之后，就没下文了。一开始我以为是网速慢，后来才发现，无论如何它都是不会再返回任何东西的。- -~~</li>
<li>使用firefox访问alimama时，在获取推广代码的页面，有个点击复制的按钮。但是这个按钮对firefox是无效的——虽然点了之后它也还乐滋滋的提示“已经成功复制”。哎..既然这个按钮无效，那你允许我自己手动选定复制好不好？不好，它就是只允许我点击复制。</li>
</ul>
</li>
</ol>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://efrees.com/blog/who-has-forced-me-to-use-the-ie.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Pligg插件RSS importer使用笔记</title>
		<link>http://efrees.com/blog/pligg-use-plug-in-rss-importer-note.html</link>
		<comments>http://efrees.com/blog/pligg-use-plug-in-rss-importer-note.html#comments</comments>
		<pubDate>Sat, 11 Oct 2008 10:35:24 +0000</pubDate>
		<dc:creator>muzik</dc:creator>
		
		<category><![CDATA[CMS]]></category>

		<category><![CDATA[pligg]]></category>

		<guid isPermaLink="false">http://efrees.com/blog/?p=79</guid>
		<description><![CDATA[RSS importer几乎可说是安装Pligg后必用插件，我们可以用它来从指定的Feed定时抓取更新。在安装了Pligg Beta 9.9.5之后，可以使用管理员账号从管理面板进入Module Management，找到RSS importer安装并启用。
抓取中文内容标题与内容为空的问题
如果抓取的目标文章title是中文的话，极有可能写入后title、content均为空——事实上，直接submit一个中文标题的story也会出现这种情况。
检查/libs/link.php发现，Pligg插入Link的流程是

先插入一条含作者、创建时间、分类等关联内容的条目，这些列的类型多为int或timestamp。
然后再通过update来为刚插入的行写入title、content、title_url、tags以及extend fields等文本内容，这些列的内容多为varchar或text。

在update这个流程，它会先给这些数据分别做db-escape，如果title_url为空的话，它还将使用一个makeUrlFriendly函数处理title，赋予title_url。
这个函数在处理中文时返回的结果多数情况下会导致包含该字串的sql不能被顺利执行，以致link更新失败，从而出现link写入成功但是标题和内容均为空的问题。
比较理想的做法是如同wordpress插件cos_translator那样，利用google translate取回一个英文翻译结果赋予title_url。不想费这个劲的话，直接把titile赋给title_url也行。
修改/libs/link.php 把139行注释替换为

//if($link_title_url == &#34;&#34;){$link_title_url = makeUrlFriendly($this-&#62;title);}
if&#40;$link_title_url == &#34;&#34;&#41;&#123;$link_title_url = $link_title;&#125;

&#160;
这样修改解决了未设置title_url时的问题，但使用RSS importer抓取的时候，插件已经先行一步使用makeUrlFriendly给title_url赋值了，这也需要取消掉。
修改/modules/rss_import/templates/import_fields_center.tpl 把78行注释替换为

//$linkres-&#62;title_url = makeUrlFriendly($linkres-&#62;title);
$linkres-&#62;title_url = $linkres-&#62;title;

&#160;
抓取时重复更新计数的问题
在RSS importer里可以给一个Feed设置Random Votes，以后从该Feed抓取回来的链接，每一条都会被先预置Votes。比如我们给一个Feed预置5-10的votes，那么取回来的文章会随机的得到在这之间的一个votes。
问题就在这里设置votes的流程是

先往votes表里插入一条vote，计算该link的votes数并更新..
再往votes表里插入一条vote，计算该link的votes数并更新&#8230;
如此往复&#8230;.

如果votes为200的话，那就重复200次。
我们可以把计算votes数并更新这个流程移出来，做一次就可以了。
具体是修改/modules/rss_import/templates/import_fields_center.tpl 147行，把这行起看到的第一个}移到这行之前。


Related posts:Pligg使用笔记 Pligg是一个仿Digg.com的开源CMS，两年前粗粗的接触过一下，当时的感觉只有两个字，惊艳。近日又翻出来装上试用。 下载 在pligg的官方网站上有多处download链接，均指向http://forums.pligg.com/current-version/ ，点开之后却是一片空白，且没有任何提示。sourceforge上可以下载到的最新版本是去年发布的Pligg_Beta_9.8。要下载最新版的话，其实需要进入论坛注册，登录之后再点击前述链接，进入论坛里的current version版面下载。目前的最新版是Pligg Beta 9.9.5。 哎，实在是太不严谨了。 安装 安装的时候会有若干错误提示，包括找不到/setting.php,/libs/dbconnect.php。这就需要分别给/setting.php.default,/libs/dbconnect.php.default这两个文件重命名，把末尾的.default去掉。...
Related posts brought to you by Yet Another Related Posts Plugin.


Related posts:<ol><li><a href='http://efrees.com/blog/note-the-use-of-pligg.html' rel='bookmark' title='Permanent Link: Pligg使用笔记'>Pligg使用笔记</a> <small>Pligg是一个仿Digg.com的开源CMS，两年前粗粗的接触过一下，当时的感觉只有两个字，惊艳。近日又翻出来装上试用。 下载 在pligg的官方网站上有多处download链接，均指向http://forums.pligg.com/current-version/ ，点开之后却是一片空白，且没有任何提示。sourceforge上可以下载到的最新版本是去年发布的Pligg_Beta_9.8。要下载最新版的话，其实需要进入论坛注册，登录之后再点击前述链接，进入论坛里的current version版面下载。目前的最新版是Pligg Beta 9.9.5。 哎，实在是太不严谨了。 安装 安装的时候会有若干错误提示，包括找不到/setting.php,/libs/dbconnect.php。这就需要分别给/setting.php.default,/libs/dbconnect.php.default这两个文件重命名，把末尾的.default去掉。...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>RSS importer几乎可说是安装Pligg后必用插件，我们可以用它来从指定的Feed定时抓取更新。在<a href="http://efrees.com/blog/archives/note-the-use-of-pligg/">安装了Pligg Beta 9.9.5</a>之后，可以使用管理员账号从管理面板进入<strong>Module Management</strong>，找到RSS importer安装并启用。</p>
<h3>抓取中文内容标题与内容为空的问题</h3>
<p>如果抓取的目标文章title是中文的话，极有可能写入后title、content均为空——事实上，直接submit一个中文标题的story也会出现这种情况。</p>
<p>检查/libs/link.php发现，Pligg插入Link的流程是</p>
<ol>
<li>先插入一条含作者、创建时间、分类等关联内容的条目，这些列的类型多为int或timestamp。
<li>然后再通过update来为刚插入的行写入title、content、title_url、tags以及extend fields等文本内容，这些列的内容多为varchar或text。
</ol>
<p>在update这个流程，它会先给这些数据分别做db-escape，如果title_url为空的话，它还将使用一个makeUrlFriendly函数处理title，赋予title_url。</p>
<p>这个函数在处理中文时返回的结果多数情况下会导致包含该字串的sql不能被顺利执行，以致link更新失败，从而出现link写入成功但是标题和内容均为空的问题。</p>
<p>比较理想的做法是如同wordpress插件<a href="http://www.storyday.com/html/y2007/1202_auto-slug-translate-plugin.html">cos_translator</a>那样，利用google translate取回一个英文翻译结果赋予title_url。不想费这个劲的话，直接把titile赋给title_url也行。</p>
<p>修改/libs/link.php 把139行注释替换为<br />
<div class="code php" style="font-family: monospace;"><br />
<span style="color: #808080; font-style: italic;">//if($link_title_url == &quot;&quot;){$link_title_url = makeUrlFriendly($this-&gt;title);}</span><br />
<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$link_title_url</span> == <span style="color: #ff0000;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #0000ff;">$link_title_url</span> = <span style="color: #0000ff;">$link_title</span>;<span style="color: #66cc66;">&#125;</span><br />
<br />
&nbsp;</div>
<p>这样修改解决了未设置title_url时的问题，但使用RSS importer抓取的时候，插件已经先行一步使用makeUrlFriendly给title_url赋值了，这也需要取消掉。<br />
修改/modules/rss_import/templates/import_fields_center.tpl 把78行注释替换为<br />
<div class="code php" style="font-family: monospace;"><br />
<span style="color: #808080; font-style: italic;">//$linkres-&gt;title_url = makeUrlFriendly($linkres-&gt;title);</span><br />
<span style="color: #0000ff;">$linkres</span>-&gt;<span style="color: #006600;">title_url</span> = <span style="color: #0000ff;">$linkres</span>-&gt;<span style="color: #006600;">title</span>;<br />
<br />
&nbsp;</div>
<h3>抓取时重复更新计数的问题</h3>
<p>在RSS importer里可以给一个Feed设置<strong>Random Votes</strong>，以后从该Feed抓取回来的链接，每一条都会被先预置Votes。比如我们给一个Feed预置5-10的votes，那么取回来的文章会随机的得到在这之间的一个votes。</p>
<p>问题就在这里设置votes的流程是</p>
<ol>
<li>先往votes表里插入一条vote，计算该link的votes数并更新..</p>
<li>再往votes表里插入一条vote，计算该link的votes数并更新&#8230;
<li>如此往复&#8230;.
</ol>
<p>如果votes为200的话，那就重复200次。</p>
<p>我们可以把计算votes数并更新这个流程移出来，做一次就可以了。<br />
具体是修改/modules/rss_import/templates/import_fields_center.tpl 147行，把这行起看到的第一个}移到这行之前。</p>


<p>Related posts:<ol><li><a href='http://efrees.com/blog/note-the-use-of-pligg.html' rel='bookmark' title='Permanent Link: Pligg使用笔记'>Pligg使用笔记</a> <small>Pligg是一个仿Digg.com的开源CMS，两年前粗粗的接触过一下，当时的感觉只有两个字，惊艳。近日又翻出来装上试用。 下载 在pligg的官方网站上有多处download链接，均指向http://forums.pligg.com/current-version/ ，点开之后却是一片空白，且没有任何提示。sourceforge上可以下载到的最新版本是去年发布的Pligg_Beta_9.8。要下载最新版的话，其实需要进入论坛注册，登录之后再点击前述链接，进入论坛里的current version版面下载。目前的最新版是Pligg Beta 9.9.5。 哎，实在是太不严谨了。 安装 安装的时候会有若干错误提示，包括找不到/setting.php,/libs/dbconnect.php。这就需要分别给/setting.php.default,/libs/dbconnect.php.default这两个文件重命名，把末尾的.default去掉。...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://efrees.com/blog/pligg-use-plug-in-rss-importer-note.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Pligg使用笔记</title>
		<link>http://efrees.com/blog/note-the-use-of-pligg.html</link>
		<comments>http://efrees.com/blog/note-the-use-of-pligg.html#comments</comments>
		<pubDate>Sat, 11 Oct 2008 05:58:19 +0000</pubDate>
		<dc:creator>muzik</dc:creator>
		
		<category><![CDATA[CMS]]></category>

		<category><![CDATA[pligg]]></category>

		<guid isPermaLink="false">http://efrees.com/blog/?p=77</guid>
		<description><![CDATA[Pligg是一个仿Digg.com的开源CMS，两年前粗粗的接触过一下，当时的感觉只有两个字，惊艳。近日又翻出来装上试用。
下载
在pligg的官方网站上有多处download链接，均指向http://forums.pligg.com/current-version/ ，点开之后却是一片空白，且没有任何提示。sourceforge上可以下载到的最新版本是去年发布的Pligg_Beta_9.8。要下载最新版的话，其实需要进入论坛注册，登录之后再点击前述链接，进入论坛里的current version版面下载。目前的最新版是Pligg Beta 9.9.5。
哎，实在是太不严谨了。
安装
安装的时候会有若干错误提示，包括找不到/setting.php,/libs/dbconnect.php。这就需要分别给/setting.php.default,/libs/dbconnect.php.default这两个文件重命名，把末尾的.default去掉。
这想来是为了避免做升级下载时覆盖到配置文件，但是..应该也可以像wordpress一样安装时就自行读取.default文件生成setting.php的罢，可以省却一些麻烦。
此外，在pligg里不时见到if($_REQUEST['language'])这样的写法，但是却没有设置过error_reporting。如果php.ini里设置了显示ERROR NOTICE的话，就会经常出现错误提示。
这点，可以修改/config.php 第十一行为
error_reporting&#40;E_ALL^E_NOTICE&#41;;
&#160;
分类管理
安装好之后，使用god账户登录，管理分类的时候发现，新建分类的功能是不可用的，点了Add A New Category之后并没有建成任何分类，也没有任何错误提示。
原因是..在admin_categories.php里，新建分类就通过以下两行代码来完成

$sql = &#34;insert into `&#34; . table_categories . &#34;` (`category_name`) VALUES ('new category');&#34;;
$db-&#62;query&#40;$sql&#41;;

&#160;
但在安装过程生成的数据库里，categories表有两个不可为空又没有设置默认值的列，category_desc和category_keywords。这样的语句query进去，不会生成任何结果。
修正方法..要么改这个语句，给category_desc和category_keywords加上值再插入。要么，修改数据库，允许这两列为空。
数据库里中文内容乱码
pligg里有个dblang设置，默认为en，还没搞懂是用来干嘛的。我的问题是，使用mysql-GUI浏览数据库的时候，pligg建立的中文内容都是乱码。
这需要在/libs/db.php 的第100行，新增一行
$this-&#62;query&#40;'SET NAMES &#34;utf8&#34;'&#41;;
&#160;
暂时遇到这么些问题。


No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.pligg.com/" target="_blank">Pligg</a>是一个仿Digg.com的开源CMS，两年前粗粗的接触过一下，当时的感觉只有两个字，惊艳。近日又翻出来装上试用。</p>
<h3>下载</h3>
<p>在pligg的官方网站上有多处download链接，均指向http://forums.pligg.com/current-version/ ，点开之后却是一片空白，且没有任何提示。sourceforge上可以下载到的最新版本是去年发布的Pligg_Beta_9.8。要下载最新版的话，其实需要进入论坛注册，登录之后再点击前述链接，进入论坛里的current version版面下载。目前的最新版是Pligg Beta 9.9.5。</p>
<p>哎，实在是太不严谨了。</p>
<h3>安装</h3>
<p>安装的时候会有若干错误提示，包括找不到/setting.php,/libs/dbconnect.php。这就需要分别给/setting.php.default,/libs/dbconnect.php.default这两个文件重命名，把末尾的.default去掉。</p>
<p>这想来是为了避免做升级下载时覆盖到配置文件，但是..应该也可以像wordpress一样安装时就自行读取.default文件生成setting.php的罢，可以省却一些麻烦。</p>
<p>此外，在pligg里不时见到if($_REQUEST['language'])这样的写法，但是却没有设置过error_reporting。如果php.ini里设置了显示ERROR NOTICE的话，就会经常出现错误提示。</p>
<p>这点，可以修改/config.php 第十一行为<br />
<div class="code php" style="font-family: monospace;"><a href="http://www.php.net/error_reporting"><span style="color: #000066;">error_reporting</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">E_ALL</span>^E_NOTICE<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp;</div>
<h3>分类管理</h3>
<p>安装好之后，使用god账户登录，管理分类的时候发现，新建分类的功能是不可用的，点了Add A New Category之后并没有建成任何分类，也没有任何错误提示。</p>
<p>原因是..在admin_categories.php里，新建分类就通过以下两行代码来完成<br />
<div class="code php" style="font-family: monospace;"><br />
<span style="color: #0000ff;">$sql</span> = <span style="color: #ff0000;">&quot;insert into `&quot;</span> . table_categories . <span style="color: #ff0000;">&quot;` (`category_name`) VALUES ('new category');&quot;</span>;<br />
<span style="color: #0000ff;">$db</span>-&gt;<span style="color: #006600;">query</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$sql</span><span style="color: #66cc66;">&#41;</span>;<br />
<br />
&nbsp;</div><br />
但在安装过程生成的数据库里，categories表有两个不可为空又没有设置默认值的列，category_desc和category_keywords。这样的语句query进去，不会生成任何结果。</p>
<p>修正方法..要么改这个语句，给category_desc和category_keywords加上值再插入。要么，修改数据库，允许这两列为空。</p>
<h3>数据库里中文内容乱码</h3>
<p>pligg里有个dblang设置，默认为en，还没搞懂是用来干嘛的。我的问题是，使用mysql-GUI浏览数据库的时候，pligg建立的中文内容都是乱码。</p>
<p>这需要在/libs/db.php 的第100行，新增一行</p>
<div class="code php" style="font-family: monospace;"><span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">query</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'SET NAMES &quot;utf8&quot;'</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp;</div>
<p>暂时遇到这么些问题。</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://efrees.com/blog/note-the-use-of-pligg.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>yupoo上传图片应该支持图片替换</title>
		<link>http://efrees.com/blog/yupoo-upload-pictures-to-support-the-picture-should-be-replaced.html</link>
		<comments>http://efrees.com/blog/yupoo-upload-pictures-to-support-the-picture-should-be-replaced.html#comments</comments>
		<pubDate>Wed, 08 Oct 2008 06:12:39 +0000</pubDate>
		<dc:creator>muzik</dc:creator>
		
		<category><![CDATA[should do this]]></category>

		<category><![CDATA[yupoo]]></category>

		<guid isPermaLink="false">http://efrees.com/blog/?p=75</guid>
		<description><![CDATA[在淘宝开了一个网店，店里用的一些图片是ftp上传到一家上海IDC提供的虚拟主机空间上的。这两天发现店里宝贝描述页面上的细节图片打开很慢，于是打算买个相册服务。
从收藏里点了一家五皇冠店，看到他的细节图片都是来自巴比豆，我也就去注册了巴比豆的相册服务，缴了十个月的费用。上传图片的时候才发现，这网站实在不怎么好用——流程啊界面啊什么的，都弥满着上个世纪的气息。这才想起yupoo，过去看了一下服务条款，注册了一年的网店VIP服务。
淘宝旺铺支持自定义区块，我在店铺首页header下边加了一块，主要用于公告和发布更新。我是比较乐意使用html来写更新的啦，但我发现很多店铺都是直接使用单张图片来发布信息的。除了图片海报较为美观之外，也可能是因为多数店铺都是对外购买“装修”服务，店内的维护人员并不擅长和html打交道。
我也就试一下这种形式。那么比较正常的流程应该是，我在里边写入一个固定的图片地址。以后有变动时修改图片即可，不必再来更换图片地址。
巴比豆上传图片时有额外的选项，一是使用原文件名或生成随机文件名，如果选择了使用原文件名的话，还可以选择遇到重名文件时是否覆盖。巴比豆的外链地址是形如这样的
http://www39.babidou.com/pic/2008/10/6/user_name/custom_dirname/img_name.jpg
这正好可以满足我的要求。店里某处内容需要更新时，我需要修改本地的图片，选择使用原文件名并覆盖同名文件上传到巴比豆。那么店里自然就更新了。
yupoo上传图片是默认使用随机码，外链地址形如这样
http://pic.yupoo.com/user_name/2108464fbafd/m56q8e2n.jpg
如果使用yupoo的话，我每次修改图片并上传之后，还需做两件事，一是去店里修改自定义模块里html标签里的图片地址，二是，我还得在yupoo删除原来那张图片，因为我已经不需要再用了。
当然，我仍旧会继续使用yupoo的VIP服务，但针对上述需要，我还得再同时使用巴比豆的服务。如果yupoo能在修改图片标题、描述与标签之外，再增加一个替换图片功能，那就更完美了。
UPDATE:

yupoo为网店VIP客户提供了一项相当不错的专有服务：批量外链。真是太便利了。但是专门定位于为网店客户服务的巴比豆，另有一个宝贝模板服务也很贴心。这种服务于网站而言所费不多，于用户而言，却是相当有用的。
巴比豆让人很不爽的一些地方

经常打开新窗口
有些js在firefox下无效，导致流程无法继续。比如，某些地方弹出的“选择目录”弹窗，点击所要的目录后没有反应。





No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>在淘宝开了一个网店，店里用的一些图片是ftp上传到一家上海IDC提供的虚拟主机空间上的。这两天发现店里宝贝描述页面上的细节图片打开很慢，于是打算买个相册服务。</p>
<p>从收藏里点了一家五皇冠店，看到他的细节图片都是来自<a href="http://www.babidou.com" target="_blank">巴比豆</a>，我也就去注册了巴比豆的相册服务，缴了十个月的费用。上传图片的时候才发现，这网站实在不怎么好用——流程啊界面啊什么的，都弥满着上个世纪的气息。这才想起<a href="http://www.yupoo.com" target="_blank">yupoo</a>，过去看了一下服务条款，注册了一年的网店VIP服务。</p>
<p>淘宝旺铺支持自定义区块，我在店铺首页header下边加了一块，主要用于公告和发布更新。我是比较乐意使用html来写更新的啦，但我发现很多店铺都是直接使用单张图片来发布信息的。除了图片海报较为美观之外，也可能是因为多数店铺都是对外购买“装修”服务，店内的维护人员并不擅长和html打交道。</p>
<p>我也就试一下这种形式。那么比较正常的流程应该是，我在里边写入一个固定的图片地址。以后有变动时修改图片即可，不必再来更换图片地址。</p>
<p>巴比豆上传图片时有额外的选项，一是使用原文件名或生成随机文件名，如果选择了使用原文件名的话，还可以选择遇到重名文件时是否覆盖。巴比豆的外链地址是形如这样的<br />
http://www39.babidou.com/pic/2008/10/6/user_name/custom_dirname/img_name.jpg</p>
<p>这正好可以满足我的要求。店里某处内容需要更新时，我需要修改本地的图片，选择使用原文件名并覆盖同名文件上传到巴比豆。那么店里自然就更新了。</p>
<p>yupoo上传图片是默认使用随机码，外链地址形如这样<br />
http://pic.yupoo.com/user_name/2108464fbafd/m56q8e2n.jpg<br />
如果使用yupoo的话，我每次修改图片并上传之后，还需做两件事，一是去店里修改自定义模块里html标签里的图片地址，二是，我还得在yupoo删除原来那张图片，因为我已经不需要再用了。</p>
<p>当然，我仍旧会继续使用yupoo的VIP服务，但针对上述需要，我还得再同时使用巴比豆的服务。如果yupoo能在修改图片标题、描述与标签之外，再增加一个替换图片功能，那就更完美了。</p>
<p><strong>UPDATE:</strong></p>
<ul>
<li>yupoo为网店VIP客户提供了一项相当不错的专有服务：批量外链。真是太便利了。但是专门定位于为网店客户服务的巴比豆，另有一个<a href="http://up39.babidou.com/model" target="_blank">宝贝模板服务</a>也很贴心。这种服务于网站而言所费不多，于用户而言，却是相当有用的。</li>
<li>巴比豆让人很不爽的一些地方
<ul>
<li>经常打开新窗口</li>
<li>有些js在firefox下无效，导致流程无法继续。比如，某些地方弹出的“选择目录”弹窗，点击所要的目录后没有反应。</li>
</ul>
</li>
</ul>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://efrees.com/blog/yupoo-upload-pictures-to-support-the-picture-should-be-replaced.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>十年</title>
		<link>http://efrees.com/blog/10-years.html</link>
		<comments>http://efrees.com/blog/10-years.html#comments</comments>
		<pubDate>Thu, 02 Oct 2008 15:39:56 +0000</pubDate>
		<dc:creator>muzik</dc:creator>
		
		<category><![CDATA[Gossip]]></category>

		<guid isPermaLink="false">http://efrees.com/blog/?p=67</guid>
		<description><![CDATA[


No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.google.com/search2001/search?q=%E5%B7%A8%E8%B1%86&#038;hl=en&#038;btnG=Search"><img src="http://efrees.com/blog/wp-content/uploads/2008/10/giantdot.jpg" alt="" title="giantdot" width="500" height="1089" class="alignnone size-full wp-image-68" /></a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://efrees.com/blog/10-years.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>使用XMLRPC发布文章到wordpress</title>
		<link>http://efrees.com/blog/xmlrpc-use-to-publish-articles-wordpress.html</link>
		<comments>http://efrees.com/blog/xmlrpc-use-to-publish-articles-wordpress.html#comments</comments>
		<pubDate>Thu, 02 Oct 2008 08:05:03 +0000</pubDate>
		<dc:creator>muzik</dc:creator>
		
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://efrees.com/blog/?p=63</guid>
		<description><![CDATA[
&#160; &#160;&#160; &#160;$xmlrpcurl='http://efrees.com/blog/xmlrpc.php';
&#160; &#160;&#160; &#160;$username='admin';
&#160; &#160;&#160; &#160;$password='password';
&#160; &#160;&#160; &#160;$postTitle='标题';
&#160; &#160;&#160; &#160;$postContent='正文正文正文';

&#160; &#160;&#160; &#160;require&#40;'class-IXR.php'&#41;;&#160; // /wordpress/wp-includes/class-IXR.php
&#160; &#160;&#160; &#160;$client = new IXR_Client&#40;$xmlrpcurl&#41;;
&#160; &#160;&#160; &#160;
&#160; &#160;&#160; &#160;$params=array&#40;
&#160; &#160;&#160; &#160;&#160; &#160;'',
&#160; &#160;&#160; &#160;&#160; &#160;'blog_ID'=&#62;'n/a',
&#160; &#160;&#160; &#160;&#160; &#160;'user_login'=&#62;$username,
&#160; &#160;&#160; &#160;&#160; &#160;'user_pass'=&#62;$password,
&#160; &#160;&#160; &#160;&#160; &#160;'post_content'=&#62;'&#60;title&#62;' . $postTitle . '&#60;/title&#62;' . $postContent,
&#160; &#160;&#160; &#160;&#160; &#160;'publish'=&#62;true
&#160; &#160;&#160; &#160;&#41;;
&#160; &#160;&#160; &#160;$params=array_values&#40;$params&#41;;

&#160; &#160;&#160; &#160;$client-&#62;query&#40;&#34;blogger.newPost&#34;,$params&#41;;
&#160; &#160;&#160; [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<div class="code php" style="font-family: monospace;"><br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0000ff;">$xmlrpcurl</span>=<span style="color: #ff0000;">'http://efrees.com/blog/xmlrpc.php'</span>;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0000ff;">$username</span>=<span style="color: #ff0000;">'admin'</span>;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0000ff;">$password</span>=<span style="color: #ff0000;">'password'</span>;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0000ff;">$postTitle</span>=<span style="color: #ff0000;">'标题'</span>;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0000ff;">$postContent</span>=<span style="color: #ff0000;">'正文正文正文'</span>;<br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #b1b100;">require</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'class-IXR.php'</span><span style="color: #66cc66;">&#41;</span>;&nbsp; <span style="color: #808080; font-style: italic;">// /wordpress/wp-includes/class-IXR.php</span><br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0000ff;">$client</span> = <span style="color: #000000; font-weight: bold;">new</span> IXR_Client<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$xmlrpcurl</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0000ff;">$params</span>=<a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #ff0000;">''</span>,<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #ff0000;">'blog_ID'</span>=&gt;<span style="color: #ff0000;">'n/a'</span>,<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #ff0000;">'user_login'</span>=&gt;<span style="color: #0000ff;">$username</span>,<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #ff0000;">'user_pass'</span>=&gt;<span style="color: #0000ff;">$password</span>,<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #ff0000;">'post_content'</span>=&gt;<span style="color: #ff0000;">'&lt;title&gt;'</span> . <span style="color: #0000ff;">$postTitle</span> . <span style="color: #ff0000;">'&lt;/title&gt;'</span> . <span style="color: #0000ff;">$postContent</span>,<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #ff0000;">'publish'</span>=&gt;true<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0000ff;">$params</span>=<a href="http://www.php.net/array_values"><span style="color: #000066;">array_values</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$params</span><span style="color: #66cc66;">&#41;</span>;<br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0000ff;">$client</span>-&gt;<span style="color: #006600;">query</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;blogger.newPost&quot;</span>,<span style="color: #0000ff;">$params</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0000ff;">$response</span>=<span style="color: #0000ff;">$client</span>-&gt;<span style="color: #006600;">getResponse</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$response</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'faultCode'</span><span style="color: #66cc66;">&#93;</span>==<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">'Success'</span>;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">'Fail:'</span> . <span style="color: #0000ff;">$response</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'faultString'</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #66cc66;">&#125;</span><br />
<br />
&nbsp;</div>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://efrees.com/blog/xmlrpc-use-to-publish-articles-wordpress.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
