<?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>博客联盟</title>
	<atom:link href="http://blogunion.org/feed" rel="self" type="application/rss+xml" />
	<link>http://blogunion.org</link>
	<description>含博客技巧，博客赚钱，博客推广优化，博客营销，博客工具，博客资讯以及wordpress相关的内容。</description>
	<lastBuildDate>Sat, 03 Jul 2010 16:07:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>求助：WordPress博客被人一周内入侵了N次</title>
		<link>http://blogunion.org/log/ask-for-help.html</link>
		<comments>http://blogunion.org/log/ask-for-help.html#comments</comments>
		<pubDate>Fri, 25 Jun 2010 12:26:51 +0000</pubDate>
		<dc:creator>老曾</dc:creator>
				<category><![CDATA[博主日记]]></category>
		<category><![CDATA[WordPress被黑]]></category>
		<category><![CDATA[博客被黑]]></category>

		<guid isPermaLink="false">http://blogunion.org/?p=1211</guid>
		<description><![CDATA[如题，俺的一个WordPress博客被人一周内入侵了N次，全是挂的私服站以及魔兽金币站的链接。 我已经试过重装WordPress，更换模板（使用的是WordPress默认模板），重装插件，更改密码，删除admin账... ]]></description>
			<content:encoded><![CDATA[<p>如题，俺的一个WordPress博客被人一周内入侵了N次，全是挂的私服站以及魔兽金币站的链接。</p>
<p>我已经试过重装WordPress，更换模板（使用的是WordPress默认模板），重装插件，更改密码，删除admin账号，更改ftp密码，可是还是不停的被人入侵。每次都是刚改完，隔天就被人又挂上了一堆的链接。</p>
<p>最窝火的是昨天晚上，我这头正在改，一刷新，发现又被人挂了一堆的链接。实在搞不掂了，只好来发帖求助。如果有谁知道如何解决这个问题的，可否告之解决办法？如果比较麻烦的话，可否加我Q，先谢过了。</p>
<p>2010年6月30日1:42:13更新：</p>
<p>最近事情太多了，忘了上来更新。换了空间后，过了几天，没有再出现被入侵的情况。多谢各位留言的朋友。</p>
<p>2010年6月26日13:02:30更新：</p>
<p>今天又被黑了， 只不过这次更狠，直接把首页替换掉了。又是index.php 被修改，代码如下：</p>
<p><a href="http://blogunion.org/wp-content/uploads/2010/06/WordPress-haacked-2.jpg"><img src="http://blogunion.org/wp-content/uploads/2010/06/WordPress-haacked-2.jpg" alt="" title="WordPress haacked 2" width="458" height="374" class="aligncenter size-full wp-image-1214" /></a></p>
<p><strong>2010年6月25日22:25:07更新：</strong></p>
<p>这次是直接把script代码加入到wp-blog-header.php文件里面。代码如下：</p>
<p><a href="http://blogunion.org/wp-content/uploads/2010/06/WordPress-haacked.jpg"><img src="http://blogunion.org/wp-content/uploads/2010/06/WordPress-haacked.jpg" alt="" title="WordPress haacked" width="388" height="48" class="aligncenter size-full wp-image-1213" /></a><br />
sj<br />
<h3>相关文章阅读</h3>
<ul class="related_post"></ul>
]]></content:encoded>
			<wfw:commentRss>http://blogunion.org/log/ask-for-help.html/feed</wfw:commentRss>
		<slash:comments>80</slash:comments>
		</item>
		<item>
		<title>28个非常有用的WordPress 主题函数使用技巧（4）</title>
		<link>http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-4.html</link>
		<comments>http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-4.html#comments</comments>
		<pubDate>Tue, 15 Jun 2010 13:45:36 +0000</pubDate>
		<dc:creator>老曾</dc:creator>
				<category><![CDATA[wordpress使用技巧]]></category>
		<category><![CDATA[WordPress 主题函数]]></category>
		<category><![CDATA[WordPress 函数]]></category>

		<guid isPermaLink="false">http://blogunion.org/?p=1210</guid>
		<description><![CDATA[接前3篇： 28个非常有用的WordPress 主题函数使用技巧（1） 28个非常有用的WordPress 主题函数使用技巧（2） 28个非常有用的WordPress 主题函数使用技巧（3） 注：本文提到的代码均必须加到 functions.p... ]]></description>
			<content:encoded><![CDATA[<p>接前3篇：</p>
<p><a href="http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks.html" target="_blank">28个非常有用的WordPress 主题函数使用技巧（1）</a></p>
<p><a href="http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-2.html" target="_blank">28个非常有用的WordPress 主题函数使用技巧（2）</a></p>
<p><a href="http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-3.html" target="_blank">28个非常有用的WordPress 主题函数使用技巧（3）</a></p>
<p>注：本文提到的代码均必须加到 functions.php 文件里面。注意代码里面涉及到网址，邮件等内容可以自行替换。</p>
<p><strong>22，启用paypal 捐赠简码</strong></p>
<p>当你写完一篇以后，可以在文章里面插入paypal 捐赠按钮，方便读者捐赠。以下的代码可以让你非常轻松的做到这一点。</p>
<div class="hl-surround"><div class="hl-main">function donate_shortcode( $atts ) {<br />&nbsp;&nbsp; &nbsp;extract(shortcode_atts(array(<br />&nbsp;&nbsp; &nbsp;'text' =&gt; 'Make a donation',<br />&nbsp;&nbsp; &nbsp;'account' =&gt; 'REPLACE ME',<br />&nbsp;&nbsp; &nbsp;'for' =&gt; '',<br />&nbsp;&nbsp; &nbsp;), $atts));<br /><br />&nbsp;&nbsp; &nbsp;global $post;<br /><br />&nbsp;&nbsp; &nbsp;if (!$for) $for = str_replace(&quot; &quot;,&quot; &quot;,$post-&gt;post_title);<br /><br />&nbsp;&nbsp; &nbsp;return '&lt;a class=&quot;donateLink&quot; href=&quot;https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business='.$account.'&amp;item_name=Donation for '.$for.'&quot;&gt;'.$text.'&lt;/a&gt;';<br /><br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;add_shortcode('donate', 'donate_shortcode');</div></div>
<p><strong>23，设定文章从发布到出现在RSS中的时间长短</strong></p>
<p>通过RSS订阅来阅读博文的朋友可能都会有这个体验：经常发现RSS中的文字或者细节有错误，而返回到页面的时候却发现错误已经没有了。这种情况最有可能是因为</p>
<p>RSS最大的好处是快捷、直接，但这个最大的好处有时候对作者来说却会引发某些尴尬。所以，有时候有必要让文章发布后到读者从RSS中按到有一个小小的时间差，方便作者排查某些问题。以下的代码可以做到以下几点：</p>
<div class="hl-surround"><div class="hl-main">function publish_later_on_feed($where) {<br />&nbsp;&nbsp; &nbsp;global $wpdb;<br /><br />&nbsp;&nbsp; &nbsp;if ( is_feed() ) {<br />&nbsp;&nbsp; &nbsp;// timestamp in WP-format<br />&nbsp;&nbsp; &nbsp;$now = gmdate(‘Y-m-d H:i:s’);<br /><br />&nbsp;&nbsp; &nbsp;// value for wait; + device<br />&nbsp;&nbsp; &nbsp;$wait = ‘10′; // integer<br /><br />&nbsp;&nbsp; &nbsp;// http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_timestampdiff<br />&nbsp;&nbsp; &nbsp;$device = ‘MINUTE’; //MINUTE, HOUR, DAY, WEEK, MONTH, YEAR<br /><br />&nbsp;&nbsp; &nbsp;// add SQL-sytax to default $where<br />&nbsp;&nbsp; &nbsp;$where .= ” AND TIMESTAMPDIFF($device, $wpdb-&gt;posts.post_date_gmt, ‘$now’) &gt; $wait “;<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;return $where;<br />&nbsp;&nbsp; &nbsp;}<br /><br />&nbsp;&nbsp; &nbsp;add_filter(‘posts_where’, ‘publish_later_on_feed’);</div></div>
<p>这段代码设置的时间是10分钟，你可以把10改成任何你想要的时间。</p>
<p><strong>24，自定义摘要输出时的符号</strong></p>
<p>一般设定自动摘要输出，你会经常在WordPress博客的首页看到“[...]”这样的符号。为了界面的美观，或者是个性化的需要，你可以把这个默认的符号改变为其他的符号。而以下的代码就是为了实现这个而写：</p>
<div class="hl-surround"><div class="hl-main">// custom excerpt ellipses for 2.9<br />&nbsp;&nbsp; &nbsp;function custom_excerpt_more($more) {<br />&nbsp;&nbsp; &nbsp;return '…';<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;add_filter('excerpt_more', 'custom_excerpt_more');<br /><br />&nbsp;&nbsp; &nbsp;/* custom excerpt ellipses for 2.8-<br />&nbsp;&nbsp; &nbsp;function custom_excerpt_more($excerpt) {<br />&nbsp;&nbsp; &nbsp;return str_replace('[...]', '…', $excerpt);<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;add_filter('wp_trim_excerpt', 'custom_excerpt_more');<br />&nbsp;&nbsp; &nbsp;*/</div></div>
<p><strong>25，自定义摘要输出的文字长度</strong></p>
<p>假如你比较懒，不想在撰写文章的时候每篇文章都输入摘要，就可以让系统自动截取一定长度的文字来作为摘要输出。下面的代码默认是100个字节，也就是50个汉字。你可以把数值修改成符合你需要的数字。</p>
<div class="hl-surround"><div class="hl-main">function new_excerpt_length($length) {<br />&nbsp;&nbsp; &nbsp;return 100;<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;add_filter('excerpt_length', 'new_excerpt_length');</div></div>
<p><strong>26，显示精确评论数</strong></p>
<p>WordPress默认是把trackbacks 和 pings 都算作评论的，因此当你设置不显示trackbacks 和 ping的时候，评论数看起来总是不对头。以下的代码则以让WordPress只计算评论的数量，而不把trackbacks 和 pings也计算进去。</p>
<div class="hl-surround"><div class="hl-main">add_filter('get_comments_number', 'comment_count', 0);<br />&nbsp;&nbsp; &nbsp;function comment_count( $count ) {<br />&nbsp;&nbsp; &nbsp;if ( ! is_admin() ) {<br />&nbsp;&nbsp; &nbsp;global $id;<br />&nbsp;&nbsp; &nbsp;$comments_by_type = &amp;separate_comments(get_comments('status=approve&amp;post_id=' . $id));<br />&nbsp;&nbsp; &nbsp;return count($comments_by_type['comment']);<br />&nbsp;&nbsp; &nbsp;} else {<br />&nbsp;&nbsp; &nbsp;return $count;<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;}</div></div>
<p><strong>27，取消RSS输出</strong></p>
<p>对于某些博客而言，或者因为被太多人采集了，或者因为不想让别人通过RSS订阅，想取消RSS输出。WordPress默认是没有这个功能的，但你可以通过以下的代码来取消RSS输出。</p>
<div class="hl-surround"><div class="hl-main">function fb_disable_feed() {<br />&nbsp;&nbsp; &nbsp;wp_die( __('No feed available,please visit our &lt;a href=&quot;'. get_bloginfo('url') .'&quot;&gt;homepage&lt;/a&gt;!') );<br />&nbsp;&nbsp; &nbsp;}<br /><br />&nbsp;&nbsp; &nbsp;add_action('do_feed', 'fb_disable_feed', 1);<br />&nbsp;&nbsp; &nbsp;add_action('do_feed_rdf', 'fb_disable_feed', 1);<br />&nbsp;&nbsp; &nbsp;add_action('do_feed_rss', 'fb_disable_feed', 1);<br />&nbsp;&nbsp; &nbsp;add_action('do_feed_rss2', 'fb_disable_feed', 1);<br />&nbsp;&nbsp; &nbsp;add_action('do_feed_atom', 'fb_disable_feed', 1);</div></div>
<p><strong>28，显示Twitter 的订阅数以及其他资料</strong></p>
<p>Twitter系统以及很多第三方的客户端都可以让你在WordPress博客的侧边栏暂时Twitter的订阅数以及一些其他的资料。这种做法往往很多时候都没办法跟博客已有的界面结合的很好。而以下的代码则可以让你自定义Twitter 在博客上的显示外观。</p>
<div class="hl-surround"><div class="hl-main">function rarst_twitter_user( $username, $field, $display = false ) {<br />&nbsp;&nbsp; &nbsp;$interval = 3600;<br />&nbsp;&nbsp; &nbsp;$cache = get_option('rarst_twitter_user');<br />&nbsp;&nbsp; &nbsp;$url = 'http://api.twitter.com/1/users/show.json?screen_name='.urlencode($username);<br /><br />&nbsp;&nbsp; &nbsp;if ( false == $cache )<br />&nbsp;&nbsp; &nbsp;$cache = array();<br /><br />&nbsp;&nbsp; &nbsp;// if first time request add placeholder and force update<br />&nbsp;&nbsp; &nbsp;if ( !isset( $cache[$username][$field] ) ) {<br />&nbsp;&nbsp; &nbsp;$cache[$username][$field] = NULL;<br />&nbsp;&nbsp; &nbsp;$cache[$username]['lastcheck'] = 0;<br />&nbsp;&nbsp; &nbsp;}<br /><br />&nbsp;&nbsp; &nbsp;// if outdated<br />&nbsp;&nbsp; &nbsp;if( $cache[$username]['lastcheck'] &lt; (time()-$interval) ) {<br /><br />&nbsp;&nbsp; &nbsp;// holds decoded JSON data in memory<br />&nbsp;&nbsp; &nbsp;static $memorycache;<br /><br />&nbsp;&nbsp; &nbsp;if ( isset($memorycache[$username]) ) {<br />&nbsp;&nbsp; &nbsp;$data = $memorycache[$username];<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;else {<br />&nbsp;&nbsp; &nbsp;$result = wp_remote_retrieve_body(wp_remote_request($url));<br />&nbsp;&nbsp; &nbsp;$data = json_decode( $result );<br />&nbsp;&nbsp; &nbsp;if ( is_object($data) )<br />&nbsp;&nbsp; &nbsp;$memorycache[$username] = $data;<br />&nbsp;&nbsp; &nbsp;}<br /><br />&nbsp;&nbsp; &nbsp;if ( is_object($data) ) {<br />&nbsp;&nbsp; &nbsp;// update all fields, known to be requested<br />&nbsp;&nbsp; &nbsp;foreach ($cache[$username] as $key =&gt; $value)<br />&nbsp;&nbsp; &nbsp;if( isset($data-&gt;$key) )<br />&nbsp;&nbsp; &nbsp;$cache[$username][$key] = $data-&gt;$key;<br /><br />&nbsp;&nbsp; &nbsp;$cache[$username]['lastcheck'] = time();<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;else {<br />&nbsp;&nbsp; &nbsp;$cache[$username]['lastcheck'] = time()+60;<br />&nbsp;&nbsp; &nbsp;}<br /><br />&nbsp;&nbsp; &nbsp;update_option( 'rarst_twitter_user', $cache );<br />&nbsp;&nbsp; &nbsp;}<br /><br />&nbsp;&nbsp; &nbsp;if ( false != $display )<br />&nbsp;&nbsp; &nbsp;echo $cache[$username][$field];<br />&nbsp;&nbsp; &nbsp;return $cache[$username][$field];<br />&nbsp;&nbsp; &nbsp;}</div></div>
<p>把上面的代码复制到 functions.php后，再把下面代码复制到你想出现的地方即可。<br />
Then place the following code where you want to display the count in your theme file:</p>
<div class="hl-surround"><div class="hl-main">echo rarst_twitter_user('wpbeginner', 'name').' has '.<br />&nbsp;&nbsp; &nbsp;rarst_twitter_user('wpbeginner', 'followers_count').' followers after '.<br />&nbsp;&nbsp; &nbsp;rarst_twitter_user('wpbeginner', 'statuses_count').' updates.';</div></div>
<h3>相关文章阅读</h3>
<ul class="related_post">
<li>2010年06月12日 &#8212; <a href="http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-3.html" title="28个非常有用的WordPress 主题函数使用技巧（3）">28个非常有用的WordPress 主题函数使用技巧（3） (1)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-4.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>28个非常有用的WordPress 主题函数使用技巧（3）</title>
		<link>http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-3.html</link>
		<comments>http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-3.html#comments</comments>
		<pubDate>Sat, 12 Jun 2010 15:37:40 +0000</pubDate>
		<dc:creator>老曾</dc:creator>
				<category><![CDATA[wordpress使用技巧]]></category>
		<category><![CDATA[WordPress functions]]></category>
		<category><![CDATA[WordPress 主题函数]]></category>

		<guid isPermaLink="false">http://blogunion.org/?p=1208</guid>
		<description><![CDATA[接前两篇： 28个非常有用的WordPress 主题函数使用技巧（1） 28个非常有用的WordPress 主题函数使用技巧（1） 注：本文提到的代码均必须加到 functions.php 文件里面。注意代码里面涉及到网址，邮件... ]]></description>
			<content:encoded><![CDATA[<p>接前两篇：</p>
<p><a href="http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks.html" target="_blank">28个非常有用的WordPress 主题函数使用技巧（1）</a></p>
<p><a href="http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-2.html" target="_blank">28个非常有用的WordPress 主题函数使用技巧（1）</a></p>
<p>注：本文提到的代码均必须加到 functions.php 文件里面。注意代码里面涉及到网址，邮件等内容可以自行替换。</p>
<p><strong>15，优化Wordpress 博客的RSS</strong></p>
<p>如何在RSS里面加入版权链接？如何在RSS加入广告？针对国内互联网的现状，在RSS里面加入版权尤为重要，广告倒是次要的。</p>
<p>除了插件（Better Feed）以外，可以采用以下的方法来实现。</p>
<div class="hl-surround"><div class="hl-main">function wpbeginner_postrss($content) {<br />&nbsp;&nbsp; &nbsp;if(is_feed()){<br />&nbsp;&nbsp; &nbsp;$content = 'This post was written by Syed Balkhi '.$content.'Check out WPBeginner';<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;return $content;<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;add_filter('the_excerpt_rss', 'wpbeginner_postrss');<br />&nbsp;&nbsp; &nbsp;add_filter('the_content', 'wpbeginner_postrss');</div></div>
<p><strong>16，给RSS添加缩略图</strong></p>
<p>缩略图一般是在正常的博客页面上用来起到美化界面的作用。当然，如果需要的话，也可以给RSS内容增加一个缩略图。要做到这一点，只需要在functions.php 里面加入如下代码：</p>
<div class="hl-surround"><div class="hl-main">function rss_post_thumbnail($content) {<br />&nbsp;&nbsp; &nbsp;global $post;<br />&nbsp;&nbsp; &nbsp;if(has_post_thumbnail($post-&gt;ID)) {<br />&nbsp;&nbsp; &nbsp;$content = '&lt;p&gt;' . get_the_post_thumbnail($post-&gt;ID) .<br />&nbsp;&nbsp; &nbsp;'&lt;/p&gt;' . get_the_content();<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;return $content;<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;add_filter('the_excerpt_rss', 'rss_post_thumbnail');<br />&nbsp;&nbsp; &nbsp;add_filter('the_content_feed', 'rss_post_thumbnail');</div></div>
<p><strong>17，开启WordPress评论嵌套功能。</strong></p>
<p>评论嵌套功能是WordPress自身带有的最好功能之一，只可惜很多WordPress模板都不支持。很多文章都有提到过修改的方法，但一般都涉及到修改comments文件和header文件。事实上，通过修改functions.php文件来修改是最简便的，而且一劳永逸。</p>
<div class="hl-surround"><div class="hl-main">// enable threaded comments<br />&nbsp;&nbsp; &nbsp;function enable_threaded_comments(){<br />&nbsp;&nbsp; &nbsp;if (!is_admin()) {<br />&nbsp;&nbsp; &nbsp;if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1))<br />&nbsp;&nbsp; &nbsp;wp_enqueue_script('comment-reply');<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;add_action('get_header', 'enable_threaded_comments');</div></div>
<p><strong>18，移除WordPress登陆面板的错误提示</strong></p>
<p>当你输入的密码或者用户名错误的时候，WordPress登陆界面会给出相应的提示。但如果碰到黑客的话，这些提示反而给了他们更好的提示，让他们更容易破解用户名和密码。因此，处于安全性考虑，移除WordPress登陆面板的错误提示是非常必要的。</p>
<div class="hl-surround"><div class="hl-main">add_filter('login_errors',create_function('$a', &quot;return null;&quot;));</div></div>
<p><strong>19，关闭WordPress的搜索功能</strong></p>
<p>当把WordPress当做CMS系统来使用的时候，WordPress自带的搜索功能实用性就不是太强了。一来增加数据库查询次数，二来Google 自定义搜索会是更好的替代。因此，你只需要通过以下的代码就可以关闭WordPress的搜索功能。</p>
<div class="hl-surround"><div class="hl-main">function fb_filter_query( $query, $error = true ) {<br /><br />&nbsp;&nbsp; &nbsp;if ( is_search() ) {<br />&nbsp;&nbsp; &nbsp;$query-&gt;is_search = false;<br />&nbsp;&nbsp; &nbsp;$query-&gt;query_vars[s] = false;<br />&nbsp;&nbsp; &nbsp;$query-&gt;query[s] = false;<br /><br />&nbsp;&nbsp; &nbsp;// to error<br />&nbsp;&nbsp; &nbsp;if ( $error == true )<br />&nbsp;&nbsp; &nbsp;$query-&gt;is_404 = true;<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;}<br /><br />&nbsp;&nbsp; &nbsp;add_action( 'parse_query', 'fb_filter_query' );<br />&nbsp;&nbsp; &nbsp;add_filter( 'get_search_form', create_function( '$a', &quot;return null;&quot; ) );</div></div>
<p><strong>20，启用WordPress简码功能</strong></p>
<p>Google AdSense 算是博客的标配之一了，很多CMS经常会在模板选项里面预置Google AdSense的广告位。假如你的模板不支持，你可以通过以下的方法来解决：</p>
<div class="hl-surround"><div class="hl-main">function showads() {<br />&nbsp;&nbsp; &nbsp;return '&lt;div id=&quot;adsense&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!–<br />&nbsp;&nbsp; &nbsp;google_ad_client = &quot;pub-XXXXXXXXXXXXXX&quot;;<br />&nbsp;&nbsp; &nbsp;google_ad_slot = &quot;4668915978&quot;;<br />&nbsp;&nbsp; &nbsp;google_ad_width = 468;<br />&nbsp;&nbsp; &nbsp;google_ad_height = 60;<br />&nbsp;&nbsp; &nbsp;//–&gt;<br />&nbsp;&nbsp; &nbsp;&lt;/script&gt;<br /><br />&nbsp;&nbsp; &nbsp;&lt;script type=&quot;text/javascript&quot;<br />&nbsp;&nbsp; &nbsp;src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;<br />&nbsp;&nbsp; &nbsp;&lt;/script&gt;&lt;/div&gt;';<br />&nbsp;&nbsp; &nbsp;}<br /><br />&nbsp;&nbsp; &nbsp;add_shortcode('adsense', 'showads');</div></div>
<p>21，不通过.htaccess将rss地址唯一化</p>
<p>WordPress本身提供好几个不同版本的rss地址，加入你又使用了FeedBurner或者feedsky的话，RSS地址就会更多。太多的RSS容易分流订阅客户，而且也不利于品牌推广。</p>
<p>一般的修改方法是通过更改.htaccess来进行，此外，还可以通过以下的代码来实现。</p>
<div class="hl-surround"><div class="hl-main">function custom_feed_link($output, $feed) {<br /><br />&nbsp;&nbsp; &nbsp;$feed_url = 'http://feeds.feedburner.com/wpbeginner';<br /><br />&nbsp;&nbsp; &nbsp;$feed_array = array('rss' =&gt; $feed_url, 'rss2' =&gt; $feed_url, 'atom' =&gt; $feed_url, 'rdf' =&gt; $feed_url, 'comments_rss2' =&gt; '');<br />&nbsp;&nbsp; &nbsp;$feed_array[$feed] = $feed_url;<br />&nbsp;&nbsp; &nbsp;$output = $feed_array[$feed];<br /><br />&nbsp;&nbsp; &nbsp;return $output;<br />&nbsp;&nbsp; &nbsp;}<br /><br />&nbsp;&nbsp; &nbsp;function other_feed_links($link) {<br /><br />&nbsp;&nbsp; &nbsp;$link = 'http://feeds.feedburner.com/wpbeginner';<br />&nbsp;&nbsp; &nbsp;return $link;<br /><br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;//Add our functions to the specific filters<br />&nbsp;&nbsp; &nbsp;add_filter('feed_link','custom_feed_link', 1, 2);<br />&nbsp;&nbsp; &nbsp;add_filter('category_feed_link', 'other_feed_links');<br />&nbsp;&nbsp; &nbsp;add_filter('author_feed_link', 'other_feed_links');<br />&nbsp;&nbsp; &nbsp;add_filter('tag_feed_link','other_feed_links');<br />&nbsp;&nbsp; &nbsp;add_filter('search_feed_link','other_feed_links');</div></div>
<h3>相关文章阅读</h3>
<ul class="related_post">
<li>2010年06月15日 &#8212; <a href="http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-4.html" title="28个非常有用的WordPress 主题函数使用技巧（4）">28个非常有用的WordPress 主题函数使用技巧（4） (10)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-3.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>28个非常有用的WordPress 主题函数使用技巧（2）</title>
		<link>http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-2.html</link>
		<comments>http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-2.html#comments</comments>
		<pubDate>Wed, 09 Jun 2010 02:17:24 +0000</pubDate>
		<dc:creator>老曾</dc:creator>
				<category><![CDATA[wordpress使用技巧]]></category>
		<category><![CDATA[WordPress主题函数]]></category>
		<category><![CDATA[WordPress函数]]></category>
		<category><![CDATA[WordPress技巧]]></category>

		<guid isPermaLink="false">http://blogunion.org/?p=1206</guid>
		<description><![CDATA[接上篇：28个非常有用的WordPress 主题函数使用技巧（1） 原文25+ Extremely Useful Tricks for the WordPress Functions File非常长，博客联盟将会分成四篇来发。 8，让WordPress底部的版权时间显示的更生动 很多... ]]></description>
			<content:encoded><![CDATA[<p>接上篇：<a href="http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks.html" target="_blank">28个非常有用的WordPress 主题函数使用技巧（1）</a></p>
<p>原文<a href="http://www.wpbeginner.com/wp-tutorials/25-extremely-useful-tricks-for-the-wordpress-functions-file/" target="_blank">25+ Extremely Useful Tricks for the WordPress Functions File</a>非常长，<a href="http://blogunion.org/">博客联盟</a>将会分成四篇来发。</p>
<p><strong>8，让WordPress底部的版权时间显示的更生动</strong></p>
<p>很多网站的版权时间都显示的是建站时的年份，有些则是显示当下的年份。事实上，这两种方式都不是太好。</p>
<p>最好的方式是显示从网站建设之初的年份到目前的年份位置，类似© 2006 – 2010这种显示方式。</p>
<p>这种效果通过以下的代码可以实现。添加完下面的代码后，系统会自动抓取发布第一篇文章的年份以及最新一篇文章的年份，并把它显示出来。</p>
<div class="hl-surround"><div class="hl-main">function comicpress_copyright() {<br />&nbsp;&nbsp; &nbsp;global $wpdb;<br />&nbsp;&nbsp; &nbsp;$copyright_dates = $wpdb-&gt;get_results(&quot;<br />&nbsp;&nbsp; &nbsp;SELECT<br />&nbsp;&nbsp; &nbsp;YEAR(min(post_date_gmt)) AS firstdate,<br />&nbsp;&nbsp; &nbsp;YEAR(max(post_date_gmt)) AS lastdate<br />&nbsp;&nbsp; &nbsp;FROM<br />&nbsp;&nbsp; &nbsp;$wpdb-&gt;posts<br />&nbsp;&nbsp; &nbsp;WHERE<br />&nbsp;&nbsp; &nbsp;post_status = 'publish'<br />&nbsp;&nbsp; &nbsp;&quot;);<br />&nbsp;&nbsp; &nbsp;$output = '';<br />&nbsp;&nbsp; &nbsp;if($copyright_dates) {<br />&nbsp;&nbsp; &nbsp;$copyright = &quot;&amp;copy; &quot; . $copyright_dates[0]-&gt;firstdate;<br />&nbsp;&nbsp; &nbsp;if($copyright_dates[0]-&gt;firstdate != $copyright_dates[0]-&gt;lastdate) {<br />&nbsp;&nbsp; &nbsp;$copyright .= '-' . $copyright_dates[0]-&gt;lastdate;<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;$output = $copyright;<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;return $output;<br />&nbsp;&nbsp; &nbsp;}</div></div>
<p>把上面的代码添加到了functions.php文件里面后，还需要在 footer.php 任何你想显示版权时间的地方加上如下代码：</p>
<div class="hl-surround"><div class="hl-main">&lt;?php echo comicpress_copyright(); ?&gt;</div></div>
<p><strong>9，给读者投稿文章添加姓名/来源</strong></p>
<p>如果你的博客接受读者的投稿，想在该篇文章出现投稿者的姓名，同时又不想通过添加作者的这种繁琐而麻烦的方式来操作，则可以使用下面的代码。使用下面的代码后，只需要在撰写文章的时候在自定义区域填上投稿者的姓名即可。系统会自动将发布者的名称换成投稿者的名称。</p>
<p>这个代码对接受读者投稿较多的网站，或者是资讯型的网站非常有用（利用它来显示来源）。</p>
<div class="hl-surround"><div class="hl-main">add_filter( 'the_author', 'guest_author_name' );<br />&nbsp;&nbsp; &nbsp;add_filter( 'get_the_author_display_name', 'guest_author_name' );<br /><br />&nbsp;&nbsp; &nbsp;function guest_author_name( $name ) {<br />&nbsp;&nbsp; &nbsp;global $post;<br /><br />&nbsp;&nbsp; &nbsp;$author = get_post_meta( $post-&gt;ID, 'guest-author', true );<br /><br />&nbsp;&nbsp; &nbsp;if ( $author )<br />&nbsp;&nbsp; &nbsp;$name = $author;<br /><br />&nbsp;&nbsp; &nbsp;return $name;<br />&nbsp;&nbsp; &nbsp;}</div></div>
<p><strong>10，启用文章缩略图功能</strong></p>
<p>从WordPress2.9版本开始，可以给模板添加文章缩略图功能。操作方法很简单，只需要把下面的代码添加到functions.php里面。</p>
<div class="hl-surround"><div class="hl-main">add_theme_support( 'post-thumbnails' );</div></div>
<p>然后在要显示缩略图的地方放置下面的代码即可。</p>
<div class="hl-surround"><div class="hl-main">&lt;?php the_post_thumbnail(); ?&gt;</div></div>
<p><strong>11，自定义WordPress 3.0 版本导航栏</strong></p>
<p>WordPress 3.0 增加了一个功能，可以让WordPress模板开发者自定义导航菜单。如果你想给用户一个导航栏的选择权，只需要把下面的代码加入到 functions.php 文件里面。</p>
<div class="hl-surround"><div class="hl-main">add_theme_support( 'nav-menus' );</div></div>
<p>之后把下面的代码复制到你想出新的地方：</p>
<div class="hl-surround"><div class="hl-main">&lt;?php wp_nav_menu( array( 'sort_column' =&gt; 'menu_order', 'container_class' =&gt; 'menu-header' ) ); ?&gt;</div></div>
<p><strong>12，移除WordPress默认的个人资料选项</strong></p>
<p>如果你客户的想让用户可以自行添加个人资料，那么需要让这个选项更简单。其中一个方法就是移除部分选项，AIM, Yahoo IM 和 Jabber 之类的东东。</p>
<div class="hl-surround"><div class="hl-main">add_filter('user_contactmethods','hide_profile_fields',10,1);<br /><br />&nbsp;&nbsp; &nbsp;function hide_profile_fields( $contactmethods ) {<br />&nbsp;&nbsp; &nbsp;unset($contactmethods['aim']);<br />&nbsp;&nbsp; &nbsp;unset($contactmethods['jabber']);<br />&nbsp;&nbsp; &nbsp;unset($contactmethods['yim']);<br />&nbsp;&nbsp; &nbsp;return $contactmethods;<br />&nbsp;&nbsp; &nbsp;}</div></div>
<p><strong>13，添加作者个人资料选项</strong></p>
<p>如果你想更充分的展示作者的个人资料，那么你可以添加一些更个性化的资料选项，例如添加twitter 和 facebook账号等。下面的代码就是添加twitter 和 facebook账号用的。当然，你可以把里面的内容替换成其他任何你想展示的资料。这个对多博客作者尤其有用。</p>
<div class="hl-surround"><div class="hl-main">function my_new_contactmethods( $contactmethods ) {<br />&nbsp;&nbsp; &nbsp;// Add Twitter<br />&nbsp;&nbsp; &nbsp;$contactmethods['twitter'] = 'Twitter';<br />&nbsp;&nbsp; &nbsp;//add Facebook<br />&nbsp;&nbsp; &nbsp;$contactmethods['facebook'] = 'Facebook';<br /><br />&nbsp;&nbsp; &nbsp;return $contactmethods;<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;add_filter('user_contactmethods','my_new_contactmethods',10,1);</div></div>
<p>添加完是上面的代码后，你需要在author.php文件里面添加如下的代码：</p>
<div class="hl-surround"><div class="hl-main">&lt;?php echo $curauth-&gt;twitter; ?&gt;</div></div>
<p>注意：改代码仅在WordPress2.9以上的版本起作用。</p>
<p><strong>14，添加侧边栏小模块</strong></p>
<p>这是目前用的最多的技巧之一，很多WordPress模板开发者都已经知道，并且在用了。</p>
<div class="hl-surround"><div class="hl-main">if ( function_exists('register_sidebar') )<br />&nbsp;&nbsp; &nbsp;register_sidebar(array('name'=&gt;'MiddleSidebar',<br />&nbsp;&nbsp; &nbsp;'before_widget' =&gt; '&lt;li class=&quot;widget&quot;&gt;',<br />&nbsp;&nbsp; &nbsp;'after_widget' =&gt; '&lt;/li&gt;',<br />&nbsp;&nbsp; &nbsp;'before_title' =&gt; '&lt;h2 class=&quot;widgettitle&quot;&gt;',<br />&nbsp;&nbsp; &nbsp;'after_title' =&gt; '&lt;/h3&gt;',<br />&nbsp;&nbsp; &nbsp;));<br />&nbsp;&nbsp; &nbsp;register_sidebar(array('name'=&gt;'FooterSidebar',<br />&nbsp;&nbsp; &nbsp;'before_widget' =&gt; '&lt;li class=&quot;widget&quot;&gt;',<br />&nbsp;&nbsp; &nbsp;'after_widget' =&gt; '&lt;/li&gt;',<br />&nbsp;&nbsp; &nbsp;'before_title' =&gt; '&lt;h2 class=&quot;widgettitle&quot;&gt;',<br />&nbsp;&nbsp; &nbsp;'after_title' =&gt; '&lt;/h3&gt;',<br />&nbsp;&nbsp; &nbsp;));</div></div>
<p>上面的代码可以增加两个侧边栏的小模块。以此类推，你可以添加无限多侧边栏的小模块。添加完上面的代码后，你需要把下面的代码添加到你要出现这边小模块的地方。</p>
<div class="hl-surround"><div class="hl-main">&lt;?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('MiddleSidebar') ) : ?&gt;<br />&nbsp;&nbsp; &nbsp;&lt;!–Default sidebar info goes here–&gt;<br />&nbsp;&nbsp; &nbsp;&lt;?php endif; ?&gt;</div></div>
<p>注意：侧边栏并不一定需要出现在sidebar.php文件里面。<br />
<h3>相关文章阅读</h3>
<ul class="related_post">
<li>2010年06月08日 &#8212; <a href="http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks.html" title="28个非常有用的WordPress 主题函数使用技巧（1）">28个非常有用的WordPress 主题函数使用技巧（1） (1)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-2.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>28个非常有用的WordPress 主题函数使用技巧（1）</title>
		<link>http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks.html</link>
		<comments>http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks.html#comments</comments>
		<pubDate>Tue, 08 Jun 2010 15:15:28 +0000</pubDate>
		<dc:creator>老曾</dc:creator>
				<category><![CDATA[wordpress使用技巧]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[WordPress主题函数]]></category>
		<category><![CDATA[WordPress函数]]></category>

		<guid isPermaLink="false">http://blogunion.org/?p=1205</guid>
		<description><![CDATA[WordPress主题一般有一系列的php文件和一个style. css文件，而其中功能最为强大的文件则是functions. php。WordPress 有非常多的常用函数，你可以通过添加和删除一些函数来增加WordPress主题的功能，而... ]]></description>
			<content:encoded><![CDATA[<p>WordPress主题一般有一系列的php文件和一个style. css文件，而其中功能最为强大的文件则是functions. php。WordPress 有非常多的常用函数，你可以通过添加和删除一些函数来增加WordPress主题的功能，而不需要修改任何的主题文件。</p>
<p>本文的目标读者是WordPress 主题开发者，需要懂一些基本的PHP知识。另，下文提到的所有代码都必须添加到functions. php文件里面。</p>
<p>博客联盟注：原文很长，将分成好几篇来发。</p>
<p><strong>1，添加Google Analytics 统计</strong></p>
<p>只需要把下面的代码添加到functions. php文件里面——注意把里面的中文部分替换成你的Google 统计代码，然后你就不用担心了。</p>
<div class="hl-surround"><div class="hl-main">&lt;?php<br />&nbsp;&nbsp; &nbsp;add_action('wp_footer', 'add_googleanalytics');<br />&nbsp;&nbsp; &nbsp;function add_googleanalytics() { ?&gt;<br />&nbsp;&nbsp; &nbsp;// 把Google 统计代码复制到这里<br />&nbsp;&nbsp; &nbsp;&lt;?php } ?&gt;</div></div>
<p><strong>2，给WordPress 博客添加一个 Favicon 图标。</strong></p>
<p>每一个博客都应该有一个独一无二的标志，你可以通过添加代码到header.php来实现。当然，你也可以通过添加代码到functions.php来实现。添加完下面的代码后，只需要把Favicon.ico文件上传到网站根目录即可。</p>
<div class="hl-surround"><div class="hl-main">// add a favicon to your<br />&nbsp;&nbsp; &nbsp;function blog_favicon() {<br />&nbsp;&nbsp; &nbsp;echo '&lt;link rel=&quot;Shortcut Icon&quot; type=&quot;image/x-icon&quot; href=&quot;'.get_bloginfo('wpurl').'/favicon.ico&quot; /&gt;';<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;add_action('wp_head', 'blog_favicon');</div></div>
<p><strong>3，移除WordPress版本号。</strong></p>
<p>WordPress有新版本出来后，总会在后台提示管理员进行升级。但假如你是给客户制作网站，而他们又不想升级的话，最好的办法就是从WordPress 头部、RSS里面以及其他任何地方移除版本的信息。</p>
<div class="hl-surround"><div class="hl-main">function wpbeginner_remove_version() {<br />&nbsp;&nbsp; &nbsp;return '';<br />&nbsp;&nbsp; &nbsp;}<br />&nbsp;&nbsp; &nbsp;add_filter('the_generator', 'wpbeginner_remove_version');</div></div>
<p><strong>4，给WordPress控制面板添加自定义logo</strong></p>
<p>用WordPress给客户制作网站，如果给WordPress的控制面板后台添加一个自定义logo，则会让网站显的专业很多。要做到这一点，你只需要把代码添加到functions.php即可。</p>
<div class="hl-surround"><div class="hl-main">//hook the administrative header output<br />&nbsp;&nbsp; &nbsp;add_action('admin_head', 'my_custom_logo');<br /><br />&nbsp;&nbsp; &nbsp;function my_custom_logo() {<br />&nbsp;&nbsp; &nbsp;echo '<br />&nbsp;&nbsp; &nbsp;&lt;style type=&quot;text/css&quot;&gt;<br />&nbsp;&nbsp; &nbsp;#header-logo { background-image: url('.get_bloginfo('template_directory').'/images/custom-logo.gif) !important; }<br />&nbsp;&nbsp; &nbsp;&lt;/style&gt;<br />&nbsp;&nbsp; &nbsp;';<br />&nbsp;&nbsp; &nbsp;}</div></div>
<p><strong>5，改变WordPress后台控制面板底部信息</strong></p>
<p>如上所述，如果不想让客户知道网站是由WordPress制作，则可以修改WordPress控制面板底部的信息，只需要把下面的代码添加到 functions.php文件即可。</p>
<p>You can change the footer of your Free or Custom WordPress themes by adding the necessary links. Simply paste the following code:</p>
<div class="hl-surround"><div class="hl-main">function remove_footer_admin () {<br />&nbsp;&nbsp; &nbsp;echo 'Fueled by &lt;a href=&quot;http://www.wordpress.org&quot; target=&quot;_blank&quot;&gt;WordPress&lt;/a&gt; | Designed by &lt;a href=&quot;http://www.uzzz.net&quot; target=&quot;_blank&quot;&gt;Uzzz Productions&lt;/a&gt; | WordPress Tutorials: &lt;a href=&quot;http://www.wpbeginner.com&quot; target=&quot;_blank&quot;&gt;WPBeginner&lt;/a&gt;&lt;/p&gt;';<br />&nbsp;&nbsp; &nbsp;}<br /><br />&nbsp;&nbsp; &nbsp;add_filter('admin_footer_text', 'remove_footer_admin');</div></div>
<p>注：代码里面的html部分可以修改。</p>
<p><strong>6，自定义WordPress控制面板模块</strong></p>
<p>一些WordPress插件会在控制面板那里添加一些模块来显示相应的信息，作为一个WordPress模板设计者，你也可以通过修改functions.php文件来实现这个功能。注意替换里面的相应信息。</p>
<div class="hl-surround"><div class="hl-main">add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');<br /><br />&nbsp;&nbsp; &nbsp;function my_custom_dashboard_widgets() {<br />&nbsp;&nbsp; &nbsp;global $wp_meta_boxes;<br /><br />&nbsp;&nbsp; &nbsp;wp_add_dashboard_widget('custom_help_widget', 'Theme Support', 'custom_dashboard_help');<br />&nbsp;&nbsp; &nbsp;}<br /><br />&nbsp;&nbsp; &nbsp;function custom_dashboard_help() {<br />&nbsp;&nbsp; &nbsp;echo '&lt;p&gt;Welcome to Custom Blog Theme! Need help? Contact the developer &lt;a href=&quot;mailto:yourusername@gmail.com&quot;&gt;here&lt;/a&gt;. For WordPress Tutorials visit: &lt;a href=&quot;http://www.wpbeginner.com&quot; target=&quot;_blank&quot;&gt;WPBeginner&lt;/a&gt;&lt;/p&gt;';<br />&nbsp;&nbsp; &nbsp;}</div></div>
<p><strong>7，改变默认的 Gravatar 头像</strong></p>
<p>WordPress程序默认的 Gravatar 头像很不咋地，而且到处都是千篇一律的默认头像一点都无法体现独特性。你可以把以下代码添加到functions.php文件里面，然后记得把自定义的  Gravatar 头像上传到WordPress模板的images文件夹。</p>
<div class="hl-surround"><div class="hl-main">add_filter( 'avatar_defaults', 'newgravatar' );<br /><br />&nbsp;&nbsp; &nbsp;function newgravatar ($avatar_defaults) {<br />&nbsp;&nbsp; &nbsp;$myavatar = get_bloginfo('template_directory') . '/images/gravatar.gif';<br />&nbsp;&nbsp; &nbsp;$avatar_defaults[$myavatar] = &quot;WPBeginner&quot;;<br />&nbsp;&nbsp; &nbsp;return $avatar_defaults;<br />&nbsp;&nbsp; &nbsp;}</div></div>
<p>原文：<a href="http://www.wpbeginner.com/wp-tutorials/25-extremely-useful-tricks-for-the-wordpress-functions-file/" target="_blank">25+ Extremely Useful Tricks for the WordPress Functions File</a></p>
<p>翻译：<a href="http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks.html" target="_blank">28个非常有用的WordPress 主题函数使用技巧（1）</a><br />
<h3>相关文章阅读</h3>
<ul class="related_post">
<li>2010年06月09日 &#8212; <a href="http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks-2.html" title="28个非常有用的WordPress 主题函数使用技巧（2）">28个非常有用的WordPress 主题函数使用技巧（2） (5)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogunion.org/wordpress/wordpress-tips/28-wordpress-functions-tricks.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>小流量一样可以赚大钱</title>
		<link>http://blogunion.org/money/make-big-money-with-a-small-audience.html</link>
		<comments>http://blogunion.org/money/make-big-money-with-a-small-audience.html#comments</comments>
		<pubDate>Mon, 07 Jun 2010 23:20:40 +0000</pubDate>
		<dc:creator>老曾</dc:creator>
				<category><![CDATA[博客赚钱]]></category>
		<category><![CDATA[小流量赚大钱]]></category>

		<guid isPermaLink="false">http://blogunion.org/?p=1204</guid>
		<description><![CDATA[我需要更多的RSS订阅人数！我需要更多的流量！！我需要更多的微博听众！！！人们总是很热衷于数字竞赛。多即是好，对吧？ 我们总是想让我们的生意做的更大，博客做的更大。但并不是所... ]]></description>
			<content:encoded><![CDATA[<p>我需要更多的RSS订阅人数！我需要更多的流量！！我需要更多的微博听众！！！人们总是很热衷于数字竞赛。多即是好，对吧？</p>
<p>我们总是想让我们的生意做的更大，博客做的更大。但并不是所有数字上的增长都是有益的，有的时候盲目的增长甚至是痛苦的、不利的。</p>
<p>多并不意味着一定好！1000个关注着你一举一动的读者和100000个来了就走的读者，你会选哪一类？流量越多并不一定越好。流量增加是好的，但如果99%的流量并没有任何后续的动作就离开了，这有何作用？拥有几个终身的客户与拥有几千个看了一眼就关闭页面的读者，你会选哪一个？</p>
<p>多大才是所谓的“足够大”？你有没有考虑过这一点？我相信有不少的人正在后悔，宁愿自己的生意小一点，简单一点。</p>
<p>但我要声明一点：数量的增加不一定是坏事。数量的增加是自然的行为。如果你的产品或者服务确实是一流的，如果你的内容是海量的，如果你确实花了非常多的时间来建立可靠的关系，如果你知道如何有效的营销自己，数量不增加都难。</p>
<p>但事实上，我们可以做的更好。怎么做？</p>
<p><strong>少做，但做出精品。</strong>与其出一堆毫无出彩的作品，不如认真的做几件令人惊艳的作品，反而能够更好的提高知名度。</p>
<p><strong>提供高质量的产品和服务。</strong>如果你的产品只卖20美金，那么你需要很多的客户。但如果你提供的产品价值非常高，非常有效（例如咨询顾问和私人培训业务），那么你只需要几个客户就可以了。</p>
<p><strong>建立更密切的联系。</strong>通过电话聊五分钟，比你在微博上联系五个月的联系还要紧密。通过电话甚至见面联系的越多，你们的关系就越密切。</p>
<p><strong>做可供口碑传播的生意</strong>。一旦开始关注人，而不是关注数字，那么更多的人会通过口碑找到你。当然，这意味着你必须提供物超所值的服务。</p>
<p><strong>让自己更容易被找到。</strong>很多人总是和需要他提供服务的对象保持着遥远的距离。要想和他取得联系，必须先通过邮件，再通过即时通讯软件，再通过电话，最后才能找到人。把自己包装的很像大人物，但事实上这是非常不明智的。联系越复杂，生意成功的可能性就越低。</p>
<p>有的时候，小即时好，简单即时美。有的时候，越简单越赚钱。</p>
<p>原文：<a href="http://www.copyblogger.com/small-audience/" target="_blank">How to Build a Successful Business With a Small Audience</a></p>
<p>译文：<a href="http://blogunion.org/money/make-big-money-with-a-small-audience.html" target="_blank">小流量一样可以赚大钱</a><br />
<h3>相关文章阅读</h3>
<ul class="related_post">
<li>2009年09月25日 &#8212; <a href="http://blogunion.org/money/xun6.html" title="博客下载赚钱必备利器：讯6">博客下载赚钱必备利器：讯6 (60)</a></li>
<li>2008年03月27日 &#8212; <a href="http://blogunion.org/money/confused-by-alimama-sanbao.html" title="阿里妈妈的三包计划到底是为谁服务的？">阿里妈妈的三包计划到底是为谁服务的？ (22)</a></li>
<li>2008年03月25日 &#8212; <a href="http://blogunion.org/money/6-key-factors-for-making-money-with-blog.html" title="博客赚钱的六大关键要素分析">博客赚钱的六大关键要素分析 (15)</a></li>
<li>2008年03月18日 &#8212; <a href="http://blogunion.org/money/9-make-money-forums.html" title="推荐9个网赚论坛">推荐9个网赚论坛 (45)</a></li>
<li>2008年03月17日 &#8212; <a href="http://blogunion.org/money/clickvalue.html" title="博客赚钱：达闻联盟营销">博客赚钱：达闻联盟营销 (16)</a></li>
<li>2008年03月15日 &#8212; <a href="http://blogunion.org/money/tips-for-making-more-money-from-affiliate-programs.html" title="如何从联署计划营销获得尽可能多的收入？">如何从联署计划营销获得尽可能多的收入？ (19)</a></li>
<li>2008年03月11日 &#8212; <a href="http://blogunion.org/money/cpm-cpc-cpa-or-cps.html" title="CPM，CPC，CPA，CPS，哪一种适合你？">CPM，CPC，CPA，CPS，哪一种适合你？ (15)</a></li>
<li>2008年03月10日 &#8212; <a href="http://blogunion.org/money/chanet.html" title="博客赚钱：成果网">博客赚钱：成果网 (28)</a></li>
<li>2008年01月27日 &#8212; <a href="http://blogunion.org/money/30-ideas-to-work-through-the-web.html" title="本周之星：精品博客—30种可供选择的网络职业">本周之星：精品博客—30种可供选择的网络职业 (12)</a></li>
<li>2008年01月24日 &#8212; <a href="http://blogunion.org/money/the-reality-about-blogging-for-money.html" title="你所不知道的博客赚钱的真相">你所不知道的博客赚钱的真相 (32)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogunion.org/money/make-big-money-with-a-small-audience.html/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>不会Photoshop也可给照片加特效 35个在线图片处理网站推荐</title>
		<link>http://blogunion.org/blogging-tools/35-free-online-photo-editors.html</link>
		<comments>http://blogunion.org/blogging-tools/35-free-online-photo-editors.html#comments</comments>
		<pubDate>Mon, 07 Jun 2010 12:39:41 +0000</pubDate>
		<dc:creator>老曾</dc:creator>
				<category><![CDATA[博客工具]]></category>
		<category><![CDATA[图片处理网站]]></category>
		<category><![CDATA[照片处理]]></category>
		<category><![CDATA[照片特效]]></category>

		<guid isPermaLink="false">http://blogunion.org/?p=1203</guid>
		<description><![CDATA[对于很多人来说，学Photoshop已经是一件痛苦的事情。更痛苦的事情是即使你花了N多时间学会了基本的操作，很多常见的照片特效却依旧很难处理出来。看着一张照片，打开Photoshop，却不知如何... ]]></description>
			<content:encoded><![CDATA[<p>对于很多人来说，学Photoshop已经是一件痛苦的事情。更痛苦的事情是即使你花了N多时间学会了基本的操作，很多常见的照片特效却依旧很难处理出来。看着一张照片，打开Photoshop，却不知如何下手——世界上最痛苦的事情莫过于此。</p>
<p>幸好互联网总是能给我们惊喜。对于不会Photoshop的人而言，通过<a href="http://www.webdesignbooth.com/35-online-photo-editors-to-help-you-editing-photo-online/" target="_blank">web design booth</a>推荐的35个在线处理图片的网站，一样可以处理出非常专业的照片。</p>
<p><a title="Picnik" href="http://www.picnik.com/" target="_blank">Picnik</a>：非常简单，一键处理，让照片看起来更漂亮。</p>
<p><a title="Splashup" href="http://www.splashup.com/" target="_blank">Splashup</a>：可以同时批处理多张图片。</p>
<p><a title="FotoFlexer" href="http://fotoflexer.com/" target="_blank">FotoFlexer</a>：目前网上功能最强大的图片在线处理网站。</p>
<p><a title="Improve Your Images" href="http://www.improveyourimages.com/" target="_blank">Improve Your  Images</a>：可以储存、修正和美化照片。</p>
<p><a title="Photoshop.com" href="http://www.photoshop.com/" target="_blank">Photoshop.com</a>：在线图片处理网站。</p>
<p><a title="Aviary" href="http://aviary.com/" target="_blank">Aviary</a>：这个网站不仅仅可以在线处理图片，还可以在线处理音频和视频。</p>
<p><a title="FlauntR" href="http://www.flauntr.com/" target="_blank">FlauntR</a>：这个图片在线处理网站有许多的功能，可以试一下。</p>
<p><a title="Pixlr" href="http://www.pixlr.com/editor/" target="_blank">Pixlr</a>：可以创建图片，也可以从电脑和链接读取照片。</p>
<p><a title="Sumo Paint" href="http://www.sumopaint.com/home/" target="_blank">Sumo Paint</a>：这个网站处理图片最强大的功能是他的模糊滤镜和马赛克功能。</p>
<p><a title="PicMagick" href="http://www.picmagick.com/" target="_blank">PicMagick</a>：免费的在线处理图片网站，有一些特效。</p>
<p><a title="DrPic" href="http://www.drpic.com/" target="_blank">DrPic</a>：轻松几步，可以让你的图片变得难以置信。</p>
<p><a title="Pixenate" href="http://pixenate.com/" target="_blank">Pixenate</a>：可以让图片处理更简单。</p>
<p><a title="Snipshot" href="http://snipshot.com/" target="_blank">Snipshot</a>：可以让图片看起来更漂亮。</p>
<p><a title="Picture2Life" href="http://www.picture2life.com/" target="_blank">Picture2Life</a>：可以让图片看起来很精致。</p>
<p><a title="Lunapic" href="http://www.lunapic.com/editor/" target="_blank">Lunapic</a>：专门用来处理Facebook 和 Myspace的个人头像。</p>
<p><a title="72photos" href="http://72photos.com/" target="_blank">72photos</a>：可以让上传的图片自定义显示。</p>
<p><a title="Cellsea" href="http://www.cellsea.com/media/index.htm" target="_blank">Cellsea</a>：这个网站有一些特效可以让你的图片看起来很诡异，很奇怪。</p>
<p><a title="Online Phototool.Com" href="http://www.onlinephototool.com/" target="_blank">Online  Phototool.Com</a>：图片在线处理网站之一。</p>
<p><a title="MyImager" href="http://www.myimager.com/" target="_blank">MyImager</a>：可以让图片变得更美观的网站之一。</p>
<p><a title="Pikipimp" href="http://www.pikipimp.com/" target="_blank">Pikipimp</a>：在线处理图片网站。</p>
<p><a title="Online Image Editor" href="http://www.onlineimageeditor.info/" target="_blank">Online Image  Editor</a>：在线图片处理网站，有一些独一无二的特效。</p>
<p><a title="Fun Photo Box" href="http://funphotobox.com/" target="_blank">Fun Photo Box</a>：搞笑图片在线处理网站。</p>
<p><a title="Imagic Photo" href="http://www.imagic-photo.com/" target="_blank">Imagic Photo</a>：可以让图片变得更专业。</p>
<p><a title="Photo505" href="http://www.photo505.com/" target="_blank">Photo505</a>：可以给图片加上可爱和搞笑的特效。</p>
<p><a title="Loonapix" href="http://www.loonapix.com/" target="_blank">Loonapix</a>：给图片加上搞笑效果的在线图片处理网站。</p>
<p><a title="WriteOnIt" href="http://www.writeonit.org/" target="_blank">WriteOnIt</a>：可以给照片加上蒙太奇效果，也可以把图片处理成明信片，杂志封面或者搞笑图片等。</p>
<p><a title="MagMyPic" href="http://www.magmypic.com/" target="_blank">MagMyPic</a>：可以将图片处理成杂志的封面，就像明星一样。</p>
<p><a title="Hairmixer" href="http://www.hairmixer.com/" target="_blank">Hairmixer</a>：可以给照片上的人加上任意一种发型，或者脸形——例如你喜欢的明星。</p>
<p><a title="Big Huge Labs" href="http://bighugelabs.com/" target="_blank">Big Huge Labs</a>：可以给图片加上很多很酷的效果。</p>
<p><a title="jpgFun" href="http://jpgfun.com/" target="_blank">jpgFun</a>：有很多特效，可以给照片加上很漂亮的外观。</p>
<p><a title="Photvisi" href="http://www.photovisi.com/" target="_blank">Photvisi</a>：可以把照片处理成拼贴画。</p>
<p><a title="Fotocrib" href="http://www.fotocrib.com/" target="_blank">Fotocrib</a>：可以给照片加上3D特效。</p>
<p><a title="Blingee" href="http://blingee.com/" target="_blank">Blingee</a>：可以给照片加上光环、评论以及之类的东西。</p>
<p><a title="Web Photo Resizer" href="http://www.webresizer.com/" target="_blank">Web Photo Resizer</a>：可以重设图片大小的网站。</p>
<p><a title="Preloadr" href="http://www.preloadr.com/" target="_blank">Preloadr</a>：有很多专业工具处理图片。<br />
<h3>相关文章阅读</h3>
<ul class="related_post"></ul>
]]></content:encoded>
			<wfw:commentRss>http://blogunion.org/blogging-tools/35-free-online-photo-editors.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>推荐5款 Linux 服务器日志文件查看器</title>
		<link>http://blogunion.org/blogging-tools/5-linux-logfile-viewers.html</link>
		<comments>http://blogunion.org/blogging-tools/5-linux-logfile-viewers.html#comments</comments>
		<pubDate>Sun, 06 Jun 2010 13:32:27 +0000</pubDate>
		<dc:creator>老曾</dc:creator>
				<category><![CDATA[博客工具]]></category>
		<category><![CDATA[KSystemLog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[multitail]]></category>
		<category><![CDATA[swatch]]></category>
		<category><![CDATA[System Log Viewer]]></category>
		<category><![CDATA[Xlogmaster]]></category>
		<category><![CDATA[日志文件查看器]]></category>
		<category><![CDATA[服务器日志]]></category>

		<guid isPermaLink="false">http://blogunion.org/?p=1202</guid>
		<description><![CDATA[服务器日志是由服务器创建和更新的日志文件。一个常见的例子是Apache（开源Web服务器软件）生成的访问日志，它提供了网页请求的历史。然而，Apache不只是收集访问的信息，它还为错误日志... ]]></description>
			<content:encoded><![CDATA[<p>服务器日志是由服务器创建和更新的日志文件。一个常见的例子是Apache（开源Web服务器软件）生成的访问日志，它提供了网页请求的历史。然而，Apache不只是收集访问的信息，它还为错误日志收集相关信息，以及收集ID文件进程，脚本记录和读写日志等。</p>
<p>一台服务器可能会生成多个日志文件，检查日志可以获得服务器活动和性能的反馈，去识别和解决可能将出现的问题。但系统管理员可能会因此面临信息过载，检查日志是一个相当耗时的工作。因此日志文件查看器可以帮助减轻工作压力，过滤掉日志中的多余信息。（via <a href="http://linux.solidot.org/article.pl?sid=10/06/06/0530213" target="_blank">solidot</a>）</p>
<p>以下是 <a href="http://www.linuxlinks.com/article/20100603155736857/LogfileViewers.html" target="_blank">Linux Links</a> 推荐的五款服务器日志查看器。</p>
<h3>multitail</h3>
<p>multitail可以把一个控制台窗口分割为多个部分，可以在控制台查看多个日志文件。</p>
<p>Linux 日志文件查看软件multitai下载<a href="http://www.vanheusden.com/multitail/download.html" target="_blank">点这里</a>。</p>
<h3>System Log Viewer</h3>
<p>System Log Viewer 是一款非常直观的日志查看软件，它可以让你方便的管理和展示日志文件。</p>
<h3>KSystemLog</h3>
<p>KSystemLog 是来自KDE的日志查看器。这个程序是给不懂如何找他们 Linux 系统信息和不清楚日志（log）文件位置的初级用户开发的。</p>
<p>KSystemLog 有下列特点 :</p>
<p>显示你系统所有的日志，按常规（默认系统日志、认证日志、内容日志、X.org日志&#8230;），和可选服务（Apache、Cups&#8230;）分组显示；根据严重性给日志行绘色；标签视图允许同时显示多个日志；自动显示新的日志；快速解析及读取（每 5 秒读取 10000+ 行）；浏览日志的细节；快速过滤；能够手动发送日志消息给系统；理所当然的支持保存，复制到剪贴板和打印；它能解析以下日志文件：X.org、内核、认证、Acpid、Cups、Postfix、Apache、Samba、守护进程、Cron 和 XSessions。</p>
<p>Linux 日志文件查看器 KSystemLog下载<a href="http://ksystemlog.forum-software.org/download.php" target="_blank">点这里</a>。</p>
<h3>Xlogmaster</h3>
<p>Xlogmaster 可以快速和方便的将系统的状态及进程展现出来。它能够读取日志文件、可以把日志文件以图形的形式表现出来。</p>
<p>Linux 日志文件查看软件 Xlogmaster 下载<a href="http://www.gnu.org/software/xlogmaster/" target="_blank">点这里</a>。</p>
<h3>swatch</h3>
<p>Swatch可以简单理解为守护者，它除了可以通过扫描日志文件向网站管理员报告系统已经发生的问题或者状况外，而且它能够像Syslogd守护程序那样主动的扫描日志文件并对特定的日志消息采取修复行动。</p>
<p>Linux 日志文件查看器 swatch 下载<a href="http://sourceforge.net/projects/swatch/" target="_blank">点这里</a>。<br />
<h3>相关文章阅读</h3>
<ul class="related_post">
<li>2008年01月18日 &#8212; <a href="http://blogunion.org/blogs/top-25-ubuntu-blogs.html" title="国外关于Ubuntu的25个顶尖博客">国外关于Ubuntu的25个顶尖博客 (10)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogunion.org/blogging-tools/5-linux-logfile-viewers.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>11种给博客(网站)免费增加移动(手机)版本的解决方案</title>
		<link>http://blogunion.org/blogging-tips/solutions-for-mobile-sites.html</link>
		<comments>http://blogunion.org/blogging-tips/solutions-for-mobile-sites.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 12:54:38 +0000</pubDate>
		<dc:creator>老曾</dc:creator>
				<category><![CDATA[博客技巧]]></category>
		<category><![CDATA[手机博客]]></category>
		<category><![CDATA[移动博客]]></category>

		<guid isPermaLink="false">http://blogunion.org/?p=1201</guid>
		<description><![CDATA[随着手机的普及，尤其是3G手机的普及，越来越多的人习惯于手机上网。鉴于手机和电脑的巨大区别，专门为电脑显示器设计的网站往往在手机上浏览的时候体验会非常的糟糕。因此，专门为你... ]]></description>
			<content:encoded><![CDATA[<p>随着手机的普及，尤其是3G手机的普及，越来越多的人习惯于手机上网。鉴于手机和电脑的巨大区别，专门为电脑显示器设计的网站往往在手机上浏览的时候体验会非常的糟糕。因此，专门为你的网站设计一个手机版本，则显得非常的必要了。对于个人博客而言，这个工程量远不如想象中的那么大。</p>
<p><strong>WordPress手机套餐：<a href="http://www.bravenewcode.com/products/wptouch/" target="_blank">WPtouch</a></strong></p>
<p>对于WordPress 的使用者来说，强大的插件和模板为解决WordPress手机版本提供的了很多的选择。WPtouch就是专门为你的WordPress博客手机话的套餐之一，它可以让博客界面更适合手机浏览，载入速度快，而且能够很美观的将内容展示出来。WPtouch会自动检测来自移动设备的访问，一旦检测到访问者是来自iPhone手机, iPod touch, Android手机, 或者黑莓手机，就会自动将WordPress博客转成适合手机访问的界面。</p>
<p><strong><a href="http://www.mofuse.com/a/" target="_blank">MoFuse</a></strong></p>
<p>已经有23,000个博客通过使用MoFuse来让他们的博客更适合在手机上浏览，其中不乏像 Mashable 和 Read Write Web 这样大名鼎鼎的博客。它可以帮助你快速把你的博客转换成适合于手机阅读的版本。</p>
<p><strong><a href="http://mippin.com/web/maker/mobilize.jsp" target="_blank">Mippin Mobilizer</a></strong></p>
<p>只需几步，Mippin Mobilizer就可以让你把博客快速转换成适合手机阅读的版本，并且可以通过移动版本来投放广告。</p>
<p><strong><a href="http://mobify.me/" target="_blank">Mobify</a></strong></p>
<p>Mobify可以让你通过CSS来控制网站移动版本的外观，并且为超过五千种移动设备提供支持。同时，它还提供移动广告投放以及数据分析的巩固。</p>
<p><strong><a href="http://www.wirenode.com/" target="_blank">Wirenode</a></strong></p>
<p>Wirenode 目前为托管了超过四万个移动网页。只需五分钟，你就可以给你的网站添加一个移动版本，并且支持widgets，RSS订阅，手机投票等功能。</p>
<p><strong><a href="http://www.wptap.com/" target="_blank">WPtap</a></strong></p>
<p>WPtap 也是为WordPress博客专门提供的一款套餐，跟WPtouch一样。他会自动检测来自移动设备的访问，一旦检测到访问者是来自iPhone手机, iPod touch, Android手机, 或者黑莓手机，就会自动将WordPress博客转成适合手机访问的界面。此外，他还有一个界面友好的控制面板，支持WordPress的后台操作。</p>
<p><strong><a href="http://www.mobisitegalore.com/index.html" target="_blank">mobiSiteGalore</a></strong></p>
<p>obisitegalore能够让你轻松地建立，发布和共享全面的移动网站，并能够保证在所有手机上都能使用。最有意思的是，他可以让你完全自定义页面的颜色、字体以及布局等。</p>
<p><strong><a href="http://wordpress.org/extend/plugins/wordpress-mobile-pack/" target="_blank">WordPress Mobile Pack</a></strong></p>
<p>WordPress Mobile Pack是使用最多的WordPress 手机插件之一，它可以让读者控制网站的外观和侧边栏等。该插件还提供一个移动控制面板，可以进行发布和编辑等操作。</p>
<p><strong><a href="http://www.zinadoo.com/" target="_blank">Zinadoo</a></strong></p>
<p>Zinadoo 可以让你快速的创建一个网站的移动版本。支持Google手机的键盘快捷操作。</p>
<p><strong><a href="http://winksite.com/site/index.cfm" target="_blank">Winksite</a></strong></p>
<p>Winksite是一个移动网站的创建系统，可以建立属于自己的手机网站，也可以选择广告投放，并且支持Feed导入。并且可以建立移动版本的互动系统，例如论坛，在线聊天，投票等。跟其他的类似系统不同的是，移动广告收入百分之百归站长，Winksite不进行抽成。</p>
<p><strong><a href="http://mobilepress.co.za/" target="_blank">MobilePress</a></strong></p>
<p>MobilePress是一个WordPress插件，可以让你快速的把WordPress博客转换成在手机上浏览友好的手机博客。该插件还支持给不同的浏览器选择不同的外观。﻿</p>
<p>原文：<a href="http://webdesignledger.com/tools/11-excellent-solutions-for-making-your-website-mobile-friendly" target="_blank">11 Excellent Solutions for Making Your Website Mobile Friendly</a></p>
<p>翻译：<a href="http://blogunion.org/blogging-tips/solutions-for-mobile-sites.html " target="_blank">11种给博客(网站)免费增加移动(手机)版本的解决方案</a><br />
<h3>相关文章阅读</h3>
<ul class="related_post"></ul>
]]></content:encoded>
			<wfw:commentRss>http://blogunion.org/blogging-tips/solutions-for-mobile-sites.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>美的危机：企业为什么流着不是道德的血液？</title>
		<link>http://blogunion.org/jobs-weekly/meidi-weiji.html</link>
		<comments>http://blogunion.org/jobs-weekly/meidi-weiji.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 10:08:53 +0000</pubDate>
		<dc:creator>林 景新</dc:creator>
				<category><![CDATA[职场周刊]]></category>
		<category><![CDATA[企业危机]]></category>
		<category><![CDATA[美的危机]]></category>

		<guid isPermaLink="false">http://blogunion.org/?p=1200</guid>
		<description><![CDATA[当企业身上流着不是道德的血液，当企业故意踩踏社会责任底线时，这样的企业纵使其危机管理的策略再高明，也难以挽回民心。三鹿的前车之鉴并没有警醒企业，美的正奔向深不见底的危机... ]]></description>
			<content:encoded><![CDATA[<p>当企业身上流着不是道德的血液，当企业故意踩踏社会责任底线时，这样的企业纵使其危机管理的策略再高明，也难以挽回民心。三鹿的前车之鉴并没有警醒企业，美的正奔向深不见底的危机深渊。</p>
<p style="text-align: center;"><strong>美的危机</strong><strong>：企业为什么流着不是道德的血液？</strong></p>
<p style="text-align: center;"><strong>林景新</strong></p>
<p>中央电视台《每周质检报告》的揭黑式报道将美的紫砂煲拖入了危机的深渊，数十亿的市场份额可能因此化为乌有。</p>
<p>面对着危机之火的煎熬，美的生活电器事业部面临痛苦的决策：要么坦诚责任，壮士断腕，关停紫砂煲生产线，以此挽救企业声誉；要么采取鸵鸟政策，硬起头皮对抗舆论，忍住唾骂与批评，抗住退货、撤消生产线的压力，避免企业更大的损失。</p>
<p>短短一周时间，美的应对危机的策略经过冰火二重天的转折：开始公开承诺立即纠正不当宣传,并对美的电炖锅公司立即停产整顿，停止销售，设立退货点，接受消费者的退货；但很快，美的又公然宣称，其紫砂煲没有问题，拒绝消费者退货。</p>
<p>当危机逼近时，每一个企业都面临着决择，决择的对错都是决定危机升级或被有效控制的分水岭。而考验企业危机管理能力高低往往就在于这一刻：企业是以短期经济利益作为决策考量还是以赢取人心、维护企业声誉作为决策的最终标准？</p>
<p>小企业在危机处理时往往倾向于将经济损失最小化为决策重点，因为企业盘小，经受不起残酷的经济损失；但对于美的这样千亿当量的企业，生活电器事业部在处理紫砂煲严重质量危机\消费者信任危机时，采取的策略竟然是不惜违背民意、执意对抗主流舆论压力，其决策之短视令人扼腕。</p>
<p>从决策角度，美的宣称其紫砂煲没有问题拒绝消费者退货，这种策略必然是生活电器事业部由于部门利益考量而定的。但生活电器事业部没有看到的是，为自己部门之利，可能连累的整个美的品牌价值损失。</p>
<p>从危机扩散的角度来分析，美的此次紫砂煲的造假危机，损失决不仅仅是生活电器事件部数十亿的市场销售，而更可能以此影响投资者对美的作为上市公司的品牌声誉的信任。如果危机管理不当，美的品牌声誉严重受质疑，则可能引发资本市场的连锁反应，投资者抛售美的股票的狂潮。</p>
<p>如果企业无视自身声誉会带来什么样的严重后果？2005年，光明乳业被媒体曝出&#8221;回锅奶&#8221;事件，董事长王佳芬的强硬态度与言辞引来广泛的批评，并影响投资者对光明品牌的信任，资本市场的跳水秀立即显现，光明股价一周时间下跌超过10％。</p>
<p>联想作为中国最大的IT企业，其内部披露数据显示，联想的市值30％由企业的声誉所贡献。所以联想对于涉及影响企业或品牌声誉的危机事件高度重视，其危机决策往往也倾向于以保护、维持企业声誉作为决策核心。</p>
<p>连锁反应是公关危机的典型特征之一。而美的此次紫砂煲危机潜在的另一个危险就在如果强硬对抗民意，可能引发消费者的联名诉讼（特别是在竞争对手的策划与推动下，更容易出现。）如果上升至法律层面，那么紫砂煲危机的持续性影响与深度就会升级，其造成的损失就不仅仅是生活电器这一部门，而更可能扩散至其他部门。</p>
<p>在震惊中国的三鹿三聚氰胺危机中，温家宝总理告诫中国企业家：&#8221;企业家的身上应该流着道德的血液。&#8221;一个企业家或企业身上应该流着道德的血液，只有把看得见的企业技术、产品和管理，以及背后引导他们并受他们影响的理念、道德和责任，两者加在一起才能保护企业在复杂多变的市场环境中长治久安。</p>
<p>当企业身上流着不是道德的血液，当企业故意踩踏社会责任底线时，这样的企业纵使其危机管理的策略再高明，也难以挽回民心。三鹿的前车之鉴并没有警醒企业，美的正奔向深不见底的危机深渊。<br />
<h3>相关文章阅读</h3>
<ul class="related_post"></ul>
]]></content:encoded>
			<wfw:commentRss>http://blogunion.org/jobs-weekly/meidi-weiji.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
