<?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>木瓜Blog &#187; WEB技术</title>
	<atom:link href="http://www.ardy.cn/category/web/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ardy.cn</link>
	<description>把简单的事做好</description>
	<lastBuildDate>Mon, 08 Aug 2011 06:46:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>wordpress随机显示图片日志</title>
		<link>http://www.ardy.cn/web/wordpress-redom-image-artic.html</link>
		<comments>http://www.ardy.cn/web/wordpress-redom-image-artic.html#comments</comments>
		<pubDate>Fri, 19 Jun 2009 15:16:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ardy.cn/?p=526</guid>
		<description><![CDATA[WordPress随机显示数篇日志的图片并链接到日志上，也可以显示最新的日志图片。代码如下： &#60;?php $dock = new WP_Query(); $dock-&#62;query( &#8216;showposts=6&#8242; ); while( $dock-&#62;have_posts() ) : $dock-&#62;the_post(); ?&#62; &#60;li&#62; &#60;a href=&#8221;&#60;?php the_permalink() ?&#62;&#8221; rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link to &#60;?php the_title_attribute(); ?&#62;&#8221;&#62; &#60;!&#8211;&#60;img src=&#8221;&#60;?php echo get_post_meta( $post-&#62;ID, &#8220;Image&#8221;, true ); ?&#62;&#8221; width=&#8221;74px&#8221; height=&#8221;74px&#8221; alt=&#8221;&#60;?php the_title(); ?&#62;&#8221; /&#62; &#8211;&#62; &#60;?php if( get_post_meta($post-&#62;ID, &#8220;Image&#8221;, true) ): ?&#62; &#60;img src=&#8221;&#60;?php echo get_post_meta($post-&#62;ID, &#8220;Image&#8221;, [...]]]></description>
		<wfw:commentRss>http://www.ardy.cn/web/wordpress-redom-image-artic.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress导航高亮显示</title>
		<link>http://www.ardy.cn/web/wordpress-menu.html</link>
		<comments>http://www.ardy.cn/web/wordpress-menu.html#comments</comments>
		<pubDate>Fri, 19 Jun 2009 15:07:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ardy.cn/?p=523</guid>
		<description><![CDATA[在CSS中，有一项技术可以让当前页的菜单高亮，比如我在sofish v2这个主题中，也实现了这个效果，详情你可以到Live Demo for sofish v2看看，也可以看看下图的演示： 是不是很不错呢？当然，我也觉得。如果单纯用CSS或者CSS+JS来实现也完全可以。但Wordpress本身就提供方法给我们，更简单，而且不 需要太多额外的代码。为什么我们不用呢？你不用，我用！就像标题一样，即使你只是会一点点HTML知识，甚至一点都没有。你只要照做就可以了。那么，如果 我想实现，需要照做怎样的几个步骤呢？ 这里有个简单的例子： &#60;ul&#62; &#60;li &#60;?php if ( is_home() &#124;&#124; is_category() &#124;&#124; is_archive() &#124;&#124; is_search() &#124;&#124; is_single() &#124;&#124; is_date() ) { echo ' class="current"'; } ?&#62;&#62;&#60;a href="&#60;?php echo get_option('home') ?&#62;/"&#62;FrontPage&#60;/a&#62;&#60;/li&#62; &#60;li &#60;?php if ( is_page('About') ) { echo ' class="current"'; } ?&#62;&#62;&#60;a href="/about/"&#62;About&#60;/a&#62;&#60;/li&#62; &#60;li &#60;?php if ( is_page('WordPress') [...]]]></description>
		<wfw:commentRss>http://www.ardy.cn/web/wordpress-menu.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>漂亮的CSS 表格</title>
		<link>http://www.ardy.cn/web/css-table.html</link>
		<comments>http://www.ardy.cn/web/css-table.html#comments</comments>
		<pubDate>Tue, 14 Apr 2009 15:05:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.ardy.cn/?p=502</guid>
		<description><![CDATA[table { font-family: arial, helvetica, sans-serif; border-collapse: collapse; margin-bottom: 3em; font-size: 70%; line-height: 1.1; } tr:hover, td.start:hover, td.end:hover { background: #FF9; } th, td { padding: .3em .5em; } th { font-weight: normal; text-align: left; background: url(arrow.gif) no-repeat 2px 50%; padding-left: 15px; } th.name { width: 12em; } th.location { width: 12em; } th.color { [...]]]></description>
		<wfw:commentRss>http://www.ardy.cn/web/css-table.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wp-imgcode问题</title>
		<link>http://www.ardy.cn/web/wp-imgcode-action.html</link>
		<comments>http://www.ardy.cn/web/wp-imgcode-action.html#comments</comments>
		<pubDate>Fri, 13 Mar 2009 03:02:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ardy.cn/?p=455</guid>
		<description><![CDATA[前段时间一真受垃圾评论困扰，Google一下，得出的结论是加个验证码功能，是较好的解决方案。于是就找了个几个WP的验证码插件。   有好几款都不错，最后先了一个简单一点的WP-imgcode。用法很简单，在评论页面上加上   &#60;?php do_action(&#8216;comment_form&#8217;, $post-&#62;ID); ?&#62;就行了。   加上后发现有问题了。在静态页面上可能正常显示验证码，但在日志页面上无法显示验证码。到底是什么原因呢？   查看源代码后发现，是链接的地址不对。我日志页面用了永久化链接，把地址改成了“http://www.ardy.cn/java/***”，在域名后在加上了日志类别。而验证码图片的地址为“http://www.ardy.cn/java/wp-content/plugins/wp-imgcode/imgcode.php”，看出问题了吧！正常的地址应该是“http://www.ardy.cn/wp-content/plugins/wp-imgcode/imgcode.php”很明显，作者写的是相对地址，所以把相对的目录信息加上了。   知道问题出在哪了，就好办了。去编辑插件，在开代码前面不远处就能看到一句“var $plugin_dir = &#8216;wp-content/plugins/wp-imgcode&#8217;;”，没错，是写的相对地址吧，那好，我们把它也成从根下开始，改为“ var $plugin_dir = &#8216;/wp-content/plugins/wp-imgcode&#8217;;”。OK！再看看，问题解决了~！   这部份代码如下：   class wp_imgcode {     var $version = &#8217;1.0.0&#8242;;     var $plugin_dir = &#8216;/wp-content/plugins/wp-imgcode&#8217;;]]></description>
		<wfw:commentRss>http://www.ardy.cn/web/wp-imgcode-action.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WP插件content-gallery用法</title>
		<link>http://www.ardy.cn/web/how-use-content-gallery.html</link>
		<comments>http://www.ardy.cn/web/how-use-content-gallery.html#comments</comments>
		<pubDate>Fri, 05 Dec 2008 04:05:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WEB技术]]></category>

		<guid isPermaLink="false">http://localhost:88/wpdemo/?p=7</guid>
		<description><![CDATA[应广大网友要求，现发文讲解WP插件content-gallery的使用方法。本文将图文并茂，目的是让新手能看得明白。写的不好还望见谅！ 教程开始： 准备工作：先把插件content-gallery复制到WP的插件目录plugins里面，到WP后台启用这个插件。（附：content-gallery2.0下载） WP插件content-gallery的使用方法 1.插件content-gallery的设置。如图，到WP后台设置里面选择Featured Content Gallery然后开始设置。Gallery Width in Pixels是幻灯的宽（Revolution Two Church 和Lifestyle首页幻灯的宽是588），Gallery Height in Pixels幻灯的高（Revolution Two Church 和Lifestyle首页幻灯的高是400），Text Overlay Height in Pixels文字显示的高度，这里我们一般填85，Category Name 是你要在幻灯显示的类别名字，Number of Items to Display 这个是幻灯图片显示的数量（也是日志显示的数量）一般我们填3或以上。保存 （版权信息：本内容来自www.fruit0769.com） 2.日志发表及自定义字段。上面我们已经调用了一个类别作为幻灯显示的内容，现在我们在这个类别里面发表日志。日志写好后记得选择我们刚刚要在幻灯里面显示的类别，然后如图选择自定义字段 字段名一定要是articleimg ，字段值填图片地址。注意：为了美观，图的大小最好为588X397px 最后发布日志，要想有幻灯效果至少要做2个以上的图，也就是说用这个办法发布2篇以上的日志。]]></description>
		<wfw:commentRss>http://www.ardy.cn/web/how-use-content-gallery.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>手动指定域名与IP的关系</title>
		<link>http://www.ardy.cn/web/relationship-domain-ip.html</link>
		<comments>http://www.ardy.cn/web/relationship-domain-ip.html#comments</comments>
		<pubDate>Mon, 28 Jul 2008 09:25:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[域名]]></category>

		<guid isPermaLink="false">http://www.ardy.cn/?p=247</guid>
		<description><![CDATA[修改C:WINDOWSsystem32driversetc的Hosts文件即可 # Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed [...]]]></description>
		<wfw:commentRss>http://www.ardy.cn/web/relationship-domain-ip.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Themes</title>
		<link>http://www.ardy.cn/web/wordpress-themes.html</link>
		<comments>http://www.ardy.cn/web/wordpress-themes.html#comments</comments>
		<pubDate>Sun, 18 May 2008 05:47:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ardy.cn/?p=8</guid>
		<description><![CDATA[看到一些不错的WordPress主题，好多还是收费的，都有免费提供下载，有须要的朋友值得看看。 地址：http://www.arthack.org/wp-themes      ]]></description>
		<wfw:commentRss>http://www.ardy.cn/web/wordpress-themes.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress永久链接设置技巧</title>
		<link>http://www.ardy.cn/web/wordpress-tips.html</link>
		<comments>http://www.ardy.cn/web/wordpress-tips.html#comments</comments>
		<pubDate>Sun, 18 May 2008 05:11:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ardy.cn/?p=7</guid>
		<description><![CDATA[一个网站的永久链接可谓网站的门牌号，好的永久链接可以更受搜索引擎的欢迎，同时也能为你带来更多的流量。那么如何设置永久链接或固定链接才好呢？ 我想这个问题也是仁者见仁，智者见智，各有各的看法。下面介绍了WordPress 中，永久链接或固定链接设置技巧，算是我的一家之言吧。 1. 如何设置WordPress 永久链接 登陆WordPress，单击“选项”。然后单击“选项”的下级分类‘永久链接’在常规设置中选择“自定义”，然后在“自定义结构”中填入你想设置的永久链接结构就可以了。 WordPress 永久链接结构主要是通过结构标签来构成的，你只要了解了这些标签就可以任意设置你的永久链接了。WordPress 永久链接结构标签主要有如下这些： %year% 年，四位数，如：2004 %monthnum% 月，如： 05 %day% 日，如：28 %hour% 时，更精确的时间，如：15 %minute% 分，如：43 %second% 秒，如：33 %postname% 文章名，这是WordPress 永久链接比较常用的标签。如一片文章的标题为“This Is A Great Post”，则使用这个标签的永久链接就会出现“this-is-a-great-post”。中文版的WordPress 显示的则是文章的“日志缩略名”。 %post_id% 文章的唯一标识，如：423 %category% 分类 %author% 文章作者名 别忘了发布日志的时候把日志缩略名改下！否则会变成一串惊叹号! 2. 尽早修改wordpress的默认永久链接方式 一般是博客刚开通就得修改wordpress的默认永久链接方式，不然等你的博客做了一段时间后，再来修改就很麻烦了。不单以前被搜索引擎收录的网页变成无效网页，而且由于文章内容已经被搜索引擎收录过，新链接被搜索引擎收录的机会将会大大降低。 3. 最好不要让中文出现在链接中 虽然现在搜索引擎已经能支持识别URL，可是中文在URL上还是显示为乱码，对人而言完全没有可读性。中文标题可以使用WordPress的“日志缩略名”，来实现URL英文化。 4. 链接不宜过深 网站的链接过深对于搜索引擎优化是十分的不利的，一般URL的深度不要超过10层。 5.使用伪静态（HTML）链接 总所周知，相对于动态链接搜索引擎更喜欢静态的链接。WordPress默认的链接都是动态的，没关系，我们可以利用WordPress的URL重写功能来轻松实现链接的静态化。只需要在“自定义结构”后加上“.html”就可以搞定了。 6.采用www.web.com/abc/的链接形式 这种链接形式在国外的网站中比较常见，据说这种链接路径比静态的更具有排名优势。 当初选择WordPress的一个很重要的原因，就是看中了WordPress可以自定义永久链接或固定链接。不过这需要你的服务器支持URL Rewrite，一般的服务器商都会开通这个功能，如果你的服务器商没有开通这个功能的话，为了更好的发挥WorPress的优势，我劝你还是换一个服务 器商为好。]]></description>
		<wfw:commentRss>http://www.ardy.cn/web/wordpress-tips.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MYSQL基本命令</title>
		<link>http://www.ardy.cn/web/mysql-basic-commands.html</link>
		<comments>http://www.ardy.cn/web/mysql-basic-commands.html#comments</comments>
		<pubDate>Fri, 02 May 2008 01:21:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.ardy.cn/?p=23</guid>
		<description><![CDATA[一、连接MYSQL。 格式： mysql -h主机地址 -u用户名 －p用户密码 1、例1：连接到本机上的MYSQL。 首先在打开DOS窗口，然后进入目录 mysqlbin，再键入命令mysql -uroot -p，回车后提示你输密码，如果刚安装好MYSQL，超级用户root是没有密码的，故直接回车即可进入到MYSQL中了，MYSQL的提示符是：mysql&#62; 2、例2：连接到远程主机上的MYSQL。假设远程主机的IP为：110.110.110.110，用户名为root,密码为abcd123。则键入以下命令： mysql -h110.110.110.110 -uroot -pabcd123 （注:u与root可以不用加空格，其它也一样） 3、退出MYSQL命令： exit （回车） 二、修改密码。 格式：mysqladmin -u用户名 -p旧密码 password 新密码 1、例1：给root加个密码ab12。首先在DOS下进入目录mysqlbin，然后键入以下命令 mysqladmin -uroot -password ab12 注：因为开始时root没有密码，所以-p旧密码一项就可以省略了。 2、例2：再将root的密码改为djg345。 mysqladmin -uroot -pab12 password djg345 三、增加新用户。（注意：和上面不同，下面的因为是MYSQL环境中的命令，所以后面都带一个分号作为命令结束符） 格式：grant select on 数据库.* to 用户名@登录主机 identified by &#8220;密码&#8221; 例1、增加一个用户test1密码为abc，让他可以在任何主机上登录，并对所有数据库有查询、插入、修改、删除的权限。首先用以root用户连入MYSQL，然后键入以下命令： grant select,insert,update,delete on *.* to test1@&#8221;%&#8221; [...]]]></description>
		<wfw:commentRss>http://www.ardy.cn/web/mysql-basic-commands.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress代码高亮插件</title>
		<link>http://www.ardy.cn/web/wordpress-code.html</link>
		<comments>http://www.ardy.cn/web/wordpress-code.html#comments</comments>
		<pubDate>Fri, 18 Apr 2008 08:59:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ardy.cn/?p=9</guid>
		<description><![CDATA[wordpress的常用几款代码高亮插件，都是以GeSHi这个php的开源代码高亮库为基础开发的。不同的是表现形式和前台的调用方法。其中的coolcode是根据以前的一款插件改变而来，而且，并没有在wordpress.org上发布。 1.WP-Syntax 以&#60; pre lang=”php”&#62; …code… &#60; /pre &#62;使用原生的html代码，为了美化可以在css里加入一小段代码，兼容性最好。也是我目前使用的。 2.coolcode 国人改自另一款插件的作品。很漂亮。但兼容性有点问题，与openid与ajaxed wordpress两款插件有冲突。以 …code… 种形式 3.Google Syntax Highlighter for WordPress 顾名思义，是google的代码高亮插件。 SyntaxHighlighter is here to help a developer/coder to post code snippets online with ease and have it look pretty. It’s 100% Java Script based and it doesn’t care what you have on your server. 4.WP-CodeBox [...]]]></description>
		<wfw:commentRss>http://www.ardy.cn/web/wordpress-code.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

