<?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; Tech</title>
	<atom:link href="http://www.yetlive.com/category/tech/feed" rel="self" type="application/rss+xml" />
	<link>http://www.yetlive.com</link>
	<description>活着就好，认真生活每一天</description>
	<lastBuildDate>Fri, 30 Dec 2011 13:17:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to Build a Quote Function in WordPress Theme</title>
		<link>http://www.yetlive.com/post/1104.html</link>
		<comments>http://www.yetlive.com/post/1104.html#comments</comments>
		<pubDate>Wed, 20 Jul 2011 02:23:34 +0000</pubDate>
		<dc:creator>认真生活</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.yetlive.com/?p=1104</guid>
		<description><![CDATA[Some times we need to quote others comments in our comment. So theme builder should consider to build this function in comments template. Here I want to share one solution to Build a Quote Function in WordPress Theme. First, we need to custom comment template in functions.php file. Then put this JS code to your [...]]]></description>
			<content:encoded><![CDATA[<p>Some times we need to quote others comments in our comment. So theme builder should consider to build this function in comments template. Here I want to share one solution to Build a Quote Function in <a href="http://www.yetlive.com/tags/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">WordPress</a> Theme.</p>
<p>First, we need to custom comment template in functions.<a href="http://www.yetlive.com/tags/php" class="st_tag internal_tag" rel="tag" title="标签 php 下的日志">php</a> file.</p>
<p>Then put this JS code to your wordpress theme:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1104code3'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p11043"><td class="code" id="p1104code3"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> $<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">return</span> document<span style="color: #339933;">.</span>getElementById<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
window<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'RE'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
window<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'RE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'$'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> $<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> quote<span style="color: #009900;">&#40;</span>authorId<span style="color: #339933;">,</span> commentId<span style="color: #339933;">,</span> commentBodyId<span style="color: #339933;">,</span> commentBox<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> author <span style="color: #339933;">=</span> RE<span style="color: #339933;">.</span>$<span style="color: #009900;">&#40;</span>authorId<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>innerHTML<span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">var</span> comment <span style="color: #339933;">=</span> RE<span style="color: #339933;">.</span>$<span style="color: #009900;">&#40;</span>commentBodyId<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>innerHTML<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">var</span> insertStr <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&amp;lt; blockquote &amp;gt;'</span><span style="color: #339933;">;</span> insertStr <span style="color: #339933;">+=</span> <span style="color: #0000ff;">'\n&amp;lt; strong&amp;gt;&lt;a href=&quot;#'</span> <span style="color: #339933;">+</span> commentId <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">+</span> author<span style="color: #339933;">.</span>replace<span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span>\t<span style="color: #339933;">|</span>\n<span style="color: #339933;">|</span>\r\n<span style="color: #339933;">/</span>g<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&lt;/a&gt;:'</span><span style="color: #339933;">;</span> insertStr <span style="color: #339933;">+=</span> comment<span style="color: #339933;">.</span>replace<span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span>\t<span style="color: #339933;">/</span>g<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> insertStr <span style="color: #339933;">+=</span> <span style="color: #0000ff;">'&amp;lt; /blockquote&amp;gt;\n'</span><span style="color: #339933;">;</span>
insertQuote<span style="color: #009900;">&#40;</span>insertStr<span style="color: #339933;">,</span> commentBox<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> insertQuote<span style="color: #009900;">&#40;</span>insertStr<span style="color: #339933;">,</span> commentBox<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>RE<span style="color: #339933;">.</span>$<span style="color: #009900;">&#40;</span>commentBox<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> RE<span style="color: #339933;">.</span>$<span style="color: #009900;">&#40;</span>commentBox<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>type <span style="color: #339933;">==</span> <span style="color: #0000ff;">'textarea'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
field <span style="color: #339933;">=</span> RE<span style="color: #339933;">.</span>$<span style="color: #009900;">&#40;</span>commentBox<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> alert<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;The comment box does not exist!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>document<span style="color: #339933;">.</span>selection<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
field<span style="color: #339933;">.</span>focus<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
sel <span style="color: #339933;">=</span> document<span style="color: #339933;">.</span>selection<span style="color: #339933;">.</span>createRange<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
sel<span style="color: #339933;">.</span>text <span style="color: #339933;">=</span> insertStr<span style="color: #339933;">;</span>
field<span style="color: #339933;">.</span>focus<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>field<span style="color: #339933;">.</span>selectionStart <span style="color: #339933;">||</span> field<span style="color: #339933;">.</span>selectionStart <span style="color: #339933;">==</span> <span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">var</span> startPos <span style="color: #339933;">=</span> field<span style="color: #339933;">.</span>selectionStart<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">var</span> endPos <span style="color: #339933;">=</span> field<span style="color: #339933;">.</span>selectionEnd<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">var</span> cursorPos <span style="color: #339933;">=</span> startPos<span style="color: #339933;">;</span>
field<span style="color: #339933;">.</span>value <span style="color: #339933;">=</span> field<span style="color: #339933;">.</span>value<span style="color: #339933;">.</span>substring<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> startPos<span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> insertStr <span style="color: #339933;">+</span> field<span style="color: #339933;">.</span>value<span style="color: #339933;">.</span>substring<span style="color: #009900;">&#40;</span>endPos<span style="color: #339933;">,</span> field<span style="color: #339933;">.</span>value<span style="color: #339933;">.</span>length<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
cursorPos <span style="color: #339933;">+=</span> insertStr<span style="color: #339933;">.</span>length<span style="color: #339933;">;</span>
field<span style="color: #339933;">.</span>focus<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
field<span style="color: #339933;">.</span>selectionStart <span style="color: #339933;">=</span> cursorPos<span style="color: #339933;">;</span>
field<span style="color: #339933;">.</span>selectionEnd <span style="color: #339933;">=</span> cursorPos<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
field<span style="color: #339933;">.</span>value <span style="color: #339933;">+=</span> insertStr<span style="color: #339933;">;</span> field<span style="color: #339933;">.</span>focus<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
window<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'RE_CON'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
window<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'RE_CON'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'quote'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> quote<span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Then put a quote link in comments template.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1104code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p11044"><td class="code" id="p1104code4"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a onclick<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;RE_CON.quote('commentauthor-&lt;?php comment_ID() ?&gt;', '&lt; ?php echo <span style="color: #006699; font-weight: bold;">$add_below</span>-<span style="color: #006699; font-weight: bold;">$comment-&gt;comment_ID</span> ?&gt;', 'body-&lt;?php comment_ID() ?&gt;', 'comment');&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;javascript:void(0);&quot;</span><span style="color: #339933;">&gt;</span> Quote <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p><span style="color: #ff0000;">commentauthor-</span> and <span style="color: #ff0000;">body-</span> should be custom according to your template. You can even find some <a href="http://www.litecoupon.com/" target="_blank">discount coupon codes</a> to purchase software.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yetlive.com/post/1104.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Use Mail To Commenter Plugin in Threaded Comments</title>
		<link>http://www.yetlive.com/post/1102.html</link>
		<comments>http://www.yetlive.com/post/1102.html#comments</comments>
		<pubDate>Sun, 17 Jul 2011 01:22:38 +0000</pubDate>
		<dc:creator>认真生活</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.yetlive.com/?p=1102</guid>
		<description><![CDATA[Last post I told you to make wordpress theme support threaded comments. There is a simple idea. Copy the build-in template. But the idea can not work when you installed Mail to Commenter plugin and still want to use it in your threaded comments supported wordpress themes. So how to solve this problem? I&#8217;ll tell you [...]]]></description>
			<content:encoded><![CDATA[<p>Last post I told you to<a href="http://www.yetlive.com/post/1101.html"> make wordpress theme support threaded comments</a>. There is a simple idea. Copy the build-in template. But the idea can not work when you installed Mail to Commenter plugin and still want to use it in your threaded comments supported <a href="http://www.yetlive.com/tags/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">wordpress</a> themes. So how to solve this problem? I&#8217;ll tell you the solution to use <a href="http://wordpress.org/extend/plugins/mailtocommenter/" target="_blank">Mail to Commenter</a> plugin in threaded comments.</p>
<p>In the \wp-includes\comment-template.<a href="http://www.yetlive.com/tags/php" class="st_tag internal_tag" rel="tag" title="标签 php 下的日志">php</a> you will find the code:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1102code10'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p110210"><td class="code" id="p1102code10"><pre class="php" style="font-family:monospace;">onclick<span style="color: #339933;">=</span><span style="color: #0000ff;">'return addComment.moveForm(\&quot;$add_below-$comment-&amp;gt;comment_ID\&quot;, \&quot;$comment-&amp;gt;comment_ID\&quot;, \&quot;$respond_id\&quot;, \&quot;$post-&amp;gt;ID\&quot;)'</span></pre></td></tr></table></div>

<p>So if you want to use start Mail to Commenters function, you should edit this line. But you should remember one point. You need to judge the threaded comments levels deep. Here is the judgement function:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1102code11'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p110211"><td class="code" id="p1102code11"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$max_depth</span></pre></td></tr></table></div>

<p>So I get the idea now. Mail to Commenter plugin will check the comments if there is a @user or @user: in it. If it find one, it will mail to comment author. So we need to add a Javascript on the “Reply” link. Here is the JS code:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1102code12'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p110212"><td class="code" id="p1102code12"><pre class="php" style="font-family:monospace;">RE_CON<span style="color: #339933;">.</span>reply<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;lt; ?php echo $add_below-$comment-&amp;gt;comment_ID ?&amp;gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&amp;lt; ?php echo $comment-&amp;gt;comment_ID ?&amp;gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'comment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Then you should add this JS code to your theme:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1102code13'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p110213"><td class="code" id="p1102code13"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #003366; font-weight: bold;">function</span> $<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">return</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
window<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'RE'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
window<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'RE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'$'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> $<span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> reply<span style="color: #009900;">&#40;</span>authorId<span style="color: #339933;">,</span> commentId<span style="color: #339933;">,</span> commentBox<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> author <span style="color: #339933;">=</span> RE.$<span style="color: #009900;">&#40;</span>authorId<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> insertStr <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;a href=&quot;#'</span> <span style="color: #339933;">+</span> commentId <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot;&gt;@'</span><span style="color: #339933;">+</span> author.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\t|\n|\r\n/g</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">':&lt;/a&gt; <span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: #339933;">;</span>
	insertReply<span style="color: #009900;">&#40;</span>insertStr<span style="color: #339933;">,</span> commentBox<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> insertReply<span style="color: #009900;">&#40;</span>insertStr<span style="color: #339933;">,</span> commentBox<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>RE.$<span style="color: #009900;">&#40;</span>commentBox<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> RE.$<span style="color: #009900;">&#40;</span>commentBox<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">type</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'textarea'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		field <span style="color: #339933;">=</span> RE.$<span style="color: #009900;">&#40;</span>commentBox<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;The comment box does not exist!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>field.<span style="color: #660066;">value</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span>insertStr<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;You've already appended this reply!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>field.<span style="color: #660066;">value</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\s|\t|\n/g</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		field.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> insertStr<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
		field.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> field.<span style="color: #660066;">value</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/[\n]*$/g</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>'</span> <span style="color: #339933;">+</span> insertStr<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
window<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'RE_CON'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
window<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'RE_CON'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'reply'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> reply<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>After this, we are now able to use Mail to Commenters in our threaded comments. My solution to Use Mail To Commenter Plugin in Threaded Comments is like this:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1102code14'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p110214"><td class="code" id="p1102code14"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> ?php <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'mailtocommenter_button'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>comment_reply_link<span style="color: #009900;">&#40;</span><span style="color: #990000;">array_merge</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$args</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'reply_text'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'Reply'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'depth'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$depth</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'max_depth'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'max_depth'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'mailtocommenter_button'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #000088;">$depth</span>
    <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;comment-reply-link&quot;</span> onclick<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;onclick='return addComment.moveForm(' href=&quot;</span> rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nofollow&quot;</span><span style="color: #339933;">&gt;</span>comment_ID<span style="color: #0000ff;">', '</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$add_below</span><span style="color: #339933;">-</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>comment_ID ?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span><span style="color: #0000ff;">', '</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$respond_id</span> ?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span><span style="color: #0000ff;">', '</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>ID ?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>RE_CON<span style="color: #339933;">.</span>reply<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;lt; ?php echo $add_below-$comment-&amp;gt;comment_ID ?&amp;gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&amp;lt; ?php echo $comment-&amp;gt;comment_ID ?&amp;gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'comment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #0000ff;">&quot;&amp;gt; &amp;lt; ?php _e('Reply'); ?&amp;gt; &lt;/a&gt;
    &amp;lt; ?php } else { ?&amp;gt;
    &lt;a class=&quot;</span>comment<span style="color: #339933;">-</span>reply<span style="color: #339933;">-</span><span style="color: #990000;">link</span><span style="color: #0000ff;">&quot; onclick=&quot;</span>RE_CON<span style="color: #339933;">.</span>reply<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt; ?php echo $add_below-$comment-&gt;comment_ID ?&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt; ?php echo $comment-&gt;comment_ID ?&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'comment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #0000ff;">&quot; href=&quot;</span>javascript<span style="color: #339933;">:</span>void<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #0000ff;">&quot; rel=&quot;</span>nofollow<span style="color: #0000ff;">&quot;&gt; &amp;lt; ?php _e('Reply'); ?&amp;gt; &lt;/a&gt;
    &lt;!--?php }?--&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.yetlive.com/post/1102.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make wordpress theme support threaded comment?</title>
		<link>http://www.yetlive.com/post/1101.html</link>
		<comments>http://www.yetlive.com/post/1101.html#comments</comments>
		<pubDate>Tue, 12 Jul 2011 13:16:36 +0000</pubDate>
		<dc:creator>认真生活</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.yetlive.com/?p=1101</guid>
		<description><![CDATA[WordPress comments template is the most difficult part in building a wordpress theme. When it comes to make a threaded comments supported wordpress theme, comments template becomes more complex. However, there are many users like threaded comment as it show a clear relationship between each comments. There is a simple idea: copy the build-in template if [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.yetlive.com/tags/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">WordPress</a> comments template is the most difficult part in building a <a href="http://www.yetlive.com/tags/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">wordpress</a> theme. When it comes to make a threaded comments supported <a href="http://www.albamedia.net">wordpress</a> theme, comments template becomes more complex. However, there are many users like threaded comment as it show a clear relationship between each comments.</p>
<p>There is a simple idea: copy the build-in template if you are using a wordpress edition 2.7 or later. This methods may makes your template code not so harmonious with other parts. But if you don&#8217;t want to waste too much money on this part, you can use this method by just use the build-in function “<strong>wp_list_comments()</strong>” to display comments.</p>
<p>But I want to customize codes. Here is my solution to build a threaded comments supported wordpress theme.</p>
<p>Define customized comments codes in your wordpress theme file Function.<a href="http://www.yetlive.com/tags/php" class="st_tag internal_tag" rel="tag" title="标签 php 下的日志">php</a>. Then put this code into your comments.<a href="http://www.yetlive.com/tags/php" class="st_tag internal_tag" rel="tag" title="标签 php 下的日志">php</a> file: <strong>wp_list_comments(‘callback=custom_comments’)</strong></p>
<p>In the function.php file, I just added codes as follows:</p>
<pre>  $depth, 'max_depth' =&gt; $args['max_depth']))) ? &gt;</pre>
<p>The last step to show threaded comments is to turn on threaded comments support in “Discussion” tab in worpdress admin panel.</p>
<p>Based on many years of experience, <a href="http://www.lux-time.net/" target="_blank">Panerai Radiomir</a> have now become a top level brand watch. They are prepared to offer you the finest condition watches. It will makes you stand out among your friends.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yetlive.com/post/1101.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Easyphp Can Not Start?</title>
		<link>http://www.yetlive.com/post/1094.html</link>
		<comments>http://www.yetlive.com/post/1094.html#comments</comments>
		<pubDate>Sat, 02 Jul 2011 11:38:12 +0000</pubDate>
		<dc:creator>认真生活</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[免费工具]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://www.yetlive.com/?p=1094</guid>
		<description><![CDATA[Easyphp is a free software used to establish a local PHP+Mysql evironment on computer. It&#8217;s a easy solution for those people who need to test WordPress on local. I have used Easyphp for a long time to test my new developed wordpress themes. It will some times encounter errors. Most common error is that apache [...]]]></description>
			<content:encoded><![CDATA[<p>Easyphp is a free software used to establish a local <a href="http://www.yetlive.com/tags/php" class="st_tag internal_tag" rel="tag" title="标签 php 下的日志">PHP</a>+Mysql evironment on computer. It&#8217;s a easy solution for those people who need to test <a href="http://www.yetlive.com/tags/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">WordPress</a> on local. I have used Easyphp for a long time to test my new developed <a href="http://www.yetlive.com/tags/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">wordpress</a> themes. It will some times encounter errors. Most common error is that apache can not start. Some times, mysql can&#8217;t start too.</p>
<h3>Port 80 conflict</h3>
<p>There may have some other softwares used port 80. You can change the port number of Easyphp.  Select “Configuration”-&gt;”Apache”. Search “Listen 127.0.0.1:80&#8243;. Change “80&#8243; to other port number.</p>
<h3>Notice Unexpected end of apache</h3>
<p>Open error log of <a href="http://www.apache.org/" target="_blank">apache</a>, you may find this:</p>
<blockquote><p>(OS 10022) Child 5316: setup_inherited_listeners(), WSASocket failed to open the inherited socket.</p></blockquote>
<p>If you find a similar error code, you should edit your computer properties. Open “Network Connections”. Right click the “Local Area Connection”. Select “Properties”. Change “Internet Protocol（TCP/IP）” properties. Select “advanced”. Click “WINS” tab. Enable the “LMHOSTS” and “NetBIOS” function.</p>
<p>I noticed one time that Mysql stopped.I just restarted Easyphp and it works.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yetlive.com/post/1094.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed Up Windows XP by Turn Off Useless Services</title>
		<link>http://www.yetlive.com/post/1092.html</link>
		<comments>http://www.yetlive.com/post/1092.html#comments</comments>
		<pubDate>Mon, 27 Jun 2011 04:58:13 +0000</pubDate>
		<dc:creator>认真生活</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Speed Up]]></category>
		<category><![CDATA[操作系统]]></category>

		<guid isPermaLink="false">http://www.yetlive.com/?p=1092</guid>
		<description><![CDATA[For most common users, some of Windows XP build in services is meaningless. For example, the telnet services is not so useful for most people. However, these services will start when the Windows XP start up. It will affect running efficiency on computers with limited hardware resources. So, it&#8217;s better to shut down these useless system [...]]]></description>
			<content:encoded><![CDATA[<p>For most common users, some of Windows XP build in services is meaningless. For example, the telnet services is not so useful for most people. However, these services will start when the Windows XP start up. It will affect running efficiency on computers with limited hardware resources. So, it&#8217;s better to shut down these useless system services manually in order to <a href="http://www.yetlive.com/tags/speed-up" class="st_tag internal_tag" rel="tag" title="标签 Speed Up 下的日志">speed up</a> your Windows OS.</p>
<p>Here I listed some System Services I had turn off on my computer for your convenience.</p>
<p><strong>Alerter</strong>: a windows XP services to alert you that system have encountered error. www.yetlive.com</p>
<p><strong>Error reporting service</strong>: a system service send error report to Microsoft</p>
<p><strong>Event Log</strong>: log system history. (It&#8217;s useful when you are going to find system error)</p>
<p><strong>Help and Support</strong>: the manual book of Windows XP. I think most of you should know how to use Windows XP</p>
<p><strong>IMAPI CD-burning COM service</strong>: a XP service help user burn CDs</p>
<p><strong>Indexing service</strong>: like a content of a book. It help users searching file quickly</p>
<p><strong>Print Spooler</strong>: just for printing. For home users, it may be useless</p>
<p><strong>Telnet</strong>: a service allow user login to your system remote.  It&#8217;s sometimes used by hackers.</p>
<p>Rolex started manufacturing watch from 1937. However, during the following decades, their sales is just so-so. In 1960, they designed their first generation Cosmograph watch. And this new design soon get popular among motorcycle racers. So Rolex renamed the Cosmograph to Cosmograph Daytona. This is the history of <a href="http://www.uk-rolex.com/daytona.htm" target="_blank">rolex daytona</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yetlive.com/post/1092.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Start Gzip in .Htaccess to Speed Up Website</title>
		<link>http://www.yetlive.com/post/1091.html</link>
		<comments>http://www.yetlive.com/post/1091.html#comments</comments>
		<pubDate>Sat, 25 Jun 2011 14:17:14 +0000</pubDate>
		<dc:creator>认真生活</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Speed Up]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.yetlive.com/?p=1091</guid>
		<description><![CDATA[Gzip is to compress your webpage on server in order to speed up your website. It will build a .gz zipped file on your server and then send it to webpage viewers. As the file is zipped, the download time will decrease a little. It also benefit for those websites which got a limited bandwidth. This post [...]]]></description>
			<content:encoded><![CDATA[<p>Gzip is to compress your webpage on server in order to <a href="http://www.yetlive.com/tags/speed-up" class="st_tag internal_tag" rel="tag" title="标签 Speed Up 下的日志">speed up</a> your website. It will build a .gz zipped file on your server and then send it to webpage viewers. As the file is zipped, the download time will decrease a little. It also benefit for those websites which got a limited bandwidth. This post will tell you how to start Gzip by edit .htaccess.</p>
<p>There is a build in function in <a href="http://www.yetlive.com/tags/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">WordPress</a> 2.5 and former edition. But 2.5 and over don&#8217;t added this function. So it&#8217;s the need to start Gzip by yourself. There are also some <a href="http://www.yetlive.com/tags/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">wordpress</a> plugin help users do Gzip. <a href="http://wordpress.org/extend/plugins/wp-super-cache/" target="_blank">Wp-Super-Cache</a> is one of these plugins. However, I don&#8217;t want to cache my index page. So the index page is not Gzipped. And the idea to start Gzip by edit .htaccess will solve this problem.</p>
<p>If your server support &#8216;mod_deflate&#8217; module, you can start Gzip by add this code to .htaccess file:</p>
<blockquote><p>&lt;ifmodule mod_deflate.c&gt;<br />
AddOutputFilter DEFLATE html xml <a href="http://www.yetlive.com/tags/php" class="st_tag internal_tag" rel="tag" title="标签 php 下的日志">php</a> js css<br />
&lt;/ifmodule&gt;</p></blockquote>
<p>If you installed WP Super Cache, you should turn off cache function in order to avoid conflict. I had used this idea on my website. It works fine on my site now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yetlive.com/post/1091.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>提速XP之关闭垃圾服务</title>
		<link>http://www.yetlive.com/post/1039.html</link>
		<comments>http://www.yetlive.com/post/1039.html#comments</comments>
		<pubDate>Wed, 01 Jun 2011 05:06:24 +0000</pubDate>
		<dc:creator>认真生活</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[电脑]]></category>

		<guid isPermaLink="false">http://www.yetlive.com/?p=1039</guid>
		<description><![CDATA[对于普通用户来说，Windows XP的许多服务是没有任何实际意义的，比如远程登录功能等，这些服务平常我们用不到，但它们每次都会随着系统一起启动，这样对于资源紧张的用户来说是个很大的浪费，这时候，就可以将这些服务关闭并设置为手动启动，需要的时候再启动，以达到加速系统运行的结果。以下就列出本人这次重装XP之后关闭的系统服务以供参考： alerter -错误警报器，据我的理解就是程序出错报告的一个功能 Error reporting service -错误报告器，把windows中错误报告给微软 Event Log - 系统日志纪录服务，很有用于查找系统毛病,对于菜鸟级别的人就没必要了 help and support -帮助功能，不要也罢 IMAPI CD-burning COM service　-xp刻牒服务，按需关闭 Indexing service -系统索引的一个服务，就相当于书的目录之类的功能，似乎是在搜索文档时能加快搜索速度，个人觉得无用 Print Spooler -打印机用的，没有打印机的用户就可以关闭了 Telnet- 远程登录的东西，开启之后可以在其他地方登录你自己的机器，普通用户应该很少用到，目前我还只是公司电脑上见过有需要用到这个的 其他很多服务也是可以关闭的，就看自己需要了，至于说到如何关闭系统服务，你可以使用Windows 优化大师。当然也可以右键点击“我的电脑图标”，选择“管理”，进入“服务和应用程序”的“服务”项查看或设置服务启动规则。]]></description>
			<content:encoded><![CDATA[<p>对于普通用户来说，Windows XP的许多服务是没有任何实际意义的，比如远程登录功能等，这些服务平常我们用不到，但它们每次都会随着系统一起启动，这样对于资源紧张的用户来说是个很大的浪费，这时候，就可以将这些服务关闭并设置为手动启动，需要的时候再启动，以达到加速系统运行的结果。以下就列出本人这次重装XP之后关闭的系统服务以供参考：<span id="more-1039"></span></p>
<p>alerter -错误警报器，据我的理解就是程序出错报告的一个功能</p>
<p>Error reporting service -错误报告器，把windows中错误报告给微软</p>
<p>Event Log - 系统日志纪录服务，很有用于查找系统毛病,对于菜鸟级别的人就没必要了</p>
<p>help and support -帮助功能，不要也罢</p>
<p>IMAPI CD-burning COM service　-xp刻牒服务，按需关闭</p>
<p>Indexing service -系统索引的一个服务，就相当于书的目录之类的功能，似乎是在搜索文档时能加快搜索速度，个人觉得无用</p>
<p>Print Spooler -打印机用的，没有打印机的用户就可以关闭了</p>
<p>Telnet- 远程登录的东西，开启之后可以在其他地方登录你自己的机器，普通用户应该很少用到，目前我还只是公司电脑上见过有需要用到这个的</p>
<p>其他很多服务也是可以关闭的，就看自己需要了，至于说到如何关闭系统服务，你可以使用Windows 优化大师。当然也可以右键点击“我的电脑图标”，选择“管理”，进入“服务和应用程序”的“服务”项查看或设置服务启动规则。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yetlive.com/post/1039.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>买链接不如买付费评论</title>
		<link>http://www.yetlive.com/post/1067.html</link>
		<comments>http://www.yetlive.com/post/1067.html#comments</comments>
		<pubDate>Thu, 20 Jan 2011 15:09:38 +0000</pubDate>
		<dc:creator>认真生活</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[搜索引擎]]></category>

		<guid isPermaLink="false">http://www.yetlive.com/?p=1067</guid>
		<description><![CDATA[不管是国内还是国外，付费购买链接的现象不少，而另一个情况是，目前国内付费评论市场则是非常的萧条，Feedsky的付费评论可能各位一年都接不到一个，国外付费评论的情况稍微好点机会多一点，简单的从这样的现象，似乎我们可以得出这样的结论：链接购买对于SEO的作用会比付费评论更明显。不过就我而言，购买付费评论对于SEO的作用可能比购买链接的作用会更好、更长久。 对于付费链接，无非是按月付费，要么首页要么全站，似乎国内更多的是买全站链接，而老外则更喜欢买首页或其他单页的链接。然而无论何种形式，总归是付费一结束瞬间撤销所有链接，而购买付费评论，则通常博主都会对其保留，毕竟一篇付费评论也是付出了劳动的原创作品，对于博客总归还是有所好处的。所以从这个简单的分析上来说，我认为购买链接的时候，不如多多考虑购买付费链接。 前几天，我了解到一个据说是BackLinks.com同门的http://www.postlinks.com，该平台同样是一个建设外链的平台，用户在这里购买内文链接，并且按月付费给站长。根据网站的介绍，PR1的站每篇赚每月0.05，PR2～0.25，PR3～0.5，PR4～1，PR5～2。价格并不是很高，而且，据我的习惯来说，即使用户停止付费，我也是很懒的去删除这样一篇付费评论的。单从该平台的出现来说，我想已经可以证明外链建设已经有向购买付费评论的方向探索的趋势。 对于我来说，我认为付费有另外一层好处。读者可能还记得我在从.Co.Cc推广注册量看单页广告效益一文中讨论到的转化率的问题，从这样一种转化率的关系来看，内文链接的转化率还是比较高的，也就是说，对于一个产品站，购买了付费频率之后，不仅是获得了一个外链，而且也是获得了更多的潜在客户。 另外，我想，搜索引擎算法对于简单的链接或者说无上下文的链接给予的权重已经越来越低，而对于文章内部链接给予的权重相对提升，这一点，也是付费评论建设外链的一点优势。 当然，付费评论的缺点也是明显的，通常付费评论都是一次付费，且费用都比较高，所以一次性成本投入还是比较大的，当然，Postlinks提供了一种很好的探索，而且其提供的链接都是自动发布文章，这样站长无需自己写文章，于是实际上能够为节省成本提供一种可供选择的方案，比较值得期待。]]></description>
			<content:encoded><![CDATA[<p>不管是国内还是国外，付费购买链接的现象不少，而另一个情况是，目前国内付费评论市场则是非常的萧条，Feedsky的付费评论可能各位一年都接不到一个，国外付费评论的情况稍微好点机会多一点，简单的从这样的现象，似乎我们可以得出这样的结论：链接购买对于SEO的作用会比付费评论更明显。不过就我而言，购买付费评论对于SEO的作用可能比购买链接的作用会更好、更长久。<span id="more-1067"></span></p>
<p>对于付费链接，无非是按月付费，要么首页要么全站，似乎国内更多的是买全站链接，而老外则更喜欢买首页或其他单页的链接。然而无论何种形式，总归是付费一结束瞬间撤销所有链接，而购买付费评论，则通常博主都会对其保留，毕竟一篇付费评论也是付出了劳动的原创作品，对于博客总归还是有所好处的。所以从这个简单的分析上来说，我认为购买链接的时候，不如多多考虑购买付费链接。</p>
<p>前几天，我了解到一个据说是BackLinks.com同门的<a href="http://www.postlinks.com/" target="_blank">http://www.postlinks.com</a>，该平台同样是一个建设外链的平台，用户在这里购买内文链接，并且按月付费给站长。根据网站的介绍，PR1的站每篇赚每月0.05，PR2～0.25，PR3～0.5，PR4～1，PR5～2。价格并不是很高，而且，据我的习惯来说，即使用户停止付费，我也是很懒的去删除这样一篇付费评论的。单从该平台的出现来说，我想已经可以证明外链建设已经有向购买付费评论的方向探索的趋势。</p>
<p>对于我来说，我认为付费有另外一层好处。读者可能还记得我在<a title="Permanent Link to 从.co.cc推广注册量看单页广告效益" rel="bookmark" href="http://www.yetlive.com/post/co-cc-ads-difference.html">从.Co.Cc推广注册量看单页广告效益</a>一文中讨论到的转化率的问题，从这样一种转化率的关系来看，内文链接的转化率还是比较高的，也就是说，对于一个产品站，购买了付费频率之后，不仅是获得了一个外链，而且也是获得了更多的潜在客户。</p>
<p>另外，我想，搜索引擎算法对于简单的链接或者说无上下文的链接给予的权重已经越来越低，而对于文章内部链接给予的权重相对提升，这一点，也是付费评论建设外链的一点优势。</p>
<p>当然，付费评论的缺点也是明显的，通常付费评论都是一次付费，且费用都比较高，所以一次性成本投入还是比较大的，当然，Postlinks提供了一种很好的探索，而且其提供的链接都是自动发布文章，这样站长无需自己写文章，于是实际上能够为节省成本提供一种可供选择的方案，比较值得期待。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yetlive.com/post/1067.html/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>

