<?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; wordpress</title>
	<atom:link href="http://www.xptt.com/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xptt.com</link>
	<description>关注博客和互联网，记录生活点滴，分享所见所闻。</description>
	<lastBuildDate>Thu, 09 Feb 2012 16:42:42 +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>wordpress友情链接美化</title>
		<link>http://www.xptt.com/links-beautify-wordpress.html</link>
		<comments>http://www.xptt.com/links-beautify-wordpress.html#comments</comments>
		<pubDate>Sat, 12 Nov 2011 20:35:52 +0000</pubDate>
		<dc:creator>郑 永</dc:creator>
				<category><![CDATA[网络博客]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[分列显示]]></category>
		<category><![CDATA[友情链接]]></category>
		<category><![CDATA[图标]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://www.xptt.com/links-beautify-wordpress.html</guid>
		<description><![CDATA[这几天在整理友情链接，发现的确很多朋友都停止写博客了，有的博客甚至连页面都没了，因为实在讨厌之前的友情链接页面，所以在还没有备份友情链接的情况下，将wordpress自助链接插件停止并删之，故有很多友情链接可能会遗漏，请留言告之，google去除了缓存页面，稍后有空我会去百度看看。 今天只是分享和收藏一下我在网上找到的wordpress友情链接美化方法，实现原理请参考：个性化 WordPress 友情链接页面和WordPress 友情链接页面全面修缮，本文只提供我参考两篇文章整理出来的快速实现步骤： 简单三步就可以实现！所有的工作就是复制粘贴！ 适用于友情链接页面 先放图： 1.主题的Function.php加入代码： function my_bookmarks($bookmarks, $args = '' ) { &#160;&#160;&#160; $defaults = array( &#160;&#160;&#160;&#160;&#160;&#160;&#160; 'show_updated' =&#62; 0, 'show_description' =&#62; 0, &#160;&#160;&#160;&#160;&#160;&#160;&#160; 'show_images' =&#62; 1, 'show_name' =&#62; 0, &#160;&#160;&#160;&#160;&#160;&#160;&#160; 'before' =&#62; '&#60;li&#62;', 'after' =&#62; '&#60;/li&#62;', 'between' =&#62; &#34;\n&#34;, &#160;&#160;&#160;&#160;&#160;&#160;&#160; 'show_rating' =&#62; 0, 'link_before' =&#62; '', 'link_after' =&#62; '','nofollow' =&#62;0 [...]]]></description>
			<content:encoded><![CDATA[<p>这几天在整理友情链接，发现的确很多朋友都停止写博客了，有的博客甚至连页面都没了，因为实在讨厌之前的友情链接页面，所以在还没有备份友情链接的情况下，将wordpress自助链接插件停止并删之，故有很多友情链接可能会遗漏，请留言告之，google去除了缓存页面，稍后有空我会去百度看看。</p>
<p>今天只是分享和收藏一下我在网上找到的wordpress友情链接美化方法，实现原理请参考：<a href="http://wange.im/diy-wordpress-links-page.html">个性化 WordPress 友情链接页面</a>和<a href="http://imluren.com/2010/09/wordpress-links-page-full-restoration.html">WordPress 友情链接页面全面修缮</a>，本文只提供我参考两篇文章整理出来的快速实现步骤：</p>
<p><strong>简单三步就可以实现！所有的工作就是复制粘贴！</strong></p>
<p><strong>适用于友情链接页面</strong></p>
<p>先放图：</p>
<p><a href="http://www.xptt.com/wp-content/uploads/2011/11/youqinglianjie.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="youqinglianjie" border="0" alt="youqinglianjie" src="http://www.xptt.com/wp-content/uploads/2011/11/youqinglianjie_thumb.png" width="457" height="372" /></a> </p>
<p><strong>1.主题的Function.php加入代码：</strong></p>
<p>function my_bookmarks($bookmarks, $args = '' ) {    <br />&#160;&#160;&#160; $defaults = array(     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'show_updated' =&gt; 0, 'show_description' =&gt; 0,     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'show_images' =&gt; 1, 'show_name' =&gt; 0,     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'before' =&gt; '&lt;li&gt;', 'after' =&gt; '&lt;/li&gt;', 'between' =&gt; &quot;\n&quot;,     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'show_rating' =&gt; 0, 'link_before' =&gt; '', 'link_after' =&gt; '','nofollow' =&gt;0     <br />&#160;&#160;&#160; ); </p>
<p>&#160;&#160;&#160; $r = wp_parse_args( $args, $defaults );    <br />&#160;&#160;&#160; extract( $r, EXTR_SKIP ); </p>
<p>&#160;&#160;&#160; $output = ''; // Blank string to start with. </p>
<p>&#160;&#160;&#160; foreach ( (array) $bookmarks as $bookmark ) {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( !isset($bookmark-&gt;recently_updated) )     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $bookmark-&gt;recently_updated = false;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= $before;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( $show_updated &amp;&amp; $bookmark-&gt;recently_updated )     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= get_option('links_recently_updated_prepend'); </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $the_link = '#';    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( !empty($bookmark-&gt;link_url) )     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $the_link = clean_url($bookmark-&gt;link_url); </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $rel = ' rel=&quot;external';    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($nofollow)     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $rel .= ' nofollow';     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( '' != $bookmark-&gt;link_rel )     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $rel .= ' ' . $bookmark-&gt;link_rel;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $rel .= '&quot;'; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $desc = attribute_escape(sanitize_bookmark_field('link_description', $bookmark-&gt;link_description, $bookmark-&gt;link_id, 'display'));    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $name = attribute_escape(sanitize_bookmark_field('link_name', $bookmark-&gt;link_name, $bookmark-&gt;link_id, 'display'));     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $title = $desc; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( $show_updated )    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( '00' != substr($bookmark-&gt;link_updated_f, 0, 2) ) {     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $title .= ' (';     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $title .= sprintf(__('Last updated: %s'), date(get_option('links_updated_date_format'), $bookmark-&gt;link_updated_f + (get_option('gmt_offset') * 3600)));     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $title .= ')';     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( '' != $title )    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $title = ' title=&quot;' . $title . '&quot;'; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $alt = ' alt=&quot;' . $name . '&quot;'; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $target = $bookmark-&gt;link_target;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( '' != $target )     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $target = ' target=&quot;' . $target . '&quot;'; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= '&lt;a href=&quot;' . $the_link . '&quot;' . $rel . $title . $target. '&gt;'; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= $link_before; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( $show_images ) {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( $bookmark-&gt;link_image != null) {     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( strpos($bookmark-&gt;link_image, 'http') !== false )     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= &quot;&lt;img src=\&quot;$bookmark-&gt;link_image\&quot; $alt $title /&gt;&quot;;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else // If it's a relative path     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= &quot;&lt;img src=\&quot;&quot; . get_option('siteurl') . &quot;$bookmark-&gt;link_image\&quot; $alt $title /&gt;&quot;;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else {//否则显示网站的Favicon     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (preg_match('/^(https?:\/\/)?([^\/]+)/i',$the_link,$URI)) {//提取域名     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $domains = $URI[2];     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }else{//域名提取失败，显示默认小地球     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $domains = &quot;example.com&quot;;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= &quot;&lt;img src=\&quot;<a href="http://www.google.com/s2/favicons?domain=">http://www.google.com/s2/favicons?domain=</a>$domains\&quot; $alt $title /&gt;&quot;;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; } </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= $name;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= $link_after;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= '&lt;/a&gt;'; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( $show_updated &amp;&amp; $bookmark-&gt;recently_updated )    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= get_option('links_recently_updated_append'); </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( $show_description &amp;&amp; '' != $desc )    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= $between . $desc; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($show_rating) {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= $between . sanitize_bookmark_field('link_rating', $bookmark-&gt;link_rating, $bookmark-&gt;link_id, 'display');     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; } </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= &quot;$after\n&quot;;    <br />&#160;&#160;&#160; } // end while </p>
<p>&#160;&#160;&#160; return $output;    <br />} </p>
<p>function my_list_bookmarks($args = '') {    <br />&#160;&#160;&#160; $defaults = array(     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'orderby' =&gt; 'name', 'order' =&gt; 'ASC',     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'limit' =&gt; -1, 'category' =&gt; '', 'exclude_category' =&gt; '',     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'category_name' =&gt; '', 'hide_invisible' =&gt; 1,     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'show_updated' =&gt; 0, 'echo' =&gt; 1,     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'categorize' =&gt; 1, 'title_li' =&gt; __('Bookmarks'),     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'title_before' =&gt; '&lt;h2&gt;', 'title_after' =&gt; '&lt;/h2&gt;',     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'category_orderby' =&gt; 'name', 'category_order' =&gt; 'ASC',     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'class' =&gt; 'linkcat', 'category_before' =&gt; '&lt;li id=&quot;%id&quot; class=&quot;%class&quot;&gt;',     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'category_after' =&gt; '&lt;/li&gt;','nofollow' =&gt; 0     <br />&#160;&#160;&#160; ); </p>
<p>&#160;&#160;&#160; $r = wp_parse_args( $args, $defaults );    <br />&#160;&#160;&#160; extract( $r, EXTR_SKIP ); </p>
<p>&#160;&#160;&#160; $output = ''; </p>
<p>&#160;&#160;&#160; if ( $categorize ) {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //Split the bookmarks into ul's for each category     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $cats = get_terms('link_category', array('name__like' =&gt; $category_name, 'include' =&gt; $category, 'exclude' =&gt; $exclude_category, 'orderby' =&gt; $category_orderby, 'order' =&gt; $category_order, 'hierarchical' =&gt; 0)); </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; foreach ( (array) $cats as $cat ) {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $params = array_merge($r, array('category'=&gt;$cat-&gt;term_id));     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $bookmarks = get_bookmarks($params);     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( empty($bookmarks) )     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; continue;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= str_replace(array('%id', '%class'), array(&quot;linkcat-$cat-&gt;term_id&quot;, $class), $category_before);     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $catname = apply_filters( &quot;link_category&quot;, $cat-&gt;name );     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= &quot;$title_before$catname$title_after\n\t&lt;ul class='xoxo blogroll'&gt;\n&quot;;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= my_bookmarks($bookmarks, $r);     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= &quot;\n\t&lt;/ul&gt;\n$category_after\n&quot;;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <br />&#160;&#160;&#160; } else {     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //output one single list using title_li for the title     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $bookmarks = get_bookmarks($r); </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( !empty($bookmarks) ) {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( !empty( $title_li ) ){     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= str_replace(array('%id', '%class'), array(&quot;linkcat-$category&quot;, $class), $category_before);     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= &quot;$title_before$title_li$title_after\n\t&lt;ul class='xoxo blogroll'&gt;\n&quot;;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= my_bookmarks($bookmarks, $r);     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= &quot;\n\t&lt;/ul&gt;\n$category_after\n&quot;;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else {     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $output .= my_bookmarks($bookmarks, $r);     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <br />&#160;&#160;&#160; } </p>
<p>&#160;&#160;&#160; $output = apply_filters( 'wp_list_bookmarks', $output ); </p>
<p>&#160;&#160;&#160; if ( !$echo )    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; return $output;     <br />&#160;&#160;&#160; echo $output;     <br />}</p>
<p><strong>2.CSS 加入代码：</strong></p>
<p>.linkpage ul {    <br />&#160;&#160;&#160; list-style-type: none;     <br />&#160;&#160;&#160; overflow: auto;     <br />&#160;&#160;&#160; padding: 5px 0;     <br />}     <br />* html .linkpage ul {     <br />&#160;&#160;&#160; height: 1%;     <br />}     <br />.linkpage ul li {     <br />&#160;&#160;&#160; color: #333333;     <br />&#160;&#160;&#160; font-size: 12px;     <br />&#160;&#160;&#160; margin-bottom: 5px;     <br />}     <br />.linkpage ul li ul li {     <br />&#160;&#160;&#160; background-color: #FFFFFF;     <br />&#160;&#160;&#160; border: 1px solid #DADADA;     <br />&#160;&#160;&#160; float: left;     <br />&#160;&#160;&#160; line-height: 180%;     <br />&#160;&#160;&#160; margin: 3px;     <br />&#160;&#160;&#160; text-align: center;     <br />&#160;&#160;&#160; width: 116px;     <br />}     <br />.linkpage ul li ul li a {     <br />&#160;&#160;&#160; color: gray;     <br />&#160;&#160;&#160; display: block;     <br />}     <br />.linkpage ul li ul li a:hover {     <br />&#160;&#160;&#160; background-color: gray;     <br />&#160;&#160;&#160; color: #FFFFFF;     <br />&#160;&#160;&#160; font-weight: bold;     <br />}     <br />.linkpage IMG {     <br />&#160;&#160;&#160; float: left;     <br />&#160;&#160;&#160; height: 16px;     <br />&#160;&#160;&#160; padding: 3px 0 3px 3px;     <br />&#160;&#160;&#160; width: 16px;     <br />}</p>
<p><strong>3.友情链接页面代码：</strong></p>
<p>&lt;div class=&quot;linkpage&quot;&gt;&lt;ul&gt;    <br />&lt;?php my_list_bookmarks('categorize=1&amp;category=2,856,857&amp;     <br />category_orderby=id&amp;before=&lt;li&gt;&amp;after=&lt;/li&gt;&amp;show_images=1&amp;     <br />show_description=1&amp;orderby=name&amp;title_before=&lt;h3&gt;&amp;title_after=&lt;/h3&gt;'); ?&gt;     <br />&lt;/ul&gt;     <br />&lt;/div&gt;</p>
<blockquote><div>除非注明，<a title="郑永博客" href="http://www.xptt.com">郑永博客</a>文章均为原创，转载请以链接形式标明本文地址</div><div> 本文地址：<a rel="bookmark" title="wordpress友情链接美化" href="http://www.xptt.com/links-beautify-wordpress.html">http://www.xptt.com/links-beautify-wordpress.html</a></div><div></div></blockquote><br /><div class="post_related"><div class="post_related_l"><h3>相关日志</h3><ul><li><a href="http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html" title="Contact Form 7 最强大的wordpress表单插件 (2011年09月2日)">Contact Form 7 最强大的wordpress表单插件</a> (49)</li><li><a href="http://www.xptt.com/wordpress-3d-theme.html" title="wordpress 3D主题 (2011年08月25日)">wordpress 3D主题</a> (58)</li><li><a href="http://www.xptt.com/gourmet-restaurant-wordpress-theme.html" title="wordpress餐馆主题Gourmet (2011年08月20日)">wordpress餐馆主题Gourmet</a> (62)</li><li><a href="http://www.xptt.com/wordpress-home-show-latest-posts-comments.html" title="wordpress首页显示最新文章的评论 (2011年08月12日)">wordpress首页显示最新文章的评论</a> (43)</li><li><a href="http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html" title="wordpress首页列表显示每篇的评论头像 (2011年08月11日)">wordpress首页列表显示每篇的评论头像</a> (57)</li><li><a href="http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html" title="专业微博插件：wordpress同步到微博 (2011年07月27日)">专业微博插件：wordpress同步到微博</a> (67)</li><li><a href="http://www.xptt.com/powerful-microblogging-wordpress-plugin.html" title="强大的wordpress微博插件 (2011年06月27日)">强大的wordpress微博插件</a> (6)</li><li><a href="http://www.xptt.com/simple-to-the-site-to-accelerate.html" title="简单给网站加速 (2011年06月6日)">简单给网站加速</a> (8)</li><li><a href="http://www.xptt.com/they-complain-that-too-simple-theme.html" title="又嫌主题太简单 (2011年05月30日)">又嫌主题太简单</a> (3)</li></ul></div><div class="post_related_r"><h3>推荐日志</h3><ul><li>
<a title="为什么写博客？" href="http://www.xptt.com/why-write-blog.html" rel="bookmark">为什么写博客？</a>
</li>
<li>
<a title="让奥巴马告诉你为什么学习" href="http://www.xptt.com/obama-tell-you-why-learning.html" rel="bookmark">让奥巴马告诉你为什么学习</a>
</li>
<li>
<a title="破解wifi密码技术" href="http://www.xptt.com/crack-wifi-password-technology.html" rel="bookmark">破解wifi密码技术</a>
</li>
<li>
<a title="s60v3万能词典" href="http://www.xptt.com/abbyy-thesaurus.html" rel="bookmark">s60v3万能词典</a>
</li>
<li>
<a title="解决vmware虚拟机无法上网" href="http://www.xptt.com/vmware-virtual-machines-have-no-internet-access-solution.html" rel="bookmark">解决vmware虚拟机无法上网</a>
</li></ul></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.xptt.com/links-beautify-wordpress.html/feed</wfw:commentRss>
		<slash:comments>76</slash:comments>
		</item>
		<item>
		<title>Contact Form 7 最强大的wordpress表单插件</title>
		<link>http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html</link>
		<comments>http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html#comments</comments>
		<pubDate>Fri, 02 Sep 2011 02:14:55 +0000</pubDate>
		<dc:creator>郑 永</dc:creator>
				<category><![CDATA[网络博客]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[表单制作]]></category>

		<guid isPermaLink="false">http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html</guid>
		<description><![CDATA[不得不介绍一下这款插件Contact Form 7，真的是很强大，在还没用上Contact Form7之前，居然先被推荐使用cforms，结果白白花了2,3个小时研究这个复杂的东东，而使用Contact form 7 的话，2分钟就搞定了，而且功能比cforms强大，最重要的是更简单！同样是一款表单制作插件，我敢说Cforms这款插件作者肯定花了不少时间在写教程上，那教程真的是太详细了，可惜到最后，我还是因为无法收到邮件而弃之，如果你和我一样先用上了cforms，然后再用contact form ，你就会知道contact form 7是多么可爱！ 从他们两个的比较结果可以看出，编程的智商高低之分，我在想，如果cforms的作者用到了contact form插件会怎么样？赶紧关闭插件。好了，不多说了，下面介绍一下contact form 7 吧， 好东西不敢独享，虽然网上很多都有介绍，但是说不定身边的人还没发现这么好的东东，你也可以用来做订单，效果特别好。 WordPress联系表单插件 – Contact Form 7 是一款简单易用扩展性灵活的表单插件，可以自定义各式各样不同类型的表单功能，而且支持自定义接受邮件，Ajax提交和 jQuery表单插件支持．可结合Akismet过滤垃圾邮件，同时也支持CAPTCHA反垃圾邮件，表单域元素支持各种最常见的：单选框、复选框、文本框、下拉菜单、按钮、文件上传等多种表单域． Contact Form 7 除了特有的联系表单扩展功能外，还有更多高级的特色功能应用，这里为大家一一说明。 1，邮件发送接收功能 当读者填写好信息点击提交后,你就可以收到一封邮件，我们在消息正文中输入如下代码,就可以显示相应信息： 读者名字:[your-name] 电子邮件:[your-email] 来信主题: [your-subject] 备注信息:[your-message] 下面是如何实现收邮件： 首先，你要保证你的博客所在虚拟主机支持mail()函数，不支持的请安装Cimy Swift SMTP插件。 在收件人中填写好收件人的邮箱，这里填我们自己的就行。 还要添加好寄件人admin@waisir.com,注意,在使用Cimy Swift SMTP插件辅助发信的朋友尖括号里面和外面都要写Cimy Swift SMTP中配置的邮箱，不然无法发信。 这样你就可以收到按你的格式的邮件了。 紧接着下面分别是邮件2 可以设置多个收件箱,比如还需要给读者发送感谢信之类的 紧接着下面分别是消息 可以自定义显示提示消息,一般不作修改,随意. 紧接着下面分别是附加设定 附加设定可以添加附加的设定，比如我们想要提交后跳转到指定页面,可以输入如下内容： on_sent_ok: &#34;location = [...]]]></description>
			<content:encoded><![CDATA[<p>不得不介绍一下这款插件Contact Form 7，真的是很强大，在还没用上Contact Form7之前，居然先被推荐使用<strong>cforms</strong>，结果白白花了2,3个小时研究这个复杂的东东，而使用Contact form 7 的话，2分钟就搞定了，而且功能比cforms强大，最重要的是更简单！同样是一款表单制作插件，我敢说Cforms这款插件作者肯定花了不少时间在写教程上，那教程真的是太详细了，可惜到最后，我还是因为无法收到邮件而弃之，如果你和我一样先用上了cforms，然后再用contact form ，你就会知道contact form 7是多么可爱！</p>
<p>从他们两个的比较结果可以看出，编程的智商高低之分，我在想，如果cforms的作者用到了contact form插件会怎么样？赶紧关闭插件。好了，不多说了，下面介绍一下contact form 7 吧， 好东西不敢独享，虽然网上很多都有介绍，但是说不定身边的人还没发现这么好的东东，你也可以用来做订单，效果特别好。</p>
<p><strong>WordPress联系表单插件 – Contact Form 7</strong> 是一款简单易用扩展性灵活的表单插件，可以自定义各式各样不同类型的表单功能，而且支持自定义接受邮件，Ajax提交和 jQuery表单插件支持．可结合Akismet过滤垃圾邮件，同时也支持CAPTCHA反垃圾邮件，表单域元素支持各种最常见的：单选框、复选框、文本框、下拉菜单、按钮、文件上传等多种表单域．</p>
<p>Contact Form 7 除了特有的<a href="http://www.wpyou.com/wordpress-contact-form-7.html">联系表单扩展功能</a>外，还有更多高级的特色功能应用，这里为大家一一说明。</p>
<p><a href="http://www.xptt.com/wp-content/uploads/2011/09/o3wL0YUWSKCWinf4AF455.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="o3wL0YUWSKCWinf4-AF455" border="0" alt="o3wL0YUWSKCWinf4-AF455" src="http://www.xptt.com/wp-content/uploads/2011/09/o3wL0YUWSKCWinf4AF455_thumb.png" width="462" height="309" /></a> </p>
<p><strong>1，邮件发送接收功能</strong></p>
<p>当读者填写好信息点击提交后,你就可以收到一封邮件，我们在消息正文中输入如下代码,就可以显示相应信息：</p>
<blockquote><p><code>读者名字:[your-name]        <br />电子邮件:[your-email]         <br />来信主题: [your-subject]         <br />备注信息:[your-message]</code></p>
</blockquote>
<p>下面是如何实现收邮件：    <br />首先，你要保证你的博客所在虚拟主机支持mail()函数，不支持的请安装<a href="http://wordpress.org/extend/plugins/cimy-swift-smtp/">Cimy Swift SMTP</a><a href="http://www.xptt.com/tag/%e6%8f%92%e4%bb%b6" class="st_tag internal_tag" rel="tag" title="标签 插件 下的日志">插件</a>。     <br />在收件人中填写好收件人的邮箱，这里填我们自己的就行。     <br />还要添加好寄件人admin@waisir.com,注意,在使用Cimy Swift SMTP插件辅助发信的朋友尖括号里面和外面都要写Cimy Swift SMTP中配置的邮箱，不然无法发信。     <br />这样你就可以收到按你的格式的邮件了。</p>
<p><strong>紧接着下面分别是邮件2</strong>     <br />可以设置多个收件箱,比如还需要给读者发送感谢信之类的</p>
<p><strong>紧接着下面分别是消息</strong>     <br />可以自定义显示提示消息,一般不作修改,随意.     <br /><strong>紧接着下面分别是附加设定</strong>     <br />附加设定可以添加附加的设定，比如我们想要提交后跳转到指定页面,可以输入如下内容：</p>
<blockquote><p><code>on_sent_ok: &quot;location = 'http://wpyou.com/';&quot;</code></p>
</blockquote>
<p><strong>2，什么是Cc和Bcc</strong></p>
<blockquote><p>CC 英文全称是 Carbon Copy(抄送);BCC英文全称是 Blind CarbonCopy(暗抄送)。 两者的区别在于在BCC栏中的收件人可以看到所有的收件人名(TO,CC,BCC)，而在TO 和CC栏中的收件人看不到BBC的收件人名。</p>
</blockquote>
<p><strong>3，Contact Form 7如何添加抄送和暗送</strong>     <br />在邮件栏-附件文件头下填写如下格式代码即可</p>
<blockquote><p>Cc:test001@waisir.com      <br />Bcc:test002@waisir.com</p>
</blockquote>
<p><strong>4，Contact Form CheckBox多选标签如何将选择框放在后面</strong>     <br />添加label_first 这个tag即可     <br />选框在前：</p>
<blockquote><p>[checkbox your-cb &quot;Option 1&quot; &quot;Option 2&quot; &quot;Option 3&quot;]</p>
</blockquote>
<p>选框在后：</p>
<blockquote><p>[checkbox your-cb label_first &quot;Option 1&quot; &quot;Option 2&quot; &quot;Option 3&quot;]</p>
</blockquote>
<p><strong>5，如何CheckBox多选标签竖着排列</strong>     <br />在主题CSS层叠样式表中添加如下代码即可</p>
<blockquote><p><code>span.wpcf7-list-item { display: block; }</code></p>
</blockquote>
<p><strong>6，Contact Form如何调整提示信息栏的位置</strong>     <br />当点击提交后,默认情况下在表单最下方会看到恭喜,提交成功类似文字.     <br />我们可以随意改变提示信息的位置,使用[response]标签即可,如：</p>
<blockquote><p><code>[response]        <br />Your Name (required)         <br />[text* your-name]         <br />Subject         <br />[text your-subject]         <br />Your Message         <br />[textarea your-message]         <br />[response]         <br />[submit &quot;Send&quot;]</code></p>
</blockquote>
<p><strong>7，Contact Form解决关于SEO邮件暴露问题</strong>     <br />如,你需要一个下拉框让读者选择给谁发送邮件,不如可以选择(站长,销售员,客服),一般情况下,我们这样写就行     <br />[select your-recipient &quot;ceo@example.com&quot;     <br />&quot;sales@example.com&quot;     <br />&quot;support@example.com&quot;]     <br />再将自定义的[your-recipient]字段填写到收件人即可.这样就可以将邮件发送到选择的邮箱中     <br />毋庸置疑,这样会暴露邮箱地址, 而带来垃圾邮件,而且对于用户来说也不方便.     <br />做如下处理即可</p>
<blockquote><p><code>[select your-recipient &quot;CEO|ceo@example.com&quot;        <br />&quot;Sales|sales@example.com&quot;         <br />&quot;Support|support@example.com&quot;]</code></p>
</blockquote>
<p>相当于为每个邮件地址设置了一个用于显示的别名    <br /><strong>     <br />8，Contact Form如何返回表单所在POST的url和文章名称/用户IP等参数</strong>     <br />通过引用以下这些tag就可以实现了</p>
<blockquote><p><code>[_remote_ip]访者IP        <br />[_url]返回页面url         <br />[_date]返回日期         <br />[_time]返回时间         <br />[_post_id]返回postID         <br />[_post_title]返回文章名称         <br />[_post_url]返回文章URL         <br />[_post_author]返回文章作者         <br />[_post_author_email]返回文章作者邮件</code></p>
</blockquote>
<p><strong>9，Contact Form如何让用户上传附件并发送附件</strong>     <br />和添加其他文本域便签一样,添加一个[file]标签,如：</p>
<blockquote><p>[file file-torrent limit:1000000 filetypes:torrent]</p>
</blockquote>
<p>然后在邮件栏-附件下填写[file-torrent]即可    <br />有多个附件时并列填写即可[file-torrent1][file-torrent2]</p>
<p><strong>10，怎么将contact form 7直接插入到主题中</strong>     <br />需要注意的是不能用短代码,用do_shortcode()函数调用：</p>
<blockquote><p>&lt;?php echo do_shortcode( ‘[contact-form 1 &quot;Contact form 1&quot;]‘ ); ?&gt;</p>
</blockquote>
<p><strong>11，Contact Form验证码CAPTCHA无法输入,这个应该在火狐下才会出现,应该的位置没放正确</strong>     <br /><strong>这是正确的写法</strong></p>
<blockquote><p>[captchac your-captcha]      <br />&lt;label&gt;Enter the code: [captchar your-captcha]&lt;/label&gt;</p>
</blockquote>
<p><strong>这是不好的写好</strong></p>
<blockquote><p>&lt;label&gt;[captchac your-captcha]      <br />Enter the code: [captchar your-captcha]&lt;/label&gt;</p>
</blockquote>
<p><strong>Contact Form 7插件下载地址</strong>：<a href="http://wordpress.org/extend/plugins/contact-form-7/">http://wordpress.org/extend/plugins/contact-form-7/</a></p>
<blockquote><div>除非注明，<a title="郑永博客" href="http://www.xptt.com">郑永博客</a>文章均为原创，转载请以链接形式标明本文地址</div><div> 本文地址：<a rel="bookmark" title="Contact Form 7 最强大的wordpress表单插件" href="http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html">http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html</a></div><div></div></blockquote><br /><div class="post_related"><div class="post_related_l"><h3>相关日志</h3><ul><li><a href="http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html" title="专业微博插件：wordpress同步到微博 (2011年07月27日)">专业微博插件：wordpress同步到微博</a> (67)</li><li><a href="http://www.xptt.com/powerful-microblogging-wordpress-plugin.html" title="强大的wordpress微博插件 (2011年06月27日)">强大的wordpress微博插件</a> (6)</li><li><a href="http://www.xptt.com/links-beautify-wordpress.html" title="wordpress友情链接美化 (2011年11月12日)">wordpress友情链接美化</a> (76)</li><li><a href="http://www.xptt.com/wordpress-3d-theme.html" title="wordpress 3D主题 (2011年08月25日)">wordpress 3D主题</a> (58)</li><li><a href="http://www.xptt.com/gourmet-restaurant-wordpress-theme.html" title="wordpress餐馆主题Gourmet (2011年08月20日)">wordpress餐馆主题Gourmet</a> (62)</li><li><a href="http://www.xptt.com/wordpress-home-show-latest-posts-comments.html" title="wordpress首页显示最新文章的评论 (2011年08月12日)">wordpress首页显示最新文章的评论</a> (43)</li><li><a href="http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html" title="wordpress首页列表显示每篇的评论头像 (2011年08月11日)">wordpress首页列表显示每篇的评论头像</a> (57)</li><li><a href="http://www.xptt.com/simple-to-the-site-to-accelerate.html" title="简单给网站加速 (2011年06月6日)">简单给网站加速</a> (8)</li><li><a href="http://www.xptt.com/they-complain-that-too-simple-theme.html" title="又嫌主题太简单 (2011年05月30日)">又嫌主题太简单</a> (3)</li><li><a href="http://www.xptt.com/synchronization-microblogging-wp-wp-connect-plug.html" title="wp同步微博插件wp-connect (2011年02月23日)">wp同步微博插件wp-connect</a> (36)</li></ul></div><div class="post_related_r"><h3>推荐日志</h3><ul><li>
<a title="为什么写博客？" href="http://www.xptt.com/why-write-blog.html" rel="bookmark">为什么写博客？</a>
</li>
<li>
<a title="让奥巴马告诉你为什么学习" href="http://www.xptt.com/obama-tell-you-why-learning.html" rel="bookmark">让奥巴马告诉你为什么学习</a>
</li>
<li>
<a title="破解wifi密码技术" href="http://www.xptt.com/crack-wifi-password-technology.html" rel="bookmark">破解wifi密码技术</a>
</li>
<li>
<a title="s60v3万能词典" href="http://www.xptt.com/abbyy-thesaurus.html" rel="bookmark">s60v3万能词典</a>
</li>
<li>
<a title="解决vmware虚拟机无法上网" href="http://www.xptt.com/vmware-virtual-machines-have-no-internet-access-solution.html" rel="bookmark">解决vmware虚拟机无法上网</a>
</li></ul></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html/feed</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>wordpress 3D主题</title>
		<link>http://www.xptt.com/wordpress-3d-theme.html</link>
		<comments>http://www.xptt.com/wordpress-3d-theme.html#comments</comments>
		<pubDate>Thu, 25 Aug 2011 03:48:21 +0000</pubDate>
		<dc:creator>郑 永</dc:creator>
				<category><![CDATA[生活事业]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.xptt.com/wordpress-3d-theme.html</guid>
		<description><![CDATA[昨晚做了一个诡异的梦，这个梦与wordpress主题有关，不过没有做完就中断了，有点遗憾，想知道后来如何。 这个梦为什么诡异呢？大家在网上建立博客，很多人把它当做网上的家，那么这主题就是房子，房子就是wordpress主题，有的使用自己做主题，有的找别人做好的主题用，在梦里面，wordpress主题有3d感觉，简直就是房子，我和很多人去看有些人用的主题，当时我们同时访问了一个特别奇怪的主题，这个主题设计得跟皇宫差不多，当我和网友们走进观赏这个主题时，起先觉得这个建筑（主题）很不错，有古老的感觉，但是当我突然发现建筑的地板和走廊有些磨损的痕迹时，我跟大家说，这个主题不好，风水不好，有点恐怖的感觉，接着正当我们开始害怕想离开这个建筑（主题）的时候，突然就醒了，我不知道是怕惊醒还是被人叫醒，因为醒来的确有人叫我，但我又很想看看梦里接下去会是什么。 怎么样，这个梦够诡异吧？你知道我为什么会做这个梦吗？原因是因为最近经常在选择和修改wordpress主题，然后前天第一次去看了3D电影，这两个事情混合在一起，居然就做起了这样一个梦来，有趣的是，梦里居然把wordpress主题完美的和房子结合在一起，并以3d的形式展现出来，那就是新词，wordpress 3d主题！梦真的很有创意！ 除非注明，郑永博客文章均为原创，转载请以链接形式标明本文地址 本文地址：http://www.xptt.com/wordpress-3d-theme.html相关日志wordpress友情链接美化 (76)Contact Form 7 最强大的wordpress表单插件 (49)3D电影详细介绍 (12)wordpress餐馆主题Gourmet (62)wordpress首页显示最新文章的评论 (43)wordpress首页列表显示每篇的评论头像 (57)专业微博插件：wordpress同步到微博 (67)强大的wordpress微博插件 (6)简单给网站加速 (8)又嫌主题太简单 (3)推荐日志 为什么写博客？ 让奥巴马告诉你为什么学习 破解wifi密码技术 s60v3万能词典 解决vmware虚拟机无法上网]]></description>
			<content:encoded><![CDATA[<p>昨晚做了一个诡异的梦，这个梦与wordpress主题有关，不过没有做完就中断了，有点遗憾，想知道后来如何。</p>
<p>这个梦为什么诡异呢？大家在网上建立博客，很多人把它当做网上的家，那么这主题就是房子，房子就是wordpress主题，有的使用自己做主题，有的找别人做好的主题用，在梦里面，wordpress主题有3d感觉，简直就是房子，我和很多人去看有些人用的主题，当时我们同时访问了一个特别奇怪的主题，这个主题设计得跟皇宫差不多，当我和网友们走进观赏这个主题时，起先觉得这个建筑（<a href="http://www.xptt.com/tag/%e4%b8%bb%e9%a2%98" class="st_tag internal_tag" rel="tag" title="标签 主题 下的日志">主题</a>）很不错，有古老的感觉，但是当我突然发现建筑的地板和走廊有些磨损的痕迹时，我跟大家说，这个主题不好，风水不好，有点恐怖的感觉，接着正当我们开始害怕想离开这个建筑（<a href="http://www.xptt.com/tag/%e4%b8%bb%e9%a2%98" class="st_tag internal_tag" rel="tag" title="标签 主题 下的日志">主题</a>）的时候，突然就醒了，我不知道是怕惊醒还是被人叫醒，因为醒来的确有人叫我，但我又很想看看梦里接下去会是什么。</p>
<p><a href="http://www.xptt.com/wp-content/uploads/2011/08/14wordpress.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="14-wordpress" border="0" alt="14-wordpress" src="http://www.xptt.com/wp-content/uploads/2011/08/14wordpress_thumb.jpg" width="408" height="243" /></a></p>
<p>怎么样，这个梦够诡异吧？你知道我为什么会做这个梦吗？原因是因为最近经常在选择和修改wordpress主题，然后前天第一次去看了3D电影，这两个事情混合在一起，居然就做起了这样一个梦来，有趣的是，梦里居然把wordpress主题完美的和房子结合在一起，并以3d的形式展现出来，那就是新词，<a href="http://www.xptt.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">wordpress</a> 3d主题！梦真的很有创意！</p>
<blockquote><div>除非注明，<a title="郑永博客" href="http://www.xptt.com">郑永博客</a>文章均为原创，转载请以链接形式标明本文地址</div><div> 本文地址：<a rel="bookmark" title="wordpress 3D主题" href="http://www.xptt.com/wordpress-3d-theme.html">http://www.xptt.com/wordpress-3d-theme.html</a></div><div></div></blockquote><br /><div class="post_related"><div class="post_related_l"><h3>相关日志</h3><ul><li><a href="http://www.xptt.com/links-beautify-wordpress.html" title="wordpress友情链接美化 (2011年11月12日)">wordpress友情链接美化</a> (76)</li><li><a href="http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html" title="Contact Form 7 最强大的wordpress表单插件 (2011年09月2日)">Contact Form 7 最强大的wordpress表单插件</a> (49)</li><li><a href="http://www.xptt.com/3d-movie-details.html" title="3D电影详细介绍 (2011年08月23日)">3D电影详细介绍</a> (12)</li><li><a href="http://www.xptt.com/gourmet-restaurant-wordpress-theme.html" title="wordpress餐馆主题Gourmet (2011年08月20日)">wordpress餐馆主题Gourmet</a> (62)</li><li><a href="http://www.xptt.com/wordpress-home-show-latest-posts-comments.html" title="wordpress首页显示最新文章的评论 (2011年08月12日)">wordpress首页显示最新文章的评论</a> (43)</li><li><a href="http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html" title="wordpress首页列表显示每篇的评论头像 (2011年08月11日)">wordpress首页列表显示每篇的评论头像</a> (57)</li><li><a href="http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html" title="专业微博插件：wordpress同步到微博 (2011年07月27日)">专业微博插件：wordpress同步到微博</a> (67)</li><li><a href="http://www.xptt.com/powerful-microblogging-wordpress-plugin.html" title="强大的wordpress微博插件 (2011年06月27日)">强大的wordpress微博插件</a> (6)</li><li><a href="http://www.xptt.com/simple-to-the-site-to-accelerate.html" title="简单给网站加速 (2011年06月6日)">简单给网站加速</a> (8)</li><li><a href="http://www.xptt.com/they-complain-that-too-simple-theme.html" title="又嫌主题太简单 (2011年05月30日)">又嫌主题太简单</a> (3)</li></ul></div><div class="post_related_r"><h3>推荐日志</h3><ul><li>
<a title="为什么写博客？" href="http://www.xptt.com/why-write-blog.html" rel="bookmark">为什么写博客？</a>
</li>
<li>
<a title="让奥巴马告诉你为什么学习" href="http://www.xptt.com/obama-tell-you-why-learning.html" rel="bookmark">让奥巴马告诉你为什么学习</a>
</li>
<li>
<a title="破解wifi密码技术" href="http://www.xptt.com/crack-wifi-password-technology.html" rel="bookmark">破解wifi密码技术</a>
</li>
<li>
<a title="s60v3万能词典" href="http://www.xptt.com/abbyy-thesaurus.html" rel="bookmark">s60v3万能词典</a>
</li>
<li>
<a title="解决vmware虚拟机无法上网" href="http://www.xptt.com/vmware-virtual-machines-have-no-internet-access-solution.html" rel="bookmark">解决vmware虚拟机无法上网</a>
</li></ul></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.xptt.com/wordpress-3d-theme.html/feed</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
		<item>
		<title>wordpress餐馆主题Gourmet</title>
		<link>http://www.xptt.com/gourmet-restaurant-wordpress-theme.html</link>
		<comments>http://www.xptt.com/gourmet-restaurant-wordpress-theme.html#comments</comments>
		<pubDate>Sat, 20 Aug 2011 13:24:27 +0000</pubDate>
		<dc:creator>郑 永</dc:creator>
				<category><![CDATA[网络博客]]></category>
		<category><![CDATA[Gourmet]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[餐厅主题]]></category>

		<guid isPermaLink="false">http://www.xptt.com/gourmet-restaurant-wordpress-theme.html</guid>
		<description><![CDATA[用sae建站真是神速，只要3秒就可以建立一个wordpress站，取个二级域名点击安装，即可完成所有数据库和文件生成的繁琐操作，玩起来不费精力不费时间，昨晚我用sae建立了一个国外的餐馆主题网站，这个主题在百款中一眼就看中了Gourmet这款wordpress餐厅主题，功能真是太强大了，比以往我尝用过百款主题都强大，这款wordpress餐馆主题是收费的，本以为很好找到破解版，但是试用了10次关键才把它下载到wordpress Gourmet破解版，其实就是付费的拿出来共享罢了，国外果然很少模仿和破解主题的，大家要是想试试自己的搜索能力，可以试试能下载到这款收费主题么？ 这款wordpress餐厅主题专门为不懂代码的人设计，如果要上手，还得花些时间熟悉熟悉，因为虽然所有的东西都可以在后台设置，但正因为如此，设置繁多，难免会让你厌烦，不过这种网站托给另一个完全不懂wordpress的老板们，可以稍微学习一下，就可以更改网页上的任何标题以及菜单设计，这款wordpress外卖主题在启用安装的时候，还会向数据库添加网页所必须的数据，比如启用以后，wordpress将添加10多篇内置日志，分类和标签，以及页面和菜单，它将以完美的界面展现在你面前，你无须担心刚安装会因为没有内容而使页面不能很好的浏览它的完美，当然之后你可以对应修改内容或则留着继续添加数据。 废话多了点，还是看看这款强大的wordpress餐馆主题如何吧： 主题官方站点：点这里进入wordpress Gourmet主题 如果你是用其他主机来运行这个主题，那么恭喜你，主题运行正常，如果你是用sina app engine来装这个主题，那么主题会遇到一个问题，那就是sina app engine不支持thum.php里面的一些函数，所以主界面将不会显示任何图片，我已经经过修改，现在完全显示正常，非常高兴的是，这款这题的设计正好可以弥补sae空间的修改代码问题，sae的wordpress后台不允许修改代码，奇怪的是，为什么wordpress后台的主题编辑不能设计成跟这款软件一样的原理了，后台就可以直接修改了！比如用一些专门的函数，主题制作者可以用这些函数进行替换，这样所有的菜单文字和其他地方都可以在后台进行修改。 不明白的是，为什么sae版得wordpress后台不能编辑主题了？而一些主题的选项却可以在后台添加修改代码呢？为什么不直接像这样的原理来实现主题可以编辑呢？ 演示：点这里进入我下载到得Gourment餐馆主题演示站 进去看看吧，主题很不错，很适合餐馆网站。 zww兄弟做了很多漂亮的wordpress主题，功能也很强大，不过自从我遇到这款主题，我推荐zww兄弟可以考虑一下，能否出一款功能类似这样的主题，就是无须更改代码，就可以在后台更改一切菜单和布局等等，一定好卖啊，也当挑战一下新的进阶。 除非注明，郑永博客文章均为原创，转载请以链接形式标明本文地址 本文地址：http://www.xptt.com/gourmet-restaurant-wordpress-theme.html相关日志wordpress友情链接美化 (76)Contact Form 7 最强大的wordpress表单插件 (49)wordpress 3D主题 (58)wordpress首页显示最新文章的评论 (43)wordpress首页列表显示每篇的评论头像 (57)专业微博插件：wordpress同步到微博 (67)强大的wordpress微博插件 (6)简单给网站加速 (8)又嫌主题太简单 (3)推荐日志 为什么写博客？ 让奥巴马告诉你为什么学习 破解wifi密码技术 s60v3万能词典 解决vmware虚拟机无法上网]]></description>
			<content:encoded><![CDATA[<p>用sae建站真是神速，只要3秒就可以建立一个wordpress站，取个二级域名点击安装，即可完成所有数据库和文件生成的繁琐操作，玩起来不费精力不费时间，昨晚我用sae建立了一个国外的餐馆主题网站，这个主题在百款中一眼就看中了Gourmet这款wordpress餐厅主题，功能真是太强大了，比以往我尝用过百款主题都强大，这款wordpress餐馆主题是收费的，本以为很好找到破解版，但是试用了10次关键才把它下载到wordpress Gourmet破解版，其实就是付费的拿出来共享罢了，国外果然很少模仿和破解主题的，大家要是想试试自己的搜索能力，可以试试能下载到这款收费主题么？</p>
<p>这款wordpress餐厅主题专门为不懂代码的人设计，如果要上手，还得花些时间熟悉熟悉，因为虽然所有的东西都可以在后台设置，但正因为如此，设置繁多，难免会让你厌烦，不过这种网站托给另一个完全不懂wordpress的老板们，可以稍微学习一下，就可以更改网页上的任何标题以及菜单设计，这款wordpress外卖主题在启用安装的时候，还会向数据库添加网页所必须的数据，比如启用以后，wordpress将添加10多篇内置日志，分类和标签，以及页面和菜单，它将以完美的界面展现在你面前，你无须担心刚安装会因为没有内容而使页面不能很好的浏览它的完美，当然之后你可以对应修改内容或则留着继续添加数据。</p>
<p>废话多了点，还是看看这款强大的wordpress餐馆主题如何吧：</p>
<p><a href="http://www.xptt.com/wp-content/uploads/2011/08/bmain.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="bmain" border="0" alt="bmain" src="http://www.xptt.com/wp-content/uploads/2011/08/bmain_thumb.png" width="384" height="258" /></a> </p>
<p>主题官方站点：<a href="http://templatic.com/cms-themes/gourmet">点这里进入wordpress Gourmet主题</a></p>
<p>如果你是用其他主机来运行这个主题，那么恭喜你，主题运行正常，如果你是用sina app engine来装这个主题，那么主题会遇到一个问题，那就是sina app engine不支持thum.php里面的一些函数，所以主界面将不会显示任何图片，我已经经过修改，现在完全显示正常，非常高兴的是，这款这题的设计正好可以弥补sae空间的修改代码问题，sae的wordpress后台不允许修改代码，奇怪的是，为什么wordpress后台的主题编辑不能设计成跟这款软件一样的原理了，后台就可以直接修改了！比如用一些专门的函数，主题制作者可以用这些函数进行替换，这样所有的菜单文字和其他地方都可以在后台进行修改。</p>
<p>不明白的是，为什么sae版得wordpress后台不能编辑主题了？而一些主题的选项却可以在后台添加修改代码呢？为什么不直接像这样的原理来实现主题可以编辑呢？</p>
<p>演示：<a href="http://restaurante.sinaapp.com">点这里进入我下载到得Gourment餐馆主题演示站</a> 进去看看吧，主题很不错，很适合餐馆网站。</p>
<p>zww兄弟做了很多<a href="http://zww.me/archives/category/wordpress/wp-theme">漂亮的wordpress主题</a>，功能也很强大，不过自从我遇到这款主题，我推荐zww兄弟可以考虑一下，能否出一款功能类似这样的主题，就是无须更改代码，就可以在后台更改一切菜单和布局等等，一定好卖啊，也当挑战一下新的进阶。</p>
<blockquote><div>除非注明，<a title="郑永博客" href="http://www.xptt.com">郑永博客</a>文章均为原创，转载请以链接形式标明本文地址</div><div> 本文地址：<a rel="bookmark" title="wordpress餐馆主题Gourmet" href="http://www.xptt.com/gourmet-restaurant-wordpress-theme.html">http://www.xptt.com/gourmet-restaurant-wordpress-theme.html</a></div><div></div></blockquote><br /><div class="post_related"><div class="post_related_l"><h3>相关日志</h3><ul><li><a href="http://www.xptt.com/links-beautify-wordpress.html" title="wordpress友情链接美化 (2011年11月12日)">wordpress友情链接美化</a> (76)</li><li><a href="http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html" title="Contact Form 7 最强大的wordpress表单插件 (2011年09月2日)">Contact Form 7 最强大的wordpress表单插件</a> (49)</li><li><a href="http://www.xptt.com/wordpress-3d-theme.html" title="wordpress 3D主题 (2011年08月25日)">wordpress 3D主题</a> (58)</li><li><a href="http://www.xptt.com/wordpress-home-show-latest-posts-comments.html" title="wordpress首页显示最新文章的评论 (2011年08月12日)">wordpress首页显示最新文章的评论</a> (43)</li><li><a href="http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html" title="wordpress首页列表显示每篇的评论头像 (2011年08月11日)">wordpress首页列表显示每篇的评论头像</a> (57)</li><li><a href="http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html" title="专业微博插件：wordpress同步到微博 (2011年07月27日)">专业微博插件：wordpress同步到微博</a> (67)</li><li><a href="http://www.xptt.com/powerful-microblogging-wordpress-plugin.html" title="强大的wordpress微博插件 (2011年06月27日)">强大的wordpress微博插件</a> (6)</li><li><a href="http://www.xptt.com/simple-to-the-site-to-accelerate.html" title="简单给网站加速 (2011年06月6日)">简单给网站加速</a> (8)</li><li><a href="http://www.xptt.com/they-complain-that-too-simple-theme.html" title="又嫌主题太简单 (2011年05月30日)">又嫌主题太简单</a> (3)</li></ul></div><div class="post_related_r"><h3>推荐日志</h3><ul><li>
<a title="为什么写博客？" href="http://www.xptt.com/why-write-blog.html" rel="bookmark">为什么写博客？</a>
</li>
<li>
<a title="让奥巴马告诉你为什么学习" href="http://www.xptt.com/obama-tell-you-why-learning.html" rel="bookmark">让奥巴马告诉你为什么学习</a>
</li>
<li>
<a title="破解wifi密码技术" href="http://www.xptt.com/crack-wifi-password-technology.html" rel="bookmark">破解wifi密码技术</a>
</li>
<li>
<a title="s60v3万能词典" href="http://www.xptt.com/abbyy-thesaurus.html" rel="bookmark">s60v3万能词典</a>
</li>
<li>
<a title="解决vmware虚拟机无法上网" href="http://www.xptt.com/vmware-virtual-machines-have-no-internet-access-solution.html" rel="bookmark">解决vmware虚拟机无法上网</a>
</li></ul></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.xptt.com/gourmet-restaurant-wordpress-theme.html/feed</wfw:commentRss>
		<slash:comments>62</slash:comments>
		</item>
		<item>
		<title>wordpress首页显示最新文章的评论</title>
		<link>http://www.xptt.com/wordpress-home-show-latest-posts-comments.html</link>
		<comments>http://www.xptt.com/wordpress-home-show-latest-posts-comments.html#comments</comments>
		<pubDate>Fri, 12 Aug 2011 16:05:59 +0000</pubDate>
		<dc:creator>郑 永</dc:creator>
				<category><![CDATA[网络博客]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[评论]]></category>

		<guid isPermaLink="false">http://www.xptt.com/wordpress-home-show-latest-posts-comments.html</guid>
		<description><![CDATA[注意不是最新评论，而是最新文章的最新评论，这种蛋疼的效果还附着蛋疼的标题，如果硬要取个完美的标题，我想现在这个标题已经很好理解了，也最适合这个功能的推荐用处，这个效果对于zww兄弟来说是小儿科，不懂代码的人无法用最简单的方法实现，就像我折腾了一天还未出完整效果来（wordpress首页列表显示每篇的评论头像），他就抽点小空就能达到完美的效果，终于知道zww的折腾乐趣了，因为他的代码可以呼风唤雨了，可以实现他所要的任何效果，浏览器完全听从他的口令，从他的口号是“因为喜欢,所以折腾...无折腾不铁血”可以知道，也许他当年有折腾过，但是现在不算真正的折腾，我们才算真正的在折腾啊！ 废话不多说，zww的完美版效果：WordPress每篇文章显示指定数量的评论者头像及评论内容，我这里对自己的主题稍作点修改，喜欢原码的可以去他那里围观。 修改地方： &#60;a href=&#34;'.get_comment_link( $fc_comment-&#62;comment_ID, array('type' =&#62; 'all')).'&#34;&#62;'.$fc_avatar.'&#60;/a&#62; 改为： &#60;a href=&#34;'.$fc_comment-&#62;comment_author_url.'&#34;&#62;'.$fc_avatar.'&#60;/a&#62; 最新文章的评论在首页显示，那么点击评论头像，就可以直接打开评论者的网站，这样做也是为了希望大家能踊跃发表评论。 以下代码放在首页的&#60;?php the_content(); ?&#62;下面，这样会让文章列表的每篇文章都调用，影响页面速度，最好你的主页也像我一样的格式，分开调用文章列表。 &#60;?php $nums=6; //要显示几个评论 $get_comments_num=30; //获取最大评论数，主要用来排除博主的评论。 $fc_comments = get_comments('status=approve&#38;type=comment&#38;number='.$get_comments_num.'&#38;post_id='.get_the_ID()); if ( !empty($fc_comments) ) { &#160;&#160;&#160;&#160; $my_email=get_bloginfo ('admin_email'); //排除管理员的评论 &#160;&#160;&#160;&#160; $i = 1; ?&#62; &#160;&#160;&#160;&#160; &#60;div class=&#34;fc_comments&#34;&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;ul&#62;&#60;?php &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $commentcount = $fc_comments-&#62;comment_count; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $fc_output=''; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; foreach ($fc_comments as $fc_comment) { [...]]]></description>
			<content:encoded><![CDATA[<p>注意不是最新评论，而是最新文章的最新评论，这种蛋疼的效果还附着蛋疼的标题，如果硬要取个完美的标题，我想现在这个标题已经很好理解了，也最适合这个功能的推荐用处，这个效果对于zww兄弟来说是小儿科，不懂代码的人无法用最简单的方法实现，就像我折腾了一天还未出完整效果来（<a href="http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html">wordpress首页列表显示每篇的评论头像</a>），他就抽点小空就能达到完美的效果，终于知道zww的折腾乐趣了，因为他的代码可以呼风唤雨了，可以实现他所要的任何效果，浏览器完全听从他的口令，从他的口号是“因为喜欢,所以折腾...无折腾不铁血”可以知道，也许他当年有折腾过，但是现在不算真正的折腾，我们才算真正的在折腾啊！</p>
<p>废话不多说，zww的完美版效果：<a href="http://zww.me/archives/25502">WordPress每篇文章显示指定数量的评论者头像及评论内容</a>，我这里对自己的主题稍作点修改，喜欢原码的可以去他那里<a href="http://zww.me/archives/25502">围观</a>。</p>
<p><a href="http://www.xptt.com/wp-content/uploads/2011/08/110811fccomments.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="110811-fc-comments" border="0" alt="110811-fc-comments" src="http://www.xptt.com/wp-content/uploads/2011/08/110811fccomments_thumb.jpg" width="424" height="223" /></a> </p>
<p><strong>修改地方：</strong></p>
<p>&lt;a href=&quot;'.get_comment_link( $fc_comment-&gt;comment_ID, array('type' =&gt; 'all')).'&quot;&gt;'.$fc_avatar.'&lt;/a&gt;</p>
<p>改为：</p>
<p>&lt;a href=&quot;'.$fc_comment-&gt;comment_author_url.'&quot;&gt;'.$fc_avatar.'&lt;/a&gt;</p>
<p>最新文章的评论在首页显示，那么点击评论头像，就可以直接打开评论者的网站，这样做也是为了希望大家能踊跃发表评论。</p>
<p>以下代码放在首页的&lt;?php the_content(); ?&gt;下面，这样会让文章列表的每篇文章都调用，影响页面速度，最好你的主页也像我一样的格式，分开调用文章列表。</p>
<blockquote><p>&lt;?php $nums=6; //要显示几个评论      <br />$get_comments_num=30; //获取最大评论数，主要用来排除博主的评论。       <br />$fc_comments = get_comments('status=approve&amp;type=comment&amp;number='.$get_comments_num.'&amp;post_id='.get_the_ID());       <br />if ( !empty($fc_comments) ) {       <br />&#160;&#160;&#160;&#160; $my_email=get_bloginfo ('admin_email'); //排除管理员的评论       <br />&#160;&#160;&#160;&#160; $i = 1; ?&gt;       <br />&#160;&#160;&#160;&#160; &lt;div class=&quot;fc_comments&quot;&gt;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;ul&gt;&lt;?php       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $commentcount = $fc_comments-&gt;comment_count;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $fc_output='';       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; foreach ($fc_comments as $fc_comment) {       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($fc_comment-&gt;comment_author_email != $my_email) {       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $fc_avatar=get_avatar($fc_comment-&gt;comment_author_email,40);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $fc_output .= '&lt;li&gt;&lt;a href=&quot;'       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .$fc_comment-&gt;comment_author_url.'&quot;&gt;'       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .$fc_avatar       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .'&lt;/a&gt;&lt;ul&gt;&lt;li&gt;'       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .$fc_avatar       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .''       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .'&lt;p&gt;&lt;strong&gt;'.$fc_comment-&gt;comment_author.'&lt;/strong&gt;&lt;/p&gt;&lt;p&gt; '       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .$fc_comment-&gt;comment_date       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .'&lt;/p&gt;&lt;p&gt;'       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .convert_smilies(strip_tags($fc_comment-&gt;comment_content))       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .'&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;';       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($i == $nums || $i == $commentcount) break; //评论数量达到退出遍历       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ++$i;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; echo $fc_output;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($fc_output) echo '&lt;li class=&quot;fc_more&quot;&gt;', comments_popup_link('','',''), '&lt;/li&gt;';?&gt;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/ul&gt;       <br />&#160;&#160;&#160;&#160; &lt;/div&gt;&lt;?php       <br />} ?&gt;</p>
</blockquote>
<p>下面是CSS样式参考：</p>
<blockquote><p>.fc_comments ul ul p{margin:0;padding:0;}    <br />.fc_comments ul li{position:relative;list-style:none;float:left;line-height:18px;margin-right:5px;}     <br />.fc_comments ul li.fc_more{line-height:16px;padding-top:8px;}     <br />.fc_comments ul li img.avatar{width:40px;height:40px;margin:0;padding:1px;border:1px solid #ddd;}     <br />.fc_comments ul li img.avatar:hover{border-color:#999;}     <br />.fc_comments ul li:hover &gt; ul{display:block;}     <br />.fc_comments ul ul{display:none;position:absolute;bottom:40px;left:0;}     <br />.fc_comments ul ul li{width:280px;padding:5px;border:2px solid #999;background-color:#fff;}     <br />.fc_comments ul ul li img.avatar{float:left;width:16px;height:16px;margin:0;padding:0;margin-right:5px;}</p>
</blockquote>
<p>怎么样？有需要的话，也去折腾一下，比起原来我说的那种，这个简单方便多了，最后再次谢谢zww兄弟抽空跟腾。</p>
<blockquote><div>除非注明，<a title="郑永博客" href="http://www.xptt.com">郑永博客</a>文章均为原创，转载请以链接形式标明本文地址</div><div> 本文地址：<a rel="bookmark" title="wordpress首页显示最新文章的评论" href="http://www.xptt.com/wordpress-home-show-latest-posts-comments.html">http://www.xptt.com/wordpress-home-show-latest-posts-comments.html</a></div><div></div></blockquote><br /><div class="post_related"><div class="post_related_l"><h3>相关日志</h3><ul><li><a href="http://www.xptt.com/links-beautify-wordpress.html" title="wordpress友情链接美化 (2011年11月12日)">wordpress友情链接美化</a> (76)</li><li><a href="http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html" title="Contact Form 7 最强大的wordpress表单插件 (2011年09月2日)">Contact Form 7 最强大的wordpress表单插件</a> (49)</li><li><a href="http://www.xptt.com/wordpress-3d-theme.html" title="wordpress 3D主题 (2011年08月25日)">wordpress 3D主题</a> (58)</li><li><a href="http://www.xptt.com/gourmet-restaurant-wordpress-theme.html" title="wordpress餐馆主题Gourmet (2011年08月20日)">wordpress餐馆主题Gourmet</a> (62)</li><li><a href="http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html" title="wordpress首页列表显示每篇的评论头像 (2011年08月11日)">wordpress首页列表显示每篇的评论头像</a> (57)</li><li><a href="http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html" title="专业微博插件：wordpress同步到微博 (2011年07月27日)">专业微博插件：wordpress同步到微博</a> (67)</li><li><a href="http://www.xptt.com/no-comments-days.html" title="博客不能没有评论 (2011年07月3日)">博客不能没有评论</a> (41)</li><li><a href="http://www.xptt.com/powerful-microblogging-wordpress-plugin.html" title="强大的wordpress微博插件 (2011年06月27日)">强大的wordpress微博插件</a> (6)</li><li><a href="http://www.xptt.com/simple-to-the-site-to-accelerate.html" title="简单给网站加速 (2011年06月6日)">简单给网站加速</a> (8)</li><li><a href="http://www.xptt.com/they-complain-that-too-simple-theme.html" title="又嫌主题太简单 (2011年05月30日)">又嫌主题太简单</a> (3)</li></ul></div><div class="post_related_r"><h3>推荐日志</h3><ul><li>
<a title="为什么写博客？" href="http://www.xptt.com/why-write-blog.html" rel="bookmark">为什么写博客？</a>
</li>
<li>
<a title="让奥巴马告诉你为什么学习" href="http://www.xptt.com/obama-tell-you-why-learning.html" rel="bookmark">让奥巴马告诉你为什么学习</a>
</li>
<li>
<a title="破解wifi密码技术" href="http://www.xptt.com/crack-wifi-password-technology.html" rel="bookmark">破解wifi密码技术</a>
</li>
<li>
<a title="s60v3万能词典" href="http://www.xptt.com/abbyy-thesaurus.html" rel="bookmark">s60v3万能词典</a>
</li>
<li>
<a title="解决vmware虚拟机无法上网" href="http://www.xptt.com/vmware-virtual-machines-have-no-internet-access-solution.html" rel="bookmark">解决vmware虚拟机无法上网</a>
</li></ul></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.xptt.com/wordpress-home-show-latest-posts-comments.html/feed</wfw:commentRss>
		<slash:comments>43</slash:comments>
		</item>
		<item>
		<title>wordpress首页列表显示每篇的评论头像</title>
		<link>http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html</link>
		<comments>http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html#comments</comments>
		<pubDate>Thu, 11 Aug 2011 03:52:38 +0000</pubDate>
		<dc:creator>郑 永</dc:creator>
				<category><![CDATA[网络博客]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[文章列表]]></category>
		<category><![CDATA[评论头像]]></category>

		<guid isPermaLink="false">http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html</guid>
		<description><![CDATA[只看标题也许还未明白，我要实现的是，在首页的文章列表里，每篇文章显示指定数量的评论者gravatar头像，就是这么蛋疼的效果，在搜索里无法找到实现的方法，虽然有一两篇文章有提到方法，但是仍然不能实现只显示指定数量的头像效果。 曾实在想不出方法，试图修改免插件的评论排行版代码，结果显然是失败了，事实证明，我是多么的天真无知，就因为我不懂代码，最后找到了其他方法，百般尝试以后，被我折腾出效果来，可想而知，我对问题凭着一定要达到目的的精神，再次验证了那句话，只要努力，就一定会成功。 方法： 在WordPress主题的index.php文件的文章调用循环内，即while (have_posts()) : the_post();和endwhile;之间适当位置，添加以下代码： &#60;?php global $withcomments; $withcomments = true; comments_template(&#34;/index-comments.php&#34;);&#160; //调用模版 ?&#62; 如果你不用模版：上面的代码可以直接用：comments_template(); 但是这种方法跟文章页面调用评论没什么两样，最后会在首页显示一大堆评论信息和评论发表框，如何让它只显示评论者的gravatar头像，并且是指定数量，我想懂代码的一定很快就能折腾出来，但是不懂的，得尝试N次才能试出效果来。 我的模版是这样的：（另外还需要配合css才能控制显示效果） &#60;?php // Do not delete these lines &#160;&#160;&#160; if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) &#160;&#160;&#160;&#160;&#160;&#160;&#160; die ('Please do not load this page directly. Thanks!'); &#160;&#160;&#160; if (!empty($post-&#62;post_password)) { // if there's a password &#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($_COOKIE['wp-postpass_' . COOKIEHASH] [...]]]></description>
			<content:encoded><![CDATA[<p>只看标题也许还未明白，我要实现的是，在首页的文章列表里，每篇文章显示指定数量的评论者gravatar头像，就是这么蛋疼的效果，在搜索里无法找到实现的方法，虽然有一两篇文章有提到方法，但是仍然不能实现只显示指定数量的头像效果。</p>
<p>曾实在想不出方法，试图修改免插件的评论排行版代码，结果显然是失败了，事实证明，我是多么的天真无知，就因为我不懂代码，最后找到了其他方法，百般尝试以后，被我折腾出效果来，可想而知，我对问题凭着一定要达到目的的精神，再次验证了那句话，只要努力，就一定会成功。</p>
<p><a href="http://www.xptt.com/wp-content/uploads/2011/08/indexcomment.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="wordpress列表里显示评论" border="0" alt="wordpress列表里显示评论" src="http://www.xptt.com/wp-content/uploads/2011/08/indexcomment_thumb.png" width="474" height="512" /></a></p>
<p>方法：</p>
<p>在WordPress主题的index.php文件的文章调用循环内，即<code>while (have_posts()) : the_post();</code>和<code>endwhile;</code>之间适当位置，添加以下代码：</p>
<p>&lt;?php    <br />global $withcomments;     <br />$withcomments = true;     <br />comments_template(&quot;/index-comments.php&quot;);&#160; //调用模版     <br />?&gt;</p>
<p>如果你不用模版：上面的代码可以直接用：comments_template(); 但是这种方法跟文章页面调用评论没什么两样，最后会在首页显示一大堆评论信息和评论发表框，如何让它只显示评论者的gravatar头像，并且是指定数量，我想懂代码的一定很快就能折腾出来，但是不懂的，得尝试N次才能试出效果来。</p>
<p>我的模版是这样的：（另外还需要配合css才能控制显示效果）</p>
<p>&lt;?php // Do not delete these lines    <br />&#160;&#160;&#160; if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; die ('Please do not load this page directly. Thanks!');</p>
<p>&#160;&#160;&#160; if (!empty($post-&gt;post_password)) { // if there's a password    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post-&gt;post_password) {&#160; // and it doesn't match the cookie     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ?&gt;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;p class=&quot;nocomments&quot;&gt;This post is password protected. Enter the password to view comments.&lt;/p&gt;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;?php    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <br />&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160; /* This variable is for alternating comment background */    <br />&#160;&#160;&#160; $oddcomment = 'class=&quot;alt&quot; ';     <br />?&gt;</p>
<p>&lt;!-- You can start editing here. --&gt;</p>
<p>&lt;?php if ($comments) : ?&gt;    <br />&#160;&#160;&#160; &lt;ol class=&quot;commentlist&quot;&gt;     <br />&lt;ul class=&quot;comments-authors&quot;&gt;     <br />&lt;li class=&quot;comments-avatar1&quot;&gt;     <br />&#160;&#160;&#160; &lt;!--&lt;div style=&quot;margin-top:3px; height:10px;&quot;&gt;&lt;/div&gt;--&gt;     <br />&#160;&#160;&#160; &lt;?php foreach ($comments as $comment) : ?&gt;     <br />&#160;&#160;&#160; &lt;a href=&quot;#&quot; title=&quot;&lt;?php comment_text() ?&gt;&quot;&gt;&lt;?php if(function_exists('get_avatar')) { echo get_avatar($comment, '40'); } ?&gt;&lt;/a&gt;     <br />&lt;!--     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;h4 class=&quot;commentauthor&quot;&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;?php comment_author_link() ?&gt;:&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/h4&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;?php if ($comment-&gt;comment_approved == '0') : ?&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;em&gt;Your comment is awaiting moderation.&lt;/em&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;?php endif; ?&gt;&lt;?php comment_text() ?&gt;&lt;span style=&quot;float:left;&quot;&gt;&lt;/span&gt; --&gt;</p>
<p>&#160;&#160;&#160; &lt;?php    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; /* Changes every other comment to a different class */     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $oddcomment = ( empty( $oddcomment ) ) ? 'class=&quot;alt&quot; ' : '';     <br />&#160;&#160;&#160; ?&gt;</p>
<p>&#160;&#160;&#160; &lt;?php endforeach; /* end for each comment */ ?&gt;</p>
<p>&#160;&#160;&#160; &lt;/ol&gt;&lt;/li&gt;&lt;/ul&gt;</p>
<p>&lt;?php else : // this is displayed if there are no comments so far ?&gt;</p>
<p>&#160;&#160;&#160; &lt;?php if ('open' == $post-&gt;comment_status) : ?&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- If comments are open, but there are no comments. --&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;div class=&quot;post-content&quot;&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;div class=&quot;comment-counter&quot;&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;?php comments_popup_link(__( '0 Comments' ), __( '1 Comment' ), __( '% Comments' )); ?&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/div&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/div&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;ol class=&quot;commentlist&quot; style=&quot;margin-bottom:0;&quot;&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;li style=&quot;min-height:77px;&quot;&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;h4 class=&quot;commentauthor&quot;&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; No comments so far. Share your thoughts!     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/h4&gt;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/li&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/ol&gt;</p>
<p>&#160;&#160;&#160;&#160; &lt;?php else : // comments are closed ?&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- If comments are closed. --&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;p class=&quot;nocomments&quot;&gt;Comments are closed.&lt;/p&gt;</p>
<p>&#160;&#160;&#160; &lt;?php endif; ?&gt;    <br />&lt;?php endif; ?&gt;</p>
<p>如果有闲的慌的，可以玩玩，我已经把这个效果去掉了，感觉页面太大了，加载比较慢，不过你如果是一个喜欢折腾，并且喜欢有个性的，不妨也像这个站点一样，看看功能是否很给力，具体效果可以看看：<a href="http://www.takeasy.info">www.takeasy.info</a> 我感觉这个站点的主题很不错，作者玩的很有个性很出色，毕竟gae空间就是拿来玩的。</p>
<blockquote><div>除非注明，<a title="郑永博客" href="http://www.xptt.com">郑永博客</a>文章均为原创，转载请以链接形式标明本文地址</div><div> 本文地址：<a rel="bookmark" title="wordpress首页列表显示每篇的评论头像" href="http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html">http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html</a></div><div></div></blockquote><br /><div class="post_related"><div class="post_related_l"><h3>相关日志</h3><ul><li><a href="http://www.xptt.com/links-beautify-wordpress.html" title="wordpress友情链接美化 (2011年11月12日)">wordpress友情链接美化</a> (76)</li><li><a href="http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html" title="Contact Form 7 最强大的wordpress表单插件 (2011年09月2日)">Contact Form 7 最强大的wordpress表单插件</a> (49)</li><li><a href="http://www.xptt.com/wordpress-3d-theme.html" title="wordpress 3D主题 (2011年08月25日)">wordpress 3D主题</a> (58)</li><li><a href="http://www.xptt.com/gourmet-restaurant-wordpress-theme.html" title="wordpress餐馆主题Gourmet (2011年08月20日)">wordpress餐馆主题Gourmet</a> (62)</li><li><a href="http://www.xptt.com/wordpress-home-show-latest-posts-comments.html" title="wordpress首页显示最新文章的评论 (2011年08月12日)">wordpress首页显示最新文章的评论</a> (43)</li><li><a href="http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html" title="专业微博插件：wordpress同步到微博 (2011年07月27日)">专业微博插件：wordpress同步到微博</a> (67)</li><li><a href="http://www.xptt.com/powerful-microblogging-wordpress-plugin.html" title="强大的wordpress微博插件 (2011年06月27日)">强大的wordpress微博插件</a> (6)</li><li><a href="http://www.xptt.com/simple-to-the-site-to-accelerate.html" title="简单给网站加速 (2011年06月6日)">简单给网站加速</a> (8)</li><li><a href="http://www.xptt.com/they-complain-that-too-simple-theme.html" title="又嫌主题太简单 (2011年05月30日)">又嫌主题太简单</a> (3)</li></ul></div><div class="post_related_r"><h3>推荐日志</h3><ul><li>
<a title="为什么写博客？" href="http://www.xptt.com/why-write-blog.html" rel="bookmark">为什么写博客？</a>
</li>
<li>
<a title="让奥巴马告诉你为什么学习" href="http://www.xptt.com/obama-tell-you-why-learning.html" rel="bookmark">让奥巴马告诉你为什么学习</a>
</li>
<li>
<a title="破解wifi密码技术" href="http://www.xptt.com/crack-wifi-password-technology.html" rel="bookmark">破解wifi密码技术</a>
</li>
<li>
<a title="s60v3万能词典" href="http://www.xptt.com/abbyy-thesaurus.html" rel="bookmark">s60v3万能词典</a>
</li>
<li>
<a title="解决vmware虚拟机无法上网" href="http://www.xptt.com/vmware-virtual-machines-have-no-internet-access-solution.html" rel="bookmark">解决vmware虚拟机无法上网</a>
</li></ul></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html/feed</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
		<item>
		<title>专业微博插件：wordpress同步到微博</title>
		<link>http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html</link>
		<comments>http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html#comments</comments>
		<pubDate>Wed, 27 Jul 2011 14:13:14 +0000</pubDate>
		<dc:creator>郑 永</dc:creator>
				<category><![CDATA[网络博客]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[微博]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html</guid>
		<description><![CDATA[弃F5插件之后，我再次向大家推荐wordpress的微博专业插件wordpress微博连接，虽然之前介绍过了，不过它突飞猛进，一直更新，现在可以说功能更全面，更专业，更强大，详细介绍传送门，想安装这个插件，后台插件直接搜索关键字：wordpress微博连接，部分功能需要捐款10元才可以使用，不过我用它只因为它不仅支持同步到享拍微博通，而且同步的标题可以自定义设置以及图片同步！ 简单介绍 1. 可以使用腾讯微博、新浪微博、搜狐微博、网易微博、人人帐号、豆瓣帐号、Twitter登录WordPress博客，支持同步评论到相对应的微博。 (捐赠版还支持QQ、开心网、Google、Yahoo等登录WordPress博客) 2. 发布或更新文章时同步一条该文章信息到Twitter、腾讯微博、新浪微博、网易微博、搜狐微博、人人网，开心网，嘀咕、豆瓣、百度说吧、饭否、人间网、做啥、Follow5、享拍微博通等。 3. 支持自定义API Key，用于显示微博的“来自xxx”，请在“同步设置”的开放平台下面填写。 4. 支持在自定义页面一键发布新鲜事到各大微博和社区。查看 5. 支持多作者博客，每位作者发布的文章都可以同步到他们各自绑定的微博上。 6. 目前支持同时把文章出现的第一张图片同步到 腾讯微博、新浪微博、搜狐微博、网易微博、Follow5、人间网、雷猴、享拍微博通。 7. 把文章出现的第一个视频同步到支持视频的微博。 8. 支持把文章分类和文章标签当成微博话题。 9. 支持自定义消息前缀。 10. 支持t.cn短网址。 11. 支持widget(小工具)拖拽激活 边栏登录按钮(在连接设置中开启)。 12. Twitter、腾讯微博、新浪微博、搜狐微博、网易微博、豆瓣采用OAuth授权。 13. 同步到Twitter时，国内主机用户可以选择使用代理，中国大陆地区第一次绑定帐号，必须翻墙一次。 现在我就是利用这个插件来同步内容到享拍微博通，享拍微博通再同步到各大微博。为什么使用享拍微博通？ 1.同步速度快，早晚一样。 2.支持更多微博。 3.支持更多手机平台。 4.客户端软件稳定，界面漂亮。 5.专业同步服务 接着推荐一个技巧，新浪微博RSS生成器，也支持QQ微博，平时别人访问你的微博总是要登录才可以看到内容，如果你没有在侧边输出微博秀，或是觉得不美观或没必要，那么完全可以在你的页面提供一个微博地址超链接，这个超链接就是微博秀里面提供的网页地址，这样他们访问的话，就不用再登录才可以看到内容了。 除非注明，郑永博客文章均为原创，转载请以链接形式标明本文地址 本文地址：http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html相关日志强大的wordpress微博插件 (6)Contact Form 7 最强大的wordpress表单插件 (49)wp同步微博插件wp-connect (36)微博实名制 (18)Follow5关闭通知（所有服务） (49)wordpress友情链接美化 (76)wordpress 3D主题 (58)wordpress餐馆主题Gourmet (62)wordpress首页显示最新文章的评论 (43)wordpress首页列表显示每篇的评论头像 (57)推荐日志 [...]]]></description>
			<content:encoded><![CDATA[<p>弃F5插件之后，我再次向大家推荐wordpress的微博专业插件wordpress微博连接，虽然之前介绍过了，不过它突飞猛进，一直更新，现在可以说功能更全面，更专业，更强大，详细介绍<a href="http://loginsns.com/" target="_blank">传送门</a>，想安装这个插件，后台插件直接搜索关键字：wordpress微博连接，部分功能需要捐款10元才可以使用，<strong><font color="#ff0000">不过我用它只因为它不仅支持同步到享拍微博通，而且同步的标题可以自定义设置以及图片同步！</font></strong></p>
<blockquote><p><strong>简单介绍</strong></p>
<p>1. 可以使用腾讯微博、新浪微博、搜狐微博、网易微博、人人帐号、豆瓣帐号、Twitter登录WordPress博客，支持同步评论到相对应的微博。 (捐赠版还支持QQ、开心网、Google、Yahoo等登录WordPress博客)</p>
<p>2. 发布或更新文章时同步一条该文章信息到Twitter、腾讯微博、新浪微博、网易微博、搜狐微博、人人网，开心网，嘀咕、豆瓣、百度说吧、饭否、人间网、做啥、Follow5、享拍微博通等。</p>
<p>3. 支持自定义API Key，用于显示微博的“来自xxx”，请在“同步设置”的开放平台下面填写。</p>
<p>4. 支持在自定义页面一键发布新鲜事到各大微博和社区。<a href="http://loginsns.com/#faqs_4">查看</a></p>
<p>5. 支持多作者博客，每位作者发布的文章都可以同步到他们各自绑定的微博上。</p>
<p>6. 目前支持同时把文章出现的第一张图片同步到 腾讯微博、新浪微博、搜狐微博、网易微博、Follow5、人间网、雷猴、享拍微博通。</p>
<p>7. 把文章出现的第一个视频同步到支持视频的微博。</p>
<p>8. 支持把文章分类和文章标签当成微博话题。</p>
<p>9. 支持自定义消息前缀。</p>
<p>10. 支持t.cn短网址。</p>
<p>11. 支持widget(小工具)拖拽激活 边栏登录按钮(在连接设置中开启)。</p>
<p>12. Twitter、腾讯微博、新浪微博、搜狐微博、网易微博、豆瓣采用OAuth授权。</p>
<p>13. 同步到Twitter时，国内主机用户可以选择使用代理，中国大陆地区第一次绑定帐号，必须翻墙一次。</p>
<p><a href="http://www.xptt.com/wp-content/uploads/2011/07/wpconect.jpg"><img title="wp-conect" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="162" alt="wp-conect" src="http://www.xptt.com/wp-content/uploads/2011/07/wpconect_thumb.jpg" width="244" border="0" /></a> </p>
</blockquote>
<p>现在我就是利用这个插件来同步内容到享拍微博通，享拍微博通再同步到各大微博。为什么使用享拍微博通？     <br />1.同步速度快，早晚一样。     <br />2.支持更多微博。     <br />3.支持更多手机平台。     <br />4.客户端软件稳定，界面漂亮。     <br />5.专业同步服务</p>
<p>接着推荐一个技巧，<a href="http://ishow.sinaapp.com/rss.php">新浪微博RSS生成器</a>，也支持QQ微博，平时别人访问你的微博总是要登录才可以看到内容，如果你没有在侧边输出微博秀，或是觉得不美观或没必要，那么完全可以在你的页面提供一个微博地址超链接，这个超链接就是微博秀里面提供的网页地址，这样他们访问的话，就不用再登录才可以看到内容了。</p>
<blockquote><div>除非注明，<a title="郑永博客" href="http://www.xptt.com">郑永博客</a>文章均为原创，转载请以链接形式标明本文地址</div><div> 本文地址：<a rel="bookmark" title="专业微博插件：wordpress同步到微博" href="http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html">http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html</a></div><div></div></blockquote><br /><div class="post_related"><div class="post_related_l"><h3>相关日志</h3><ul><li><a href="http://www.xptt.com/powerful-microblogging-wordpress-plugin.html" title="强大的wordpress微博插件 (2011年06月27日)">强大的wordpress微博插件</a> (6)</li><li><a href="http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html" title="Contact Form 7 最强大的wordpress表单插件 (2011年09月2日)">Contact Form 7 最强大的wordpress表单插件</a> (49)</li><li><a href="http://www.xptt.com/synchronization-microblogging-wp-wp-connect-plug.html" title="wp同步微博插件wp-connect (2011年02月23日)">wp同步微博插件wp-connect</a> (36)</li><li><a href="http://www.xptt.com/microblogging-real-name-system.html" title="微博实名制 (2011年12月20日)">微博实名制</a> (18)</li><li><a href="http://www.xptt.com/follow5-closure-notice-all-services.html" title="Follow5关闭通知（所有服务） (2011年11月16日)">Follow5关闭通知（所有服务）</a> (49)</li><li><a href="http://www.xptt.com/links-beautify-wordpress.html" title="wordpress友情链接美化 (2011年11月12日)">wordpress友情链接美化</a> (76)</li><li><a href="http://www.xptt.com/wordpress-3d-theme.html" title="wordpress 3D主题 (2011年08月25日)">wordpress 3D主题</a> (58)</li><li><a href="http://www.xptt.com/gourmet-restaurant-wordpress-theme.html" title="wordpress餐馆主题Gourmet (2011年08月20日)">wordpress餐馆主题Gourmet</a> (62)</li><li><a href="http://www.xptt.com/wordpress-home-show-latest-posts-comments.html" title="wordpress首页显示最新文章的评论 (2011年08月12日)">wordpress首页显示最新文章的评论</a> (43)</li><li><a href="http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html" title="wordpress首页列表显示每篇的评论头像 (2011年08月11日)">wordpress首页列表显示每篇的评论头像</a> (57)</li></ul></div><div class="post_related_r"><h3>推荐日志</h3><ul><li>
<a title="为什么写博客？" href="http://www.xptt.com/why-write-blog.html" rel="bookmark">为什么写博客？</a>
</li>
<li>
<a title="让奥巴马告诉你为什么学习" href="http://www.xptt.com/obama-tell-you-why-learning.html" rel="bookmark">让奥巴马告诉你为什么学习</a>
</li>
<li>
<a title="破解wifi密码技术" href="http://www.xptt.com/crack-wifi-password-technology.html" rel="bookmark">破解wifi密码技术</a>
</li>
<li>
<a title="s60v3万能词典" href="http://www.xptt.com/abbyy-thesaurus.html" rel="bookmark">s60v3万能词典</a>
</li>
<li>
<a title="解决vmware虚拟机无法上网" href="http://www.xptt.com/vmware-virtual-machines-have-no-internet-access-solution.html" rel="bookmark">解决vmware虚拟机无法上网</a>
</li></ul></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html/feed</wfw:commentRss>
		<slash:comments>67</slash:comments>
		</item>
		<item>
		<title>强大的wordpress微博插件</title>
		<link>http://www.xptt.com/powerful-microblogging-wordpress-plugin.html</link>
		<comments>http://www.xptt.com/powerful-microblogging-wordpress-plugin.html#comments</comments>
		<pubDate>Mon, 27 Jun 2011 14:04:48 +0000</pubDate>
		<dc:creator>郑 永</dc:creator>
				<category><![CDATA[网络博客]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[微博]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.xptt.com/powerful-microblogging-wordpress-plugin.html</guid>
		<description><![CDATA[自从微薄流行以后，大多数个人博客都纷纷探讨如何同步信息到微博，又想方设法在博客里分享微博的信息，不管是为了推荐自己也好，还是推广博客增加流量也罢，最终目的就是，分享自己的所见所闻。 今天要分享的就是如何在博客里调用微博的最新信息，尽管这方面的方法很多，也有很多微博提供微博秀（侧边挂件），但是官方提供的微博秀代码不是网页嵌入式的，就是显示界面不够理想的，又或则加入头像之类的，反正对于我们这些折腾一族是难以接受的，以前有人利用wordpress的订阅函数来显示最新微博信息，但是输出内容不理想，不是时间有问题，就是缓存问题，功能也只能是一段没有链接的文字，所以，现在大家也不用再折腾了，细心的Ray Chow网友已经帮我们弄了一个插件WP Microblogs，这个插件功能强大，可以说既想到我们这些代码调用的，也想到适合新手侧边栏调用的，目前功能如下： WP Microblogs 可以在 WordPress 中显示最新微博，目前支持新浪微博、腾讯微博、Twitter、网易微博、搜狐微博、嘀咕、饭否、做啥、人间 除 XAuth 之外的所有可用的认证方式对于更加开放的微博（例如 Twitter、嘀咕、饭否、做啥），只输入用户名即可展示微博。 在目前的版本中，至少已经包含下列功能： 提供一种直接展示最新微博的小工具； 智能过滤重复微博，为微博中提到的 URL 添加链接； 使用 wm_tweet() 或 wm_tweets() 在指定位置展示最新的一条或数条微博； 使用 wm_get_tweet_arr() 或 wm_get_tweets_arr() 获得微博原始数据； 较完善的缓存机制，减少资源占用； 提供数个过滤器(filter)与动作(action)自定义展示方式。 有人问这与使用官方微博展示插件有何区别，我这样回答： 可以按时间顺序同时显示多个微博，还能过滤重复的微博； 样式可由自己控制，想做成啥样就做成啥样，例如给图片加上灯箱（参见右方小工具“我在说啥”），或者集成到一句话公告模块； 提供缓存机制，不必担心微博网站挂掉，国外主机还能直接显示 Twitter 时间线。 高级应用：在任何地方显示微博 高级应用：使用自定义样式表与 JS 脚本 详情进入：http://beamnote.com/2011/wp-microblogs.html 效果可以看看我的侧边栏，怎么样，不一般吧？还可以显示相对时间和图片等，而且还能显示多个微博，这个对我来说是没什么用，我的每个微博内容差不多都一样，腾讯给了我一个勋章，就是同步控，对于我们这些同步控的人来说，真希望腾讯能出一个同步插件，把腾讯的微博信息同步到follow5，再通过follow5同步到其他微博，那该多好，因为说实在的，我注册那么多微博账号，就腾讯微博，不闻不问，也有人来关注你，因为那里有你认识的人，肯定也有你想关注的人，而新浪微博呢？谁又会来关注呢？你又会去关注谁呢？腾讯本来就是一个通讯工具，qq已离不开我们的生活，腾讯微博的优势从它迅速上亿的用户就可以看出，在QQ上使用微博无疑是最好不过了。 不管你用什么微博，这个插件可以满足你在博客的任何地方输出微博信息，它是目前最灵活功能最强大的微博输出插件。 除非注明，郑永博客文章均为原创，转载请以链接形式标明本文地址 本文地址：http://www.xptt.com/powerful-microblogging-wordpress-plugin.html相关日志专业微博插件：wordpress同步到微博 (67)Contact Form 7 最强大的wordpress表单插件 (49)wp同步微博插件wp-connect (36)微博实名制 (18)Follow5关闭通知（所有服务） (49)wordpress友情链接美化 (76)wordpress 3D主题 [...]]]></description>
			<content:encoded><![CDATA[<p> 自从微薄流行以后，大多数个人博客都纷纷探讨如何同步信息到微博，又想方设法在博客里分享微博的信息，不管是为了推荐自己也好，还是推广博客增加流量也罢，最终目的就是，分享自己的所见所闻。    <br /> 今天要分享的就是如何在博客里调用微博的最新信息，尽管这方面的方法很多，也有很多微博提供微博秀（侧边挂件），但是官方提供的微博秀代码不是网页嵌入式的，就是显示界面不够理想的，又或则加入头像之类的，反正对于我们这些折腾一族是难以接受的，以前有人利用wordpress的订阅函数来显示最新微博信息，但是输出内容不理想，不是时间有问题，就是缓存问题，功能也只能是一段没有链接的文字，所以，现在大家也不用再折腾了，细心的<a href="http://beamnote.com/author/raychow">Ray Chow</a>网友已经帮我们弄了一个插件<a href="http://beamnote.com/2011/wp-microblogs.html" target="_blank">WP Microblogs</a>，这个插件功能强大，可以说既想到我们这些代码调用的，也想到适合新手侧边栏调用的，目前功能如下：</p>
<blockquote><p>WP Microblogs 可以在 <a href="http://www.xptt.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">WordPress</a> 中显示最新微博，目前支持新浪微博、腾讯微博、Twitter、网易微博、搜狐微博、嘀咕、饭否、做啥、人间 除 <code>XAuth</code> 之外的所有可用的认证方式对于更加开放的微博（例如 Twitter、嘀咕、饭否、做啥），只输入用户名即可展示微博。</p>
<p>在目前的版本中，至少已经包含下列功能：</p>
<ul>
<li>提供一种直接展示最新微博的小工具； </li>
<li>智能过滤重复微博，为微博中提到的 URL 添加链接； </li>
<li>使用 <code>wm_tweet()</code> 或 <code>wm_tweets()</code> 在指定位置展示最新的一条或数条微博； </li>
<li>使用 <code>wm_get_tweet_arr()</code> 或 <code>wm_get_tweets_arr()</code> 获得微博原始数据； </li>
<li>较完善的缓存机制，减少资源占用； </li>
<li>提供数个过滤器(filter)与动作(action)自定义展示方式。 </li>
</ul>
<p>有人问这与使用官方微博展示插件有何区别，我这样回答：</p>
<ul>
<li>可以按时间顺序同时显示多个微博，还能过滤重复的微博； </li>
<li>样式可由自己控制，想做成啥样就做成啥样，例如给图片加上灯箱（参见右方小工具“我在说啥”），或者集成到一句话公告模块； </li>
<li>提供缓存机制，不必担心微博网站挂掉，国外主机还能直接显示 Twitter 时间线。        </li>
<p><a href="http://beamnote.com/2011/wp-microblogs.html/2">高级应用：在任何地方显示微博</a></p>
<p><a href="http://beamnote.com/2011/wp-microblogs.html/3">高级应用：使用自定义样式表与 JS 脚本</a>        </p>
<p>详情进入：<a title="http://beamnote.com/2011/wp-microblogs.html" href="http://beamnote.com/2011/wp-microblogs.html">http://beamnote.com/2011/wp-microblogs.html</a></p>
</ul>
</blockquote>
<p>  效果可以看看我的侧边栏，怎么样，不一般吧？还可以显示相对时间和图片等，而且还能显示多个微博，这个对我来说是没什么用，我的每个微博内容差不多都一样，腾讯给了我一个勋章，就是同步控，对于我们这些同步控的人来说，真希望腾讯能出一个同步插件，把腾讯的微博信息同步到follow5，再通过follow5同步到其他微博，那该多好，因为说实在的，我注册那么多微博账号，就腾讯微博，不闻不问，也有人来关注你，因为那里有你认识的人，肯定也有你想关注的人，而新浪微博呢？谁又会来关注呢？你又会去关注谁呢？腾讯本来就是一个通讯工具，qq已离不开我们的生活，腾讯微博的优势从它迅速上亿的用户就可以看出，在QQ上使用微博无疑是最好不过了。  <br /> 不管你用什么微博，这个插件可以满足你在博客的任何地方输出微博信息，它是目前最灵活功能最强大的微博输出插件。</p>
<blockquote><div>除非注明，<a title="郑永博客" href="http://www.xptt.com">郑永博客</a>文章均为原创，转载请以链接形式标明本文地址</div><div> 本文地址：<a rel="bookmark" title="强大的wordpress微博插件" href="http://www.xptt.com/powerful-microblogging-wordpress-plugin.html">http://www.xptt.com/powerful-microblogging-wordpress-plugin.html</a></div><div></div></blockquote><br /><div class="post_related"><div class="post_related_l"><h3>相关日志</h3><ul><li><a href="http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html" title="专业微博插件：wordpress同步到微博 (2011年07月27日)">专业微博插件：wordpress同步到微博</a> (67)</li><li><a href="http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html" title="Contact Form 7 最强大的wordpress表单插件 (2011年09月2日)">Contact Form 7 最强大的wordpress表单插件</a> (49)</li><li><a href="http://www.xptt.com/synchronization-microblogging-wp-wp-connect-plug.html" title="wp同步微博插件wp-connect (2011年02月23日)">wp同步微博插件wp-connect</a> (36)</li><li><a href="http://www.xptt.com/microblogging-real-name-system.html" title="微博实名制 (2011年12月20日)">微博实名制</a> (18)</li><li><a href="http://www.xptt.com/follow5-closure-notice-all-services.html" title="Follow5关闭通知（所有服务） (2011年11月16日)">Follow5关闭通知（所有服务）</a> (49)</li><li><a href="http://www.xptt.com/links-beautify-wordpress.html" title="wordpress友情链接美化 (2011年11月12日)">wordpress友情链接美化</a> (76)</li><li><a href="http://www.xptt.com/wordpress-3d-theme.html" title="wordpress 3D主题 (2011年08月25日)">wordpress 3D主题</a> (58)</li><li><a href="http://www.xptt.com/gourmet-restaurant-wordpress-theme.html" title="wordpress餐馆主题Gourmet (2011年08月20日)">wordpress餐馆主题Gourmet</a> (62)</li><li><a href="http://www.xptt.com/wordpress-home-show-latest-posts-comments.html" title="wordpress首页显示最新文章的评论 (2011年08月12日)">wordpress首页显示最新文章的评论</a> (43)</li><li><a href="http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html" title="wordpress首页列表显示每篇的评论头像 (2011年08月11日)">wordpress首页列表显示每篇的评论头像</a> (57)</li></ul></div><div class="post_related_r"><h3>推荐日志</h3><ul><li>
<a title="为什么写博客？" href="http://www.xptt.com/why-write-blog.html" rel="bookmark">为什么写博客？</a>
</li>
<li>
<a title="让奥巴马告诉你为什么学习" href="http://www.xptt.com/obama-tell-you-why-learning.html" rel="bookmark">让奥巴马告诉你为什么学习</a>
</li>
<li>
<a title="破解wifi密码技术" href="http://www.xptt.com/crack-wifi-password-technology.html" rel="bookmark">破解wifi密码技术</a>
</li>
<li>
<a title="s60v3万能词典" href="http://www.xptt.com/abbyy-thesaurus.html" rel="bookmark">s60v3万能词典</a>
</li>
<li>
<a title="解决vmware虚拟机无法上网" href="http://www.xptt.com/vmware-virtual-machines-have-no-internet-access-solution.html" rel="bookmark">解决vmware虚拟机无法上网</a>
</li></ul></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.xptt.com/powerful-microblogging-wordpress-plugin.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>简单给网站加速</title>
		<link>http://www.xptt.com/simple-to-the-site-to-accelerate.html</link>
		<comments>http://www.xptt.com/simple-to-the-site-to-accelerate.html#comments</comments>
		<pubDate>Mon, 06 Jun 2011 16:09:52 +0000</pubDate>
		<dc:creator>郑 永</dc:creator>
				<category><![CDATA[网络博客]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[开启Gzip]]></category>
		<category><![CDATA[网站加速]]></category>

		<guid isPermaLink="false">http://www.xptt.com/simple-to-the-site-to-accelerate.html</guid>
		<description><![CDATA[Gzip压缩方式给网站加速无疑是最简单实用的网站工具，压缩率提高80%左右，大大提高了网页访问速度，本站原来是有的，但是自从主机搬家以后，就忘记在cPanel开启这个强大的Gzip压缩功能，直到今天才想起给网站加速，因为网站的大小对seo有帮助，有人说页面最好控制在30K以内，也有人说最好是10K以内，当然越小越好，这样在网速非常慢的情况下，也能轻易打开网站，比如手机访问网站等。 那么如何开启Gzip压缩功能呢？首先你先测试一下你的网站是否已经开启了gzip压缩，网页GZIP压缩检测，如果没有gzip加速功能，那么用以下两种简单的方法给网站加速： 方法一：新建一个文本文件，输入以下的内容，保存为 php.ini 文件上传到网站根目录即可。 output_buffering = Off output_handler = zlib.output_compression = On 方法二：在根目录index.php文件中找到 define('WP_USE_THEMES', true); 在后面加入下面的代码即可： if(ereg('gzip',$_SERVER['HTTP_ACCEPT_ENCODING'])){ if(substr($_SERVER['REQUEST_URI'],0,10)!='/wp-content/uploads/')//排除不需要Gzip压缩的目录，图片一般不推荐启用Gzip压缩 ob_start('ob_gzhandler'); } 好了，开启Gzip以后，再去网页GZIP压缩检测看看，怎么样，是不是提高了80%左右啊？本站使用方法一，方法二适合无法上传文件的朋友。 除非注明，郑永博客文章均为原创，转载请以链接形式标明本文地址 本文地址：http://www.xptt.com/simple-to-the-site-to-accelerate.html相关日志wordpress友情链接美化 (76)Contact Form 7 最强大的wordpress表单插件 (49)wordpress 3D主题 (58)wordpress餐馆主题Gourmet (62)wordpress首页显示最新文章的评论 (43)wordpress首页列表显示每篇的评论头像 (57)专业微博插件：wordpress同步到微博 (67)强大的wordpress微博插件 (6)又嫌主题太简单 (3)推荐日志 为什么写博客？ 让奥巴马告诉你为什么学习 破解wifi密码技术 s60v3万能词典 解决vmware虚拟机无法上网]]></description>
			<content:encoded><![CDATA[<p> Gzip压缩方式给网站加速无疑是最简单实用的网站工具，压缩率提高80%左右，大大提高了网页访问速度，本站原来是有的，但是自从主机搬家以后，就忘记在cPanel开启这个强大的Gzip压缩功能，直到今天才想起给网站加速，因为网站的大小对seo有帮助，有人说页面最好控制在30K以内，也有人说最好是10K以内，当然越小越好，这样在网速非常慢的情况下，也能轻易打开网站，比如手机访问网站等。    <br /> 那么如何开启Gzip压缩功能呢？首先你先测试一下你的网站是否已经开启了gzip压缩，<a href="http://tool.chinaz.com/Gzips/">网页GZIP压缩检测</a>，如果没有gzip加速功能，那么用以下两种简单的方法给网站加速：     </p>
<p> <strong>方法一：</strong>新建一个文本文件，输入以下的内容，保存为 php.ini 文件上传到网站根目录即可。     </p>
<p>output_buffering = Off     <br />output_handler =     <br />zlib.output_compression = On</p>
<p> <strong>方法二：</strong>在根目录index.php文件中找到</p>
<p>define('WP_USE_THEMES', true);</p>
<p>在后面加入下面的代码即可：</p>
<p>if(ereg('gzip',$_SERVER['HTTP_ACCEPT_ENCODING'])){    <br />if(substr($_SERVER['REQUEST_URI'],0,10)!='/wp-content/uploads/')//排除不需要Gzip压缩的目录，图片一般不推荐启用Gzip压缩     <br />ob_start('ob_gzhandler');     <br />}     <br /> 好了，开启Gzip以后，再去<a href="http://tool.chinaz.com/Gzips/">网页GZIP压缩检测</a>看看，怎么样，是不是提高了80%左右啊？本站使用方法一，方法二适合无法上传文件的朋友。</p>
<blockquote><div>除非注明，<a title="郑永博客" href="http://www.xptt.com">郑永博客</a>文章均为原创，转载请以链接形式标明本文地址</div><div> 本文地址：<a rel="bookmark" title="简单给网站加速" href="http://www.xptt.com/simple-to-the-site-to-accelerate.html">http://www.xptt.com/simple-to-the-site-to-accelerate.html</a></div><div></div></blockquote><br /><div class="post_related"><div class="post_related_l"><h3>相关日志</h3><ul><li><a href="http://www.xptt.com/links-beautify-wordpress.html" title="wordpress友情链接美化 (2011年11月12日)">wordpress友情链接美化</a> (76)</li><li><a href="http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html" title="Contact Form 7 最强大的wordpress表单插件 (2011年09月2日)">Contact Form 7 最强大的wordpress表单插件</a> (49)</li><li><a href="http://www.xptt.com/wordpress-3d-theme.html" title="wordpress 3D主题 (2011年08月25日)">wordpress 3D主题</a> (58)</li><li><a href="http://www.xptt.com/gourmet-restaurant-wordpress-theme.html" title="wordpress餐馆主题Gourmet (2011年08月20日)">wordpress餐馆主题Gourmet</a> (62)</li><li><a href="http://www.xptt.com/wordpress-home-show-latest-posts-comments.html" title="wordpress首页显示最新文章的评论 (2011年08月12日)">wordpress首页显示最新文章的评论</a> (43)</li><li><a href="http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html" title="wordpress首页列表显示每篇的评论头像 (2011年08月11日)">wordpress首页列表显示每篇的评论头像</a> (57)</li><li><a href="http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html" title="专业微博插件：wordpress同步到微博 (2011年07月27日)">专业微博插件：wordpress同步到微博</a> (67)</li><li><a href="http://www.xptt.com/powerful-microblogging-wordpress-plugin.html" title="强大的wordpress微博插件 (2011年06月27日)">强大的wordpress微博插件</a> (6)</li><li><a href="http://www.xptt.com/they-complain-that-too-simple-theme.html" title="又嫌主题太简单 (2011年05月30日)">又嫌主题太简单</a> (3)</li></ul></div><div class="post_related_r"><h3>推荐日志</h3><ul><li>
<a title="为什么写博客？" href="http://www.xptt.com/why-write-blog.html" rel="bookmark">为什么写博客？</a>
</li>
<li>
<a title="让奥巴马告诉你为什么学习" href="http://www.xptt.com/obama-tell-you-why-learning.html" rel="bookmark">让奥巴马告诉你为什么学习</a>
</li>
<li>
<a title="破解wifi密码技术" href="http://www.xptt.com/crack-wifi-password-technology.html" rel="bookmark">破解wifi密码技术</a>
</li>
<li>
<a title="s60v3万能词典" href="http://www.xptt.com/abbyy-thesaurus.html" rel="bookmark">s60v3万能词典</a>
</li>
<li>
<a title="解决vmware虚拟机无法上网" href="http://www.xptt.com/vmware-virtual-machines-have-no-internet-access-solution.html" rel="bookmark">解决vmware虚拟机无法上网</a>
</li></ul></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.xptt.com/simple-to-the-site-to-accelerate.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>又嫌主题太简单</title>
		<link>http://www.xptt.com/they-complain-that-too-simple-theme.html</link>
		<comments>http://www.xptt.com/they-complain-that-too-simple-theme.html#comments</comments>
		<pubDate>Mon, 30 May 2011 15:21:46 +0000</pubDate>
		<dc:creator>郑 永</dc:creator>
				<category><![CDATA[网络博客]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主题优化]]></category>
		<category><![CDATA[分类优化]]></category>

		<guid isPermaLink="false">http://www.xptt.com/they-complain-that-too-simple-theme.html</guid>
		<description><![CDATA[       已经很久没有折腾博客主题了，对这些已经淡定了，因为这个主题对我来说已经很满意了，这是我坚持最久的一款主题，总算以往对博客的日夜折腾没白费。         虽然主题没有换，但是小折腾是难免的，锁住一款主题后，接着就是一点一点的修改成自己想要的，一向喜欢简单的我，有时候也会移情别恋，前次把图片和广告都去掉，现在发现页面都是密密麻麻的字，会让读者失去阅读的兴趣，不能太自私啊，博客毕竟也有别人在看，所以啊，给页面和内容页加一些图片或广告，看起来没那么单调，如果哪天蛋疼的话，再撤掉，首页文章显示分类，因为时间问题，分类图片又大又丑，稍后会改好，文章内容广告环绕，评论背景也添加了图片，评论框旁边添加了广告，连网站的favicon也变成动态的。         因为时间问题，细节方面都很仓促，我会慢慢完善它。另外想说的是，在这次优化中，我把以前复杂的分类给去的，以前一篇文章都有属两三个分类，不易于管理分类，因为标签就起到很好的分类作用，所以分类可以尽量少点。 除非注明，郑永博客文章均为原创，转载请以链接形式标明本文地址 本文地址：http://www.xptt.com/they-complain-that-too-simple-theme.html相关日志wordpress友情链接美化 (76)Contact Form 7 最强大的wordpress表单插件 (49)wordpress 3D主题 (58)wordpress餐馆主题Gourmet (62)wordpress首页显示最新文章的评论 (43)wordpress首页列表显示每篇的评论头像 (57)专业微博插件：wordpress同步到微博 (67)强大的wordpress微博插件 (6)简单给网站加速 (8)elegant box主题优化 (1)推荐日志 为什么写博客？ 让奥巴马告诉你为什么学习 破解wifi密码技术 s60v3万能词典 解决vmware虚拟机无法上网]]></description>
			<content:encoded><![CDATA[<p>       已经很久没有折腾博客主题了，对这些已经淡定了，因为这个主题对我来说已经很满意了，这是我坚持最久的一款主题，总算以往对博客的日夜折腾没白费。<br />
        虽然主题没有换，但是小折腾是难免的，锁住一款主题后，接着就是一点一点的修改成自己想要的，一向喜欢简单的我，有时候也会移情别恋，前次把图片和广告都去掉，现在发现页面都是密密麻麻的字，会让读者失去阅读的兴趣，不能太自私啊，博客毕竟也有别人在看，所以啊，给页面和内容页加一些图片或广告，看起来没那么单调，如果哪天蛋疼的话，再撤掉，首页文章显示分类，因为时间问题，分类图片又大又丑，稍后会改好，文章内容广告环绕，评论背景也添加了图片，评论框旁边添加了广告，连网站的favicon也变成动态的。<br />
        因为时间问题，细节方面都很仓促，我会慢慢完善它。另外想说的是，在这次优化中，我把以前复杂的分类给去的，以前一篇文章都有属两三个分类，不易于管理分类，因为标签就起到很好的分类作用，所以分类可以尽量少点。</p>
<blockquote><div>除非注明，<a title="郑永博客" href="http://www.xptt.com">郑永博客</a>文章均为原创，转载请以链接形式标明本文地址</div><div> 本文地址：<a rel="bookmark" title="又嫌主题太简单" href="http://www.xptt.com/they-complain-that-too-simple-theme.html">http://www.xptt.com/they-complain-that-too-simple-theme.html</a></div><div></div></blockquote><br /><div class="post_related"><div class="post_related_l"><h3>相关日志</h3><ul><li><a href="http://www.xptt.com/links-beautify-wordpress.html" title="wordpress友情链接美化 (2011年11月12日)">wordpress友情链接美化</a> (76)</li><li><a href="http://www.xptt.com/contact-form-7-form-the-most-powerful-wordpress-plugin.html" title="Contact Form 7 最强大的wordpress表单插件 (2011年09月2日)">Contact Form 7 最强大的wordpress表单插件</a> (49)</li><li><a href="http://www.xptt.com/wordpress-3d-theme.html" title="wordpress 3D主题 (2011年08月25日)">wordpress 3D主题</a> (58)</li><li><a href="http://www.xptt.com/gourmet-restaurant-wordpress-theme.html" title="wordpress餐馆主题Gourmet (2011年08月20日)">wordpress餐馆主题Gourmet</a> (62)</li><li><a href="http://www.xptt.com/wordpress-home-show-latest-posts-comments.html" title="wordpress首页显示最新文章的评论 (2011年08月12日)">wordpress首页显示最新文章的评论</a> (43)</li><li><a href="http://www.xptt.com/wordpress-page-list-shows-each-picture-comments.html" title="wordpress首页列表显示每篇的评论头像 (2011年08月11日)">wordpress首页列表显示每篇的评论头像</a> (57)</li><li><a href="http://www.xptt.com/professional-microblogging-plugin-wordpress-microblogging-connection.html" title="专业微博插件：wordpress同步到微博 (2011年07月27日)">专业微博插件：wordpress同步到微博</a> (67)</li><li><a href="http://www.xptt.com/powerful-microblogging-wordpress-plugin.html" title="强大的wordpress微博插件 (2011年06月27日)">强大的wordpress微博插件</a> (6)</li><li><a href="http://www.xptt.com/simple-to-the-site-to-accelerate.html" title="简单给网站加速 (2011年06月6日)">简单给网站加速</a> (8)</li><li><a href="http://www.xptt.com/elegant-box-theme-optimization.html" title="elegant box主题优化 (2011年02月2日)">elegant box主题优化</a> (1)</li></ul></div><div class="post_related_r"><h3>推荐日志</h3><ul><li>
<a title="为什么写博客？" href="http://www.xptt.com/why-write-blog.html" rel="bookmark">为什么写博客？</a>
</li>
<li>
<a title="让奥巴马告诉你为什么学习" href="http://www.xptt.com/obama-tell-you-why-learning.html" rel="bookmark">让奥巴马告诉你为什么学习</a>
</li>
<li>
<a title="破解wifi密码技术" href="http://www.xptt.com/crack-wifi-password-technology.html" rel="bookmark">破解wifi密码技术</a>
</li>
<li>
<a title="s60v3万能词典" href="http://www.xptt.com/abbyy-thesaurus.html" rel="bookmark">s60v3万能词典</a>
</li>
<li>
<a title="解决vmware虚拟机无法上网" href="http://www.xptt.com/vmware-virtual-machines-have-no-internet-access-solution.html" rel="bookmark">解决vmware虚拟机无法上网</a>
</li></ul></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.xptt.com/they-complain-that-too-simple-theme.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

