<?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>Jian Zhou &#187; 插件</title>
	<atom:link href="http://tiaozhanshu.net/tag/%e6%8f%92%e4%bb%b6/feed" rel="self" type="application/rss+xml" />
	<link>http://tiaozhanshu.net</link>
	<description>为了祖国母亲的荣辱。</description>
	<lastBuildDate>Sun, 25 Jul 2010 04:20:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Tiaozhanshu&#8217;s Table Of Contents</title>
		<link>http://tiaozhanshu.net/table-of-contents.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=table-of-contents</link>
		<comments>http://tiaozhanshu.net/table-of-contents.html#comments</comments>
		<pubDate>Thu, 25 Jun 2009 07:13:14 +0000</pubDate>
		<dc:creator>Jian Zhou</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[模板]]></category>

		<guid isPermaLink="false">http://www.tiaozhanshu.net/?p=34036</guid>
		<description><![CDATA[因为不方便使用，改了一下插件Yskin&#8217;s Table of Contents Generator。主要是增加了后台面板，提供了一些可供选择的地方。再不一定要按Yskin的方式：在文章右上角输出一个javascript形式的&#8221;Table Of Contents&#8221;。表格标题也变得可以修改。 插件下载地址如下：toc。 另外为了一些不方便上传插件的朋友，还为模板提供了支持的方式。先下载：toc-for-theme，解压后的php文件放在模板文件夹里，再在functions.php中加上一句：“if( file_exists(TEMPLATEPATH . &#8216;/toc-for-theme.php&#8217;) ) include_once(TEMPLATEPATH . &#8216;/toc-for-theme.php&#8217;);”。这样可以做到最小程度的修改模板文件。 合理的组织文章内容是很有必要的，特别是对于比较长的文章。我觉得TOC还有可以改进的地方要： 1、还可以有更多风格可以选择。例如，可以加进JavaScript。 2、可以有更多标记用，TOC标记做默认标记，用TOC-X可以选择其它风格。 有任何想合作开发的请留言。 几种不同样式的截图： Related posts:dynamic_sidebar 为wordpress做一个导航菜单


Related posts:<ol><li><a href='http://tiaozhanshu.net/dynamic_sidebar.html' rel='bookmark' title='Permanent Link: dynamic_sidebar'>dynamic_sidebar</a></li>
<li><a href='http://tiaozhanshu.net/theme-use-page-as-menu-to-wordpress.html' rel='bookmark' title='Permanent Link: 为wordpress做一个导航菜单'>为wordpress做一个导航菜单</a></li>
</ol>]]></description>
		<wfw:commentRss>http://tiaozhanshu.net/table-of-contents.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Yo2Mass使用方法</title>
		<link>http://tiaozhanshu.net/user-manual-of-yo2mass.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=user-manual-of-yo2mass</link>
		<comments>http://tiaozhanshu.net/user-manual-of-yo2mass.html#comments</comments>
		<pubDate>Tue, 09 Jun 2009 12:51:03 +0000</pubDate>
		<dc:creator>Jian Zhou</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[yo2]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.tiaozhanshu.net/?p=33228</guid>
		<description><![CDATA[在优博有一个Yo2Mass插件，可以把所关注的或好友的Feed文章聚合到自己的博客页面上。功能很酷，但是这个插件需要模板一定的配合，大多数模板在显示Yo2Mass的时候都不行。我不清楚Yo2Mass具体是怎么工作的，但是我通过“黑盒测试”得到一些结论。可以依此修改模板，来适应Yo2Mass。 首先确定是Yo2Mass调用哪个文件来输出的。oneoo说是调用的“index.php”，没有“index.php”就调用“archive.php”。其实它优先调用的是“single.php”。 “single.php”是我们用来输出单篇日志的，有的人还用在这个文件里加入了Google Ads。用它来输出Yo2Mass显示很乱，或者有的模板可能只显示一条RSS。那么我们如何控制Yo2Mass？ 在打开Yo2Mass页面的时候，我分别用is_single()、is_archive()、is_home()判断。发现is_single()和is_archive()都返回true。在正常的WordPress工作状态下不可能出现这种情况。因此，可建立一个is_yo2mass()函数来判断当前是否是Yo2Mass页面。函数如下： &#60;?php function is_yo2mass(){ $yo2mass = is_single()&#38;&#38;is_archive(); return $yo2mass;} ?&#62; 把它放在function.php下就可以使用了。要注意：is_yo2mass()函数的判断必需在is_single()和is_archive()之前，否则在is_single()和is_archive()处就已经分支跳转了。另外，也要在is_tag()和is_category()之前，因为在标签页和分类页is_archive()也返回true。 有了这个函数我们就可以方便的控制Yo2Mass页面了。比如，在进入single.php的时候用is_yo2mass()实现分支结构，运行专门用于输出yo2mass的代码。还可以控制Yo2Mass页面的title标签等： &#60;?php if( is_yo2mass() ) : ?&#62; &#60;title&#62;Yo2Mass&#60;/title&#62; &#60;?php endif; ?&#62; Related posts:WordPress搭建全记录 为wordpress做一个导航菜单 register_sidebars


Related posts:<ol><li><a href='http://tiaozhanshu.net/notes-about-building-a-wordpress-blog.html' rel='bookmark' title='Permanent Link: WordPress搭建全记录'>WordPress搭建全记录</a></li>
<li><a href='http://tiaozhanshu.net/theme-use-page-as-menu-to-wordpress.html' rel='bookmark' title='Permanent Link: 为wordpress做一个导航菜单'>为wordpress做一个导航菜单</a></li>
<li><a href='http://tiaozhanshu.net/register_sidebars.html' rel='bookmark' title='Permanent Link: register_sidebars'>register_sidebars</a></li>
</ol>]]></description>
		<wfw:commentRss>http://tiaozhanshu.net/user-manual-of-yo2mass.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yo2 wordpress2.7.1升级情况与thought</title>
		<link>http://tiaozhanshu.net/yo2-wordpress-2-7-1.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=yo2-wordpress-2-7-1</link>
		<comments>http://tiaozhanshu.net/yo2-wordpress-2-7-1.html#comments</comments>
		<pubDate>Tue, 17 Mar 2009 02:54:53 +0000</pubDate>
		<dc:creator>Jian Zhou</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[yo2]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[启动]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[文章]]></category>
		<category><![CDATA[网站]]></category>

		<guid isPermaLink="false">http://www.tiaozhanshu.net/?p=28138</guid>
		<description><![CDATA[yo2的升级和前几次一样，又是一次大shift。其困难人家说了，要重新生成所有博客页面，也就是重新建立一个大型网站。随着时间往更久远，博客数更增加，日后的升级可能要用更多的CPU时间。 升级初，可以访问页面，但是不让进后台——就是不让改东西(后台忙，修改的请求没功夫理)。那候Tag、Category、Bookmark并没有读到，而且一升级有些插件也没了，让我依赖插件的页面乱了一阵子。 后来重新启动了插件，又批量更新了标签，目的是希望数据库能连上，要不然所有文章都没了Tag和Category。但是问题更严重了。现在除了主页和后台，其他页面什么也打不开。一直持续。难道页面缓存还没建立？那也不至于我的一个页面都没建立吧！文章全部没了标签，没了分类，也拉不到bookmarks。数据库是连不上还是毁了？不是做好备份才升级的吗？ 如果数据库连不上的时候建立了缓存，等数据库连上的时候是不是又要重新生成缓存?前后台数据能一致吗？我这里数据库都不对，不知道能不能回到正常。 yo2的服务器结构是不是有缺陷。yo2的优点自不必说，页面缓存，加速访问。不过在我用户的角度看，保证页面的访问速度的在自然不过的事，你用的什么技术手段我也不懂，也不想懂。你所谓的页面缓存加速，无非是想减少后台服务器的负担。没有绝对完美的结构。yo2这样改啊改wordpress的，会不会有一天越改越远，等到某次wordpress升级后发现和yo2的服务器架构完全不一样了？yo2页面的生成，在我从外行看，是不同种类的页面用的不同的机器，数据库也被划分了。这种分割方式不是以用户为单位——多少多少个用户用哪台服务器支持，而是把wordpress解剖了。 yo2能不能结合一下以用户为单位划分。加上付费用户是yo2的一大收入依靠，而且其“身份地位”相对特殊（不带歧视），也适合以用户为单位划分。单纯的把wordpress解剖，正如有些人所说的，给改成了“阉割版”的WordPress。 oneoo真是效率，Tag、Category、Bookmark说好了就好了…… Related posts:优博网vs七十二松 博客相关——建博教程 WordPress搭建全记录


Related posts:<ol><li><a href='http://tiaozhanshu.net/yo2-vs-72pines.html' rel='bookmark' title='Permanent Link: 优博网vs七十二松'>优博网vs七十二松</a></li>
<li><a href='http://tiaozhanshu.net/how-to-manage-your-wordpress-blog.html' rel='bookmark' title='Permanent Link: 博客相关——建博教程'>博客相关——建博教程</a></li>
<li><a href='http://tiaozhanshu.net/notes-about-building-a-wordpress-blog.html' rel='bookmark' title='Permanent Link: WordPress搭建全记录'>WordPress搭建全记录</a></li>
</ol>]]></description>
		<wfw:commentRss>http://tiaozhanshu.net/yo2-wordpress-2-7-1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>google浏览器flash插件下载</title>
		<link>http://tiaozhanshu.net/flash-player-for-chrome.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=flash-player-for-chrome</link>
		<comments>http://tiaozhanshu.net/flash-player-for-chrome.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 13:25:14 +0000</pubDate>
		<dc:creator>Jian Zhou</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://www.tiaozhanshu.net/flash-player-for-chrome/</guid>
		<description><![CDATA[如果你的谷歌浏览器flash插件下载很慢，或者根本不开始，可以试一下这个安装包： Flash_Player_For_Chrome No related posts.


No related posts.]]></description>
		<wfw:commentRss>http://tiaozhanshu.net/flash-player-for-chrome.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>为wordpress做一个导航菜单</title>
		<link>http://tiaozhanshu.net/theme-use-page-as-menu-to-wordpress.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=theme-use-page-as-menu-to-wordpress</link>
		<comments>http://tiaozhanshu.net/theme-use-page-as-menu-to-wordpress.html#comments</comments>
		<pubDate>Fri, 29 Jun 2007 06:18:53 +0000</pubDate>
		<dc:creator>Jian Zhou</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[IM]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[主题]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[文章]]></category>
		<category><![CDATA[模板]]></category>
		<category><![CDATA[百度]]></category>
		<category><![CDATA[链接]]></category>
		<category><![CDATA[阅读]]></category>

		<guid isPermaLink="false">http://www.tiaozhanshu.net/theme-use-page-as-menu-to-wordpress/</guid>
		<description><![CDATA[这个导航菜单昨天基本上搞定。截个图在下面： 同样是从什么都不知道开始摸索，所以觉得自己其实还是有点小聪明的 今天先表达我对默认模板不喜欢的地方：就是打开单篇文章的时候头部会出现附近两篇文章的链接。我觉得这不好，会破坏文章的整体性，因为通常这两篇文章和所阅读的 文章除了位置上相邻以外内容上基本没多少联系。不过也有关于修改模板的文章专门介绍如何添加这两个链接，可是我觉得那也得看模板就具体情况而定。至少我觉得默认模板的这个地方有些时候就不大合适。于是我重新下了个默认模板（下一个wordpress就可以得到）开始了我的修改。 找到这两个链接的代码并删掉很快就可以搞定。不过默认模板不支持侧边栏插件。不能使用侧边栏插件那多不爽。所以又花了些时间修改让它能够支持侧边栏。关于如何修改我在上一篇文章上讲过。但是后来又发现没有了这两个链接页面略显单调，基本上就没有到其他地方的链接了。所以加上了这个菜单。这些菜单都是我站内的页面。 至于菜单是怎么加的，大家只要知道“wp_list_pages();”这个函数就很简单了。这个函数的功能就是输出页面链接。输出的格式是： &#60;li class=&#8221;page_item&#8221;&#62;&#60;a href=&#8221;page-url&#8221; title=&#8221;page-title&#8221;&#62;page-name&#60;/a&#62;&#60;/li&#62; &#60;li class=&#8221;page_item&#8221;&#62;&#60;a href=&#8221;page-url&#8221; title=&#8221;page-title&#8221;&#62;page-name&#60;/a&#62;&#60;/li&#62; …… 你可以用 “ &#60;ul&#62; wp_list_pages();&#60;/ul&#62; ” ，这样就可以把&#60;li&#62;表情包在&#60;ul&#62;标签内了。不过这样输出的格式是竖排显示的链接，侧边栏上就是这样的格式。想让它横排显示就在 属性上加上“float: left;”就可以了。至于更多的CSS知识就去百度或google上去看吧，我其实啥都不懂，也是在网上看的 。“wp_list_pages();”还可以加上参数。“title_li=&#8217;”参数可以让它不显示那个“Pages”，如果是“title_li=&#8217;×××&#8217;”就显示×××，其中×××可以包含标签。“sort_column=menu_order”参数可以让它支持Page Order插件。“depth=1”可以让它只显示一层目录。多个参数之间要加上&#38;，例如：&#60;？php wp_list_pages(&#8216;depth=1&#38;sort_column=menu_order&#38;title_li=&#8217;); ?&#62;。OK，大功告成！这点文字只是启发性的东西，如果你想自己动手做肯定会遇到很多不会的地方。 除非你是内行。国内研究wordpress的人好像很少，不然我想要一点点wordpress帮助怎么在网上那么难找呢？这些东西最后都是最后在wordpress帮助文档上找到了更为详细的描述。不过英文看得就是头痛，还是希望能找到更多的中文帮助。要是国内甚至引导起了wordpress的潮流就更好了。 Related posts:WordPress只对你自己显示的内容 让wordpress模板支持侧边栏插件Sidebar Widgets的方法 WordPress模板制作常用函数和代码


Related posts:<ol><li><a href='http://tiaozhanshu.net/is-wordpress-user-logged-in.html' rel='bookmark' title='Permanent Link: WordPress只对你自己显示的内容'>WordPress只对你自己显示的内容</a></li>
<li><a href='http://tiaozhanshu.net/modify-your-theme-to-support-sidebar-widgets.html' rel='bookmark' title='Permanent Link: 让wordpress模板支持侧边栏插件Sidebar Widgets的方法'>让wordpress模板支持侧边栏插件Sidebar Widgets的方法</a></li>
<li><a href='http://tiaozhanshu.net/usefull-wordpress-functions-and-code-for-theme-develop.html' rel='bookmark' title='Permanent Link: WordPress模板制作常用函数和代码'>WordPress模板制作常用函数和代码</a></li>
</ol>]]></description>
		<wfw:commentRss>http://tiaozhanshu.net/theme-use-page-as-menu-to-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
