<?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>LixiPHP - 致力于PHP高级编程!</title> <atom:link href="http://blog.lixiphp.com/feed/" rel="self" type="application/rss+xml" /><link>http://blog.lixiphp.com</link> <description>Linux+Nginx/Apache+MySQL+PHP</description> <lastBuildDate>Thu, 01 Dec 2011 09:26:49 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.4</generator> <item><title>解决Rsync ERROR: auth failed on module</title><link>http://blog.lixiphp.com/solve-rsync-auth-failed-on-module/</link> <comments>http://blog.lixiphp.com/solve-rsync-auth-failed-on-module/#comments</comments> <pubDate>Tue, 25 Oct 2011 11:42:16 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Apache/nginx]]></category> <category><![CDATA[auth failed]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[cronjob]]></category> <category><![CDATA[crontab]]></category> <category><![CDATA[rsync]]></category> <category><![CDATA[rsyncd]]></category> <category><![CDATA[service]]></category> <category><![CDATA[同步]]></category> <category><![CDATA[定时任务]]></category> <category><![CDATA[服务器]]></category><guid isPermaLink="false">http://blog.lixiphp.com/solve-rsync-auth-failed-on-module/</guid> <description><![CDATA[服务器同步任务需求
服务器A与服务器B同步备份，这里只说明服务器A同步到服务器B，服务器B还原到服务器A。
考虑安全因素，使用普通用户进行同步。
使用cronjob，定时同步。
@ERROR: auth failed on module ***
rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]
password file must not be other-accessible
continuing without password file]]></description> <content:encoded><![CDATA[<p>今天在两台服务器同步备份在用户权限上纠结了很多，主要关于这个问题网上的配置方法不一，源自rsync版本不一致。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/10/rsync.jpg" class="highslide-image" onclick="return hs.expand(this);"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="rsync同步备份服务器配置" border="0" alt="rsync同步备份服务器配置" src="http://blog.lixiphp.com/wp-content/uploads/2011/10/rsync_thumb.jpg" width="641" height="510" /></a></p><h4>Rsync 版本</h4><p>[root@mail video]# rsync &#8211;version <br />rsync&#160; version 3.0.6&#160; protocol version 30 <br />Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others. <br />Web site: rsync.samba.org <br />Capabilities: <br />&#160;&#160;&#160; 64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints, <br />&#160;&#160;&#160; socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, <br />&#160;&#160;&#160; append, ACLs, xattrs, iconv, no symtimes</p><p>rsync comes with ABSOLUTELY NO WARRANTY.&#160; This is free software, and you <br />are welcome to redistribute it under certain conditions.&#160; See the GNU <br />General Public Licence for details.</p><h4>服务器同步任务需求</h4><ul><li>服务器A与服务器B同步备份，这里只说明服务器A同步到服务器B，服务器B还原到服务器A。</li><li>考虑安全因素，使用普通用户进行同步。</li><li>使用cronjob，定时同步。</li></ul><h4>错误提示</h4><p>错误发生在rsync 3.0.6版本，64位 CentOS5.5 系统。</p><p>首页这篇文章主要解决的错误是以下：</p><blockquote><p>@ERROR: auth failed on module *** <br />rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]</p></blockquote><p>*** 是你/etc/rsyncd.conf 中配置的模块，我这里用</p><blockquote><p>password file must not be other-accessible <br />continuing without password file <br />Password: <br />@ERROR: auth failed on module *** <br />rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]</p></blockquote><h4>Rsync 配置</h4><p>#vi /etc/rsyncd.conf</p><blockquote><p>uid = nobody <br />gid = nobody <br />max connections = 4 <br />read only = true <br />#hosts allow = 202.207.177.180 <br />hosts allow = * <br />transfer logging = true <br />log format = %h %o %f %l %b <br />log file = /var/log/rsyncd.log <br />slp refresh = 300 <br />log file = /var/log/rsyncd.log <br />pid file = /var/run/rsyncd.pid <br />lock file = /var/run/rsyncd.lock</p><p>[web] <br />path = /home/admin/public_html <br />comment = Mirror to Hk server <br />read only = true <br />list = false <br />auth users = lixiphp</p><p>[test] <br />path = /home/admin/domains/test <br />read only = false <br />auth users = lixiphp <br />secrets file = /etc/rsyncd.secrets</p></blockquote><h4><font style="font-weight: normal">配置普通用户密码</font></h4><blockquote><p>[root@mail video]# vi /etc/rsyncd.secrets</p></blockquote><p>格式为： username:password</p><blockquote><p>rsync_user:rsyncofpass</p></blockquote><p><font style="font-weight: normal">设置权限为只读：</font></p><blockquote><p>chmod 600 /etc/rsyncd.secrets</p></blockquote><h4><font style="font-weight: normal">首次启动rsync</font></h4><blockquote><p>rsync &#8211;daemon &#8211;config=/etc/rsyncd.conf</p></blockquote><p>如果提示</p><blockquote><p>failed to create pid file /var/run/rsyncd.pid: File exists</p></blockquote><p>使用指令</p><blockquote><p>rm -rf /var/run/rsyncd.pid</p></blockquote><h4>重启已经在运行的rsync</h4><blockquote><p>[root@mail video]# ps -ef | grep rsync <br />root&#160;&#160;&#160;&#160; 27284&#160;&#160;&#160;&#160; 1&#160; 0 10:26 ?&#160;&#160;&#160;&#160;&#160;&#160;&#160; 00:00:00 rsync &#8211;daemon &#8211;config=/etc/rsyncd.conf <br />root&#160;&#160;&#160;&#160; 30516 29986&#160; 0 18:35 pts/3&#160;&#160;&#160; 00:00:00 grep rsync <br />[root@mail video]# kill -9 27284 <br />[root@mail video]# rsync &#8211;daemon &#8211;config=/etc/rsyncd.conf</p></blockquote><p>这样服务器A配置成功！</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/solve-rsync-auth-failed-on-module/">解决Rsync ERROR: auth failed on module</a> (132 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/solve-rsync-auth-failed-on-module/">Permalink</a> | <a href="http://blog.lixiphp.com/solve-rsync-auth-failed-on-module/#comments">8 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/solve-rsync-auth-failed-on-module/&amp;title=解决Rsync ERROR: auth failed on module">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/auth-failed/" rel="tag">auth failed</a>, <a href="http://blog.lixiphp.com/tags/centos/" rel="tag">CentOS</a>, <a href="http://blog.lixiphp.com/tags/cronjob/" rel="tag">cronjob</a>, <a href="http://blog.lixiphp.com/tags/crontab/" rel="tag">crontab</a>, <a href="http://blog.lixiphp.com/tags/rsync/" rel="tag">rsync</a>, <a href="http://blog.lixiphp.com/tags/rsyncd/" rel="tag">rsyncd</a>, <a href="http://blog.lixiphp.com/tags/service/" rel="tag">service</a>, <a href="http://blog.lixiphp.com/tags/%e5%90%8c%e6%ad%a5/" rel="tag">同步</a>, <a href="http://blog.lixiphp.com/tags/%e5%ae%9a%e6%97%b6%e4%bb%bb%e5%8a%a1/" rel="tag">定时任务</a>, <a href="http://blog.lixiphp.com/tags/%e6%9c%8d%e5%8a%a1%e5%99%a8/" rel="tag">服务器</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/solve-rsync-auth-failed-on-module/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>腾讯签名支持爱心图标&#8220;拒绝冷漠 传递温暖&#8221;</title><link>http://blog.lixiphp.com/qq-support-wennuan-icon/</link> <comments>http://blog.lixiphp.com/qq-support-wennuan-icon/#comments</comments> <pubDate>Mon, 24 Oct 2011 01:12:49 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Wo De Life]]></category> <category><![CDATA[qq]]></category> <category><![CDATA[wennuan]]></category> <category><![CDATA[传递温暖]]></category> <category><![CDATA[拒绝冷漠]]></category> <category><![CDATA[爱心图标]]></category><guid isPermaLink="false">http://blog.lixiphp.com/qq-support-wennuan-icon/</guid> <description><![CDATA[2岁的小悦悦走了，在她还不懂得什么叫人世冷暖的年纪。两次被车碾压，18个路人无人相救，面对一条鲜活的生命，竟是如此的漠视，让人心寒不已。愿天堂上不再有车来车往，也不会再有人性的冷漠与麻木。面对事件的发生，我们需要的不仅是关爱和同情，更不是谴责，而是一种拒绝冷漠的反思。 让冷漠不再出现，我们每个人都可以从身边小事做起。推倒高筑的心墙，给他人更多关怀，给需要帮助的人伸出援手。只要你传递了温暖，就没有心的沙漠，就没有爱的荒原。如果你也认同我们的想法，就和我们一起响应这个倡议：拒绝冷漠，传递温暖。让我们拥有一颗乐于助人的心，一双搀扶他人的双手，让这路上再没有摔倒的弱者，没有冷漠奔走的路人。让我们一起呼唤爱的力量，牵起你我的双手，让真情涌动起来。如果你能做到，请登录QQ后，在QQ签名中输入“/wennuan/”，即可生成一个温暖爱心图标，传递这个倡议。火热的红心洋溢着温暖，驱赶无情的冷漠与冰凉，每一颗温暖的红心背后都是你双手的有力支持！]]></description> <content:encoded><![CDATA[<p>关于近期的一个事件，观看下文：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/10/440.jpg" class="highslide-image" onclick="return hs.expand(this);"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="腾讯签名支持爱心图标“拒绝冷漠 传递温暖”" border="0" alt="腾讯签名支持爱心图标“拒绝冷漠 传递温暖”" src="http://blog.lixiphp.com/wp-content/uploads/2011/10/440_thumb.jpg" width="637" height="640" /></a></p><p>2岁的小悦悦走了，在她还不懂得什么叫人世冷暖的年纪。两次被车碾压，18个路人无人相救，面对一条鲜活的生命，竟是如此的漠视，让人心寒不已。愿天堂上不再有车来车往，也不会再有人性的冷漠与麻木。</p><p>面对事件的发生，我们需要的不仅是关爱和同情，更不是谴责，而是一种拒绝冷漠的反思。 让冷漠不再出现，我们每个人都可以从身边小事做起。推倒高筑的心墙，给他人更多关怀，给需要帮助的人伸出援手。只要你传递了温暖，就没有心的沙漠，就没有爱的荒原。</p><p>如果你也认同我们的想法，就和我们一起响应这个倡议：拒绝冷漠，传递温暖。让我们拥有一颗乐于助人的心，一双搀扶他人的双手，让这路上再没有摔倒的弱者，没有冷漠奔走的路人。让我们一起呼唤爱的力量，牵起你我的双手，让真情涌动起来。如果你能做到，请登录QQ后，在QQ签名中输入“/wennuan/”，即可生成一个温暖爱心图标，传递这个倡议。火热的红心洋溢着温暖，驱赶无情的冷漠与冰凉，每一颗温暖的红心背后都是你双手的有力支持！</p><p>你能做到吗？</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/10/qq.png" class="highslide-image" onclick="return hs.expand(this);"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="qq腾讯签名支持爱心图标" border="0" alt="腾讯签名支持爱心图标" src="http://blog.lixiphp.com/wp-content/uploads/2011/10/qq_thumb.png" width="589" height="430" /></a></p><p>多的，我不想表达了，QQ传递我的爱心。</p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/qq-weibo-open-api/" title="一个艰难的决定-腾讯微博推出开放平台API">一个艰难的决定-腾讯微博推出开放平台API</a></li><li><a href="http://blog.lixiphp.com/qq-360-wobashiligang-com/" title="有创意的项目，动作好快">有创意的项目，动作好快</a></li><li><a href="http://blog.lixiphp.com/soft-configure-error-install-vcredist_x86-to-solve/" title="飞信 由于应用程序配置不正确 应用程序未能启动。重新安装应用程序可能会纠正这个问题">飞信 由于应用程序配置不正确 应用程序未能启动。重新安装应用程序可能会纠正这个问题</a></li><li><a href="http://blog.lixiphp.com/my-qq-t-blog-begin/" title="腾讯微博全新推出,邀请码注册">腾讯微博全新推出,邀请码注册</a></li><li><a href="http://blog.lixiphp.com/qq-hero-webgame-achievement/" title="QQ三国英雄传玩家lixiphp汇报战况">QQ三国英雄传玩家lixiphp汇报战况</a></li><li><a href="http://blog.lixiphp.com/webgame-hero-qq/" title="玩网游QQ三国英雄传">玩网游QQ三国英雄传</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/qq-support-wennuan-icon/">Permalink</a> | <a href="http://blog.lixiphp.com/qq-support-wennuan-icon/#comments">2 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/qq-support-wennuan-icon/&amp;title=腾讯签名支持爱心图标&ldquo;拒绝冷漠 传递温暖&rdquo;">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/qq/" rel="tag">qq</a>, <a href="http://blog.lixiphp.com/tags/wennuan/" rel="tag">wennuan</a>, <a href="http://blog.lixiphp.com/tags/%e4%bc%a0%e9%80%92%e6%b8%a9%e6%9a%96/" rel="tag">传递温暖</a>, <a href="http://blog.lixiphp.com/tags/%e6%8b%92%e7%bb%9d%e5%86%b7%e6%bc%a0/" rel="tag">拒绝冷漠</a>, <a href="http://blog.lixiphp.com/tags/%e7%88%b1%e5%bf%83%e5%9b%be%e6%a0%87/" rel="tag">爱心图标</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/qq-support-wennuan-icon/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>iPhone iPad等终端HTML CSS设计</title><link>http://blog.lixiphp.com/iphone-ipad-smartphone-html-css-design/</link> <comments>http://blog.lixiphp.com/iphone-ipad-smartphone-html-css-design/#comments</comments> <pubDate>Sat, 22 Oct 2011 09:01:00 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[html]]></category> <category><![CDATA[iPad]]></category> <category><![CDATA[iPhone]]></category> <category><![CDATA[Smartphone]]></category> <category><![CDATA[Tablet]]></category> <category><![CDATA[设计]]></category><guid isPermaLink="false">http://blog.lixiphp.com/iphone-ipad-smartphone-html-css-design/</guid> <description><![CDATA[在iPhone、Smartphone 上设计网页和设计打印样式表(print stylesheet)非常相似。页面是竖排版的，所有内容均按行显示。 HTML头信息 &#60;meta charset="utf-8" /&#62; &#60;link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon" /&#62; &#60;meta name="Generator" content="LIXIPHP (http://lixiphp.com)" /&#62; &#60;meta name="viewport" content="width=device-width, initial-scale=1"&#62; &#60;meta name="MobileOptimized" content="width"&#62; &#60;meta name="HandheldFriendly" content="true"&#62; &#60;meta name="apple-mobile-web-app-capable" content="yes"&#62; &#60;meta http-equiv="cleartype" content="on"&#62; &#60;meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"&#62; 分别定义： 1、编码Unicode UTF-8 2、浏览器图标地址和类型 3、Generator 生产者 4、网页缩放比例为1:1 5、控制手机布局，width默认为屏幕大小，也可以为具体数字如240、480，Windows Mobile推荐设置为240 6、控制手机放大缩小网页显示 7、控制全屏显示(Apple Safar) 8、ClearType主要是针对LCD液晶显示器设计，可提高文字的清晰度。 9、兼容性 导入CSS样式 &#60;link rel=&#8221;stylesheet&#8221; [...]]]></description> <content:encoded><![CDATA[<p>在iPhone、Smartphone 上设计网页和设计打印样式表(print stylesheet)非常相似。页面是竖排版的，所有内容均按行显示。</p><h4>HTML头信息</h4><blockquote><pre>&lt;meta charset="utf-8" /&gt;
&lt;link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon" /&gt;
&lt;meta name="Generator" content="LIXIPHP (http://<span style="color: #000000;">lixiphp</span>.com)" /&gt;
&lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
&lt;meta name="MobileOptimized" content="width"&gt;
&lt;meta name="HandheldFriendly" content="true"&gt;
&lt;meta name="apple-mobile-web-app-capable" content="yes"&gt;
&lt;meta http-equiv="cleartype" content="on"&gt;
&lt;meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"&gt;</pre></blockquote><p>分别定义：</p><p>1、编码Unicode UTF-8</p><p>2、浏览器图标地址和类型</p><p>3、Generator 生产者</p><p>4、网页缩放比例为1:1</p><p>5、控制手机布局，width默认为屏幕大小，也可以为具体数字如240、480，Windows Mobile推荐设置为240</p><p>6、控制手机放大缩小网页显示</p><p>7、控制全屏显示(Apple Safar)</p><p>8、ClearType主要是针对LCD液晶显示器设计，可提高文字的清晰度。</p><p>9、兼容性</p><h4>导入CSS样式</h4><blockquote><p>&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;style.css&#8221; /&gt;</p></blockquote><p>和普通网页一样的方式。</p><h4>CSS样式表</h4><p>页面的显示和手机屏幕的分辨率息息相关，分别有以下几个标准：</p><blockquote><pre>/* iPhone Smartphone portrait one-col-stack */
@media only screen and (max-width:320px) {
CSS content…
}</pre><pre>/* iPhone Smartphone landscape one-col-vert */
@media only screen and (min-width:321px) and (max-width:480px) {
CSS content…
}</pre><pre>/* iPad Tablet portrait one-col-vert */
@media only screen and (min-width:481px) and (max-width:768px) {
CSS content…
}</pre><pre>/* iPad Tablet landscape three-col-right */
@media only screen and (min-width:769px) and (max-width:1024px) {
CSS content…
}</pre></blockquote><p><strong>注意：</strong></p><ul><li>不要使用绝对宽度如width:960px; 可以用相对宽度代替如width:100%；</li><li>不要使用float元素浮动，手机中的内容都是按行显示的；</li></ul><p><strong>预览效果：</strong></p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/10/IMG_0719.png" class="highslide-image" onclick="return hs.expand(this);"><img title="iPhone preview iPhone iPad等终端HTML CSS设计" src="http://blog.lixiphp.com/wp-content/uploads/2011/10/IMG_0719_thumb.png" border="0" alt="iPhone preview IMG_0719" width="640" height="960" /></a></p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/phpdesigner7-functionality-configuration-tools/" title="phpDesigner 7 功能概述及配置集成工具">phpDesigner 7 功能概述及配置集成工具</a></li><li><a href="http://blog.lixiphp.com/php-css-html-rounding-corners/" title="PHP程序员-CSS笔记一">PHP程序员-CSS笔记一</a></li><li><a href="http://blog.lixiphp.com/ypslideoutmenus-menu-for-all-brower/" title="ypSlideOutMenus一款实用的下拉菜单">ypSlideOutMenus一款实用的下拉菜单</a></li><li><a href="http://blog.lixiphp.com/online-seo-html-css-js/" title="在线压缩清理格式化html/css/js, SEO优化网站">在线压缩清理格式化html/css/js, SEO优化网站</a></li><li><a href="http://blog.lixiphp.com/php-strip-specific-tags/" title="PHP移除指定HTML标签的方法">PHP移除指定HTML标签的方法</a></li><li><a href="http://blog.lixiphp.com/div_css_corporate_template_free_download/" title="DIV+CSS公司网站模板源码免费下载">DIV+CSS公司网站模板源码免费下载</a></li><li><a href="http://blog.lixiphp.com/firefox-web-developer-toolbar-tutorial/" title="Firefox Web Developer 工具栏使用教程">Firefox Web Developer 工具栏使用教程</a></li><li><a href="http://blog.lixiphp.com/css-set-focus-no-line/" title="CSS去掉点击留下的虚框">CSS去掉点击留下的虚框</a></li><li><a href="http://blog.lixiphp.com/ie6-ie7-ie8-firefox-css-hack/" title="IE6 IE7 IE8 Firefox CSS Hack">IE6 IE7 IE8 Firefox CSS Hack</a></li><li><a href="http://blog.lixiphp.com/js-css-element-clientwidth/" title="JS和CSS实现自动根据分辨率设置页面宽度">JS和CSS实现自动根据分辨率设置页面宽度</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/iphone-ipad-smartphone-html-css-design/">Permalink</a> | <a href="http://blog.lixiphp.com/iphone-ipad-smartphone-html-css-design/#comments">2 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/iphone-ipad-smartphone-html-css-design/&amp;title=iPhone iPad等终端HTML CSS设计">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/css-desgin-artcile/" rel="tag">CSS</a>, <a href="http://blog.lixiphp.com/tags/html/" rel="tag">html</a>, <a href="http://blog.lixiphp.com/tags/ipad/" rel="tag">iPad</a>, <a href="http://blog.lixiphp.com/tags/iphone/" rel="tag">iPhone</a>, <a href="http://blog.lixiphp.com/tags/smartphone/" rel="tag">Smartphone</a>, <a href="http://blog.lixiphp.com/tags/tablet/" rel="tag">Tablet</a>, <a href="http://blog.lixiphp.com/tags/%e8%ae%be%e8%ae%a1/" rel="tag">设计</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/iphone-ipad-smartphone-html-css-design/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>十款开源在线视频播放器</title><link>http://blog.lixiphp.com/10-top-free-opensource-flv-player/</link> <comments>http://blog.lixiphp.com/10-top-free-opensource-flv-player/#comments</comments> <pubDate>Wed, 20 Apr 2011 15:40:36 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Opensource]]></category> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[f4Player]]></category> <category><![CDATA[Flowplayer]]></category> <category><![CDATA[flv]]></category> <category><![CDATA[flvplayer]]></category> <category><![CDATA[HTML5]]></category> <category><![CDATA[Jaris]]></category> <category><![CDATA[JW Player]]></category> <category><![CDATA[OSFlvPlayer]]></category> <category><![CDATA[OSM]]></category> <category><![CDATA[player]]></category> <category><![CDATA[Projekktor]]></category> <category><![CDATA[Vcastr]]></category> <category><![CDATA[在线]]></category> <category><![CDATA[开源]]></category> <category><![CDATA[播放器]]></category> <category><![CDATA[视频]]></category><guid isPermaLink="false">http://blog.lixiphp.com/10-top-free-opensource-flv-player/</guid> <description><![CDATA[10 Free Open Source embeddable Video Players，在现在网络中比较流行在线视频播放器，比如优酷、土豆、酷六、六间房、腾讯等都自带有在线视频播放的功能。Vcastr 3.0 – flash video(flv) player (开源 Open Source)JW Player The Web's top video player. Now with HTML5 support.Flowplayer - Flash Video Player for the Web.f4Player :: Open Source Flash Video Player (FLV, F4V, MP4).Open Standard Media (OSM) Player.OSFlvPlayer The Open Source, Embeddable FLV Player.Projekktor Zwei - Free HTML5 video player.Jaris  Flash Video Player.FLV Player .flvplayer Flash FLV player]]></description> <content:encoded><![CDATA[<p>10 Free Open Source embeddable Video Players，在现在网络中比较流行在线视频播放器，比如优酷、土豆、酷六、六间房、腾讯等都自带有在线视频播放的功能。</p><p>今天我就目前收集到的十个开源视频播放器与大家一起分享。</p><h4>Vcastr 3.0 – flash video(flv) player (开源 Open Source)</h4><p>这是一款国内开发的在线视频播放器，值得首先推荐。在财经网中得到应用。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/image15.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border: 0pt none;" title="Vcastr 3.0 – flash video(flv) player (开源 Open Source)image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/image_thumb15.png" border="0" alt="Vcastr 3.0 – flash video(flv) player (开源 Open Source) image" width="599" height="501" /></a></p><p>官方地址：<a title="http://www.ruochi.com/main/2008/03/19/vcastr-30/" href="http://www.ruochi.com/main/2008/03/19/vcastr-30/">http://www.ruochi.com/main/2008/03/19/vcastr-30/</a></p><p>源码下载：<a title="http://vcastr.googlecode.com/svn/trunk/vcastr3/release/src.zip" href="http://vcastr.googlecode.com/svn/trunk/vcastr3/release/src.zip">http://vcastr.googlecode.com/svn/trunk/vcastr3/release/src.zip</a></p><p>特点：</p><ul><li>使用as3.0重新写了播放器</li><li>可以设置循环播放，自动播放，是否直接开始下载，控制栏的颜色和模式</li><li>控制栏可以适应超小的尺寸</li><li>播放器大小缩小,在20+k左右</li><li>可以通过xml对播放器设置</li><li>可以播放多个影片，并且有影片列表</li><li>可以使用插件扩充播放器的功能</li><li>可以用插件设置logo及连接</li><li>可以用插件来用javascript控制播放器</li></ul><h4>JW Player The Web&#8217;s top video player. Now with HTML5 support.</h4><p>The <strong>JW Player</strong><strong>™</strong> is JW Player for Flash Version 5 and for Flash is the Internet’s most popular and flexible media player. It supports playback of any format the <a href="http://www.adobe.com/products/flashplayer/">Adobe Flash Player</a> can handle, as well as HTTP and RTMP streaming and various XML playlist formats. A wide range of <a href="http://developer.longtailvideo.com/trac/wiki/Player5FlashVars">configuration options</a> can be set, and an extensive JavaScript API is available. The player&#8217;s <a href="http://developer.longtailvideo.com/trac/wiki/Player5Skinning">skinning</a> functionality allows you to completely customize its look, and the plugin architecture allows you to easily extend the player with features such as sharing, analytics and ad serving.</p><p>The JW Player&#8217;s <a href="http://developer.longtailvideo.com/trac/browser/">source code</a> is freely available and can be <a href="http://developer.longtailvideo.com/trac/wiki/Player5Roadmap#AutomatedBuilding">built entirely using free and open-source software</a>.</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/image16.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border: 0pt none;" title="JW Player The Web's top video player. Now with HTML5 support.image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/image_thumb16.png" border="0" alt="JW Player The Web's top video player. Now with HTML5 support.image" width="644" height="367" /></a></p><p>官方网址：<a href="http://www.longtailvideo.com/players/jw-flv-player/">www.longtailvideo.com/players/jw-flv-player/</a></p><p>源码下载：<a title="http://developer.longtailvideo.com/trac/browser/" href="http://developer.longtailvideo.com/trac/browser/">http://developer.longtailvideo.com/trac/browser/</a></p><h4>Flowplayer &#8211; Flash Video Player for the Web</h4><p>flowplayer的是一个开源（GPL3）视频播放器的网站。它经常被网站所有者，开发商，爱好者，企业，程序员所使用。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/image17.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border: 0pt none;" title="Flowplayer - Flash Video Player for the Web image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/image_thumb17.png" border="0" alt="Flowplayer - Flash Video Player for the Web image" width="644" height="276" /></a></p><p>官方网址：<a title="http://flowplayer.org/" href="http://flowplayer.org/">http://flowplayer.org/</a></p><p>源码下载：<a title="http://releases.flowplayer.org/flowplayer/flowplayer-3.2.7-src.zip" href="http://releases.flowplayer.org/flowplayer/flowplayer-3.2.7-src.zip">http://releases.flowplayer.org/flowplayer/flowplayer-3.2.7-src.zip</a></p><h4>f4Player :: Open Source Flash Video Player (FLV, F4V, MP4)</h4><p>f4Player是一个开源的Flash（AS3）视频播放器和库项目。它是如此之小只有13kb，完全免费的LGPL许可。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/image18.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border: 0pt none;" title="f4Player :: Open Source Flash Video Player (FLV, F4V, MP4) image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/image_thumb18.png" border="0" alt="f4Player :: Open Source Flash Video Player (FLV, F4V, MP4) image" width="634" height="500" /></a></p><p>特点：</p><ul><li>免费，小，快，可定制和互联网上最好的FLV播放器！</li></ul><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/10-top-free-opensource-flv-player/">十款开源在线视频播放器</a> (219 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/10-top-free-opensource-flv-player/">Permalink</a> | <a href="http://blog.lixiphp.com/10-top-free-opensource-flv-player/#comments">16 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/10-top-free-opensource-flv-player/&amp;title=十款开源在线视频播放器">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/f4player/" rel="tag">f4Player</a>, <a href="http://blog.lixiphp.com/tags/flowplayer/" rel="tag">Flowplayer</a>, <a href="http://blog.lixiphp.com/tags/flv/" rel="tag">flv</a>, <a href="http://blog.lixiphp.com/tags/flvplayer/" rel="tag">flvplayer</a>, <a href="http://blog.lixiphp.com/tags/html5/" rel="tag">HTML5</a>, <a href="http://blog.lixiphp.com/tags/jaris/" rel="tag">Jaris</a>, <a href="http://blog.lixiphp.com/tags/jw-player/" rel="tag">JW Player</a>, <a href="http://blog.lixiphp.com/tags/osflvplayer/" rel="tag">OSFlvPlayer</a>, <a href="http://blog.lixiphp.com/tags/osm/" rel="tag">OSM</a>, <a href="http://blog.lixiphp.com/tags/player/" rel="tag">player</a>, <a href="http://blog.lixiphp.com/tags/projekktor/" rel="tag">Projekktor</a>, <a href="http://blog.lixiphp.com/tags/vcastr/" rel="tag">Vcastr</a>, <a href="http://blog.lixiphp.com/tags/%e5%9c%a8%e7%ba%bf/" rel="tag">在线</a>, <a href="http://blog.lixiphp.com/tags/%e5%bc%80%e6%ba%90/" rel="tag">开源</a>, <a href="http://blog.lixiphp.com/tags/%e6%92%ad%e6%94%be%e5%99%a8/" rel="tag">播放器</a>, <a href="http://blog.lixiphp.com/tags/%e8%a7%86%e9%a2%91/" rel="tag">视频</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/10-top-free-opensource-flv-player/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> <item><title>PHP移除指定HTML标签的方法</title><link>http://blog.lixiphp.com/php-strip-specific-tags/</link> <comments>http://blog.lixiphp.com/php-strip-specific-tags/#comments</comments> <pubDate>Tue, 19 Apr 2011 13:03:58 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Snippets]]></category> <category><![CDATA[html]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[remove]]></category> <category><![CDATA[tag]]></category> <category><![CDATA[标签]]></category> <category><![CDATA[移除]]></category><guid isPermaLink="false">http://blog.lixiphp.com/php-strip-specific-tags/</guid> <description><![CDATA[PHP移除多个指定的html标签,PHP移除指定HTML标签的方法Removes specific tags.是指需要过滤的一段字符串，比如div、p、em、img等html标签。是指想要移除指定的html标签，比如a、img、p等。移除标签内的内容，比如将整个链接删除等，默认为False，即不删除标签内的内容。Strip HTML and PHP tags from a string]]></description> <content:encoded><![CDATA[<p>PHP默认的函数有移除指定html标签，名称为<strong>strip_tags</strong>，在某些场合非常有用。</p><h4>strip_tags</h4><p><a name="AEN164893"></a></p><p>(PHP 3 &gt;= 3.0.8, PHP 4, PHP 5)</p><p>strip_tags &#8212; Strip HTML and PHP tags from a string</p><p>string <strong>strip_tags</strong> ( string str [, string allowable_tags] )</p><p>弊端 ：</p><ul><li>这个函数只能保留想要的html标签，就是参数string allowable_tags。</li></ul><p>在yizero的评论中我知道了这个函数的参数allowable_tags的其他的用法。</p><p>strip_tags($source, &#8221;); 去掉所以的html标签。</p><p>strip_tags($source, &#8216;&lt;div&gt;&lt;img&gt;&lt;em&gt;&#8217;); 保留字符串中的div、img、em标签。</p><p>如果想去掉的html的指定标签。那么这个函数就不能满足需求了。于是乎我用到了这个函数。</p><h4>移除多个指定的html标签</h4><pre class="brush: php; title: ; notranslate">
/**
 * Removes specific  tags.
 */
function strip_only_tags($str, $tags, $stripContent = FALSE) {
  $content = '';

  if (!is_array($tags)) {
    $tags = (strpos($str, '&gt;') !== false ? explode('&gt;', str_replace('&lt;', '', $tags)) : array($tags));
    if (end($tags) == '') {
      array_pop($tags);
    }
  }

  foreach($tags as $tag) {
    if ($stripContent) {
      $content = '(.+&lt;!--'.$tag.'(--&gt;|\s[^&gt;]*&gt;)|)';
    }

    $str = preg_replace('#&lt;!--?'.$tag.'(--&gt;|\s[^&gt;]*&gt;)'.$content.'#is', '', $str);
  }

  return $str;
}
</pre><p>参数说明</p><blockquote><p>$str  — 是指需要过滤的一段字符串，比如div、p、em、img等html标签。<br /> $tags — 是指想要移除指定的html标签，比如a、img、p等。<br /> $stripContent = FALSE  — 移除标签内的内容，比如将整个链接删除等，默认为False，即不删除标签内的内容。</p></blockquote><p>使用说明</p><blockquote><p>$target = strip_only_tags($source, array(&#8216;a&#8217;,'em&#8217;,'b&#8217;));</p></blockquote><p>移除$source字符串内的a、em、b标签。<br /> (...)<br/>Read the rest of <a href="http://blog.lixiphp.com/php-strip-specific-tags/">PHP移除指定HTML标签的方法</a> (32 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/php-strip-specific-tags/">Permalink</a> | <a href="http://blog.lixiphp.com/php-strip-specific-tags/#comments">3 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/php-strip-specific-tags/&amp;title=PHP移除指定HTML标签的方法">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/html/" rel="tag">html</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/remove/" rel="tag">remove</a>, <a href="http://blog.lixiphp.com/tags/tag/" rel="tag">tag</a>, <a href="http://blog.lixiphp.com/tags/%e6%a0%87%e7%ad%be/" rel="tag">标签</a>, <a href="http://blog.lixiphp.com/tags/%e7%a7%bb%e9%99%a4/" rel="tag">移除</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/php-strip-specific-tags/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Multiple browser and platform testing</title><link>http://blog.lixiphp.com/multiple-browser-platform-testing/</link> <comments>http://blog.lixiphp.com/multiple-browser-platform-testing/#comments</comments> <pubDate>Sun, 17 Apr 2011 16:31:26 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[browser]]></category> <category><![CDATA[Browsershots]]></category> <category><![CDATA[Gomez]]></category> <category><![CDATA[IETester]]></category> <category><![CDATA[MacOSX]]></category> <category><![CDATA[Multiple]]></category> <category><![CDATA[pdf]]></category> <category><![CDATA[platform]]></category> <category><![CDATA[testing]]></category> <category><![CDATA[VMware]]></category> <category><![CDATA[website]]></category><guid isPermaLink="false">http://blog.lixiphp.com/multiple-browser-platform-testing/</guid> <description><![CDATA[This is my evaluation what is the better way to test website on multiple browser and platform. and it can be a consulting for every website developing.IETester is a free WebBrowser Browsershots Online Testing (free or $29.95/month)IETester Software(Free, Recommended)Gomez Multi-Browser TestingVMware Workstation 7.1 Virtual Machine Test($189)Cross Browser Testing($19.95/$49.95/$199.95, Recommended)On one operation system we already have all IE browsers, Firefox, Chrome 10, Opera, and Safari. Had tested all popular browsers.Tester can really check the website at a remote operation system exactly.]]></description> <content:encoded><![CDATA[<p>This is my evaluation what is the better way to test website on multiple browser and platform. and it can be a consulting for every website developing.</p><h4>IETester Software(Free, Recommended)</h4><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/clip_image002.jpg" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="IETester Software(Free, Recommended) image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/clip_image002_thumb.jpg" border="0" alt="IETester Software(Free, Recommended) image" width="554" height="428" /></a></p><p><strong>Website:<br /> </strong>http://www.my-debugbar.com/wiki/IETester/HomePage</p><p><strong>Feature:<br /> </strong>IETester is a free WebBrowser that allows you to have the rendering and javascript engines of IE9<strong> preview, </strong>IE8<strong>, </strong>IE7<strong> IE 6 and </strong>IE5<strong>.5 on Windows 7, Vista and XP</strong>, as well as the installed IE in the same process.</p><p><strong>Weakness:<br /> </strong>It will be influenced by local machine system.</p><p><strong>Advantage:<br /> </strong>It can collect all IE browser together.</p><h4>Browsershots Online Testing (free or $29.95/month)</h4><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/image13.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="Browsershots Online Testing (free or $29.95/month) image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/image_thumb13.png" border="0" alt="Browsershots Online Testing (free or $29.95/month) image" width="640" height="337" /></a></p><p><strong>Website:</strong><strong><br /> </strong>http://browsershots.org/</p><p><strong>Feature:<br /> </strong>Browsershots makes screenshots of your web design in different operating systems and browsers. It is a free open-source online web application providing developers a convenient way to test their website&#8217;s browser compatibility in one place. When you submit your web address, it will be added to the job queue. A number of distributed computers will open your website in their browser. Then they will make screenshots and upload them to our central dedicated servers for your review.</p><p><strong>Weakness:<br /> </strong>1. It’s online testing; we can only get a screenshot.<br /> 2. Free using will wait for a long time.<br /> 3. Just can get a fixed resolution ratio screenshot, maybe it is not we wanted.<br /> 4. Every time will choose browser first.<br /> 5. Testing a web page will handle many times.</p><p><strong>Advantage (Paid user):<br /> </strong>1. Your screenshot requests will be processed immediately.<br /> 2. You will often get 30 to 50 screenshots within 2 to 5 minutes.<br /> 3. Get screenshots of any web address, as often as you want.<br /> 4. Pay with Paypal, all major credit card accepted, we don&#8217;t have your credit card information.<br /> 5. Instant activation after payment made.<br /> 6. No need to extend requests to avoid expiration.<br /> 7. Your screenshots are private (only you will see them, or somebody who already knows your URL).<br /> 8. Ad-free web interface.<br /> 9. Dedicated email support from <a href="mailto:priority@browsershots.org">priority@browsershots.org</a>.<br /> 10. Your payment supports an open-source project.<br /> (...)<br/>Read the rest of <a href="http://blog.lixiphp.com/multiple-browser-platform-testing/">Multiple browser and platform testing</a> (619 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/multiple-browser-platform-testing/">Permalink</a> | <a href="http://blog.lixiphp.com/multiple-browser-platform-testing/#comments">One comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/multiple-browser-platform-testing/&amp;title=Multiple browser and platform testing">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/browser/" rel="tag">browser</a>, <a href="http://blog.lixiphp.com/tags/browsershots/" rel="tag">Browsershots</a>, <a href="http://blog.lixiphp.com/tags/gomez/" rel="tag">Gomez</a>, <a href="http://blog.lixiphp.com/tags/ietester/" rel="tag">IETester</a>, <a href="http://blog.lixiphp.com/tags/macosx/" rel="tag">MacOSX</a>, <a href="http://blog.lixiphp.com/tags/multiple/" rel="tag">Multiple</a>, <a href="http://blog.lixiphp.com/tags/pdf/" rel="tag">pdf</a>, <a href="http://blog.lixiphp.com/tags/platform/" rel="tag">platform</a>, <a href="http://blog.lixiphp.com/tags/testing/" rel="tag">testing</a>, <a href="http://blog.lixiphp.com/tags/vmware/" rel="tag">VMware</a>, <a href="http://blog.lixiphp.com/tags/website/" rel="tag">website</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/multiple-browser-platform-testing/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>WordPress模板中常用的文章循环代码</title><link>http://blog.lixiphp.com/wordpress-query-post-snippets/</link> <comments>http://blog.lixiphp.com/wordpress-query-post-snippets/#comments</comments> <pubDate>Sun, 17 Apr 2011 12:02:37 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Snippets]]></category> <category><![CDATA[Post]]></category> <category><![CDATA[query]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[主题]]></category> <category><![CDATA[挂件]]></category> <category><![CDATA[模板]]></category><guid isPermaLink="false">http://blog.lixiphp.com/wordpress-query-post-snippets/</guid> <description><![CDATA[WordPress模板用的使用最常见的代码。 每次循环结束后，请使用wp_reset_query();函数重置查询条件。WordPress辅助的插件是query-posts.0.3.2。Query Posts挂件自定义设置.wp_reset_query();if ( have_posts() ) : while ( have_posts() ) : the_post();query_posts(‘cat=8&#038;order=ASC’)]]></description> <content:encoded><![CDATA[<p>WordPress模板用的使用最常见的代码。</p><pre class="brush: php; title: ; notranslate">
&lt;?php //The Query
query_posts(‘cat=8&amp;order=ASC’) ;?&gt;
&lt;?php //The Loop
if ( have_posts() ) : while ( have_posts() ) : the_post();?&gt;
&lt;!– Place Content Here –&gt;
&lt;?php endwhile; else: ?&gt;
&lt;!– Place Content Here –&gt;
&lt;?php endif;?&gt;
&lt;?php //Reset Query
wp_reset_query();?&gt;
</pre><p><strong>注意：</strong>每次循环结束后，请使用wp_reset_query();函数重置查询条件。</p><p>PS：WordPress辅助的插件是query-posts.0.3.2</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/image12.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="WordPress query-posts.0.3.2 image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/image_thumb12.png" border="0" alt="WordPress query-posts.0.3.2 image" width="644" height="418" /></a></p><p><em>Query Posts</em> 挂件自定义设置.</p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/wordpress-develop-layout-theme/" title="WordPress二次开发之如何布局？如何做主题？">WordPress二次开发之如何布局？如何做主题？</a></li><li><a href="http://blog.lixiphp.com/drupal7-rest-theme-to-bartik/" title="Drupal7强制把主题恢复到默认主题">Drupal7强制把主题恢复到默认主题</a></li><li><a href="http://blog.lixiphp.com/wordpress-config-poedit-i18n/" title="如何配置和使用poedit实现多语言">如何配置和使用poedit实现多语言</a></li><li><a href="http://blog.lixiphp.com/ecmall-admin-add-template/" title="ECMall如何在后台添加模板编辑页">ECMall如何在后台添加模板编辑页</a></li><li><a href="http://blog.lixiphp.com/wordpress-blog-update-first-step/" title="WordPress更新之第一步整装待发">WordPress更新之第一步整装待发</a></li><li><a href="http://blog.lixiphp.com/php-affiliate-marketing-pap4/" title="PHP Affiliate Marketing 网络营销系统 PAP4">PHP Affiliate Marketing 网络营销系统 PAP4</a></li><li><a href="http://blog.lixiphp.com/wordpress-develop-widget-area-logic/" title="WordPress二次开发之如何让边栏更加灵活">WordPress二次开发之如何让边栏更加灵活</a></li><li><a href="http://blog.lixiphp.com/work-summary-mysql-drupal-php/" title="工作技巧总结mysql与drupal">工作技巧总结mysql与drupal</a></li><li><a href="http://blog.lixiphp.com/wordpress-plugins/" title="本博客使用的插件">本博客使用的插件</a></li><li><a href="http://blog.lixiphp.com/wordpress-perfect-upgrade/" title="WordPress完美升级方案,解决升级频繁问题">WordPress完美升级方案,解决升级频繁问题</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/wordpress-query-post-snippets/">Permalink</a> | <a href="http://blog.lixiphp.com/wordpress-query-post-snippets/#comments">One comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/wordpress-query-post-snippets/&amp;title=WordPress模板中常用的文章循环代码">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/post/" rel="tag">Post</a>, <a href="http://blog.lixiphp.com/tags/query/" rel="tag">query</a>, <a href="http://blog.lixiphp.com/tags/wordpress/" rel="tag">WordPress</a>, <a href="http://blog.lixiphp.com/tags/%e4%b8%bb%e9%a2%98/" rel="tag">主题</a>, <a href="http://blog.lixiphp.com/tags/%e6%8c%82%e4%bb%b6/" rel="tag">挂件</a>, <a href="http://blog.lixiphp.com/tags/%e6%a8%a1%e6%9d%bf/" rel="tag">模板</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/wordpress-query-post-snippets/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>DIV+CSS公司网站模板源码免费下载</title><link>http://blog.lixiphp.com/div_css_corporate_template_free_download/</link> <comments>http://blog.lixiphp.com/div_css_corporate_template_free_download/#comments</comments> <pubDate>Sat, 16 Apr 2011 13:05:59 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Opensource]]></category> <category><![CDATA[DIV]]></category> <category><![CDATA[Easy Slider]]></category> <category><![CDATA[JQuery]]></category> <category><![CDATA[免费下载]]></category> <category><![CDATA[公司模板]]></category><guid isPermaLink="false">http://blog.lixiphp.com/div_css_corporate_template_free_download/</guid> <description><![CDATA[DIV+CSS公司网站模板源码免费下载，此模板是国外公司网站的通用框架，主要提供给学习DIV+CSS的童鞋们学习研究使用。请勿用于任何商业应用。图片轮播特效 jQuery JavaScript Library v1.3.2 Easy Slider 1.5 - jQuery plugin  首页 index.html 案例 project.html 服务 services.html 联系 contact.html  主样式表 style.css]]></description> <content:encoded><![CDATA[<p>此模板是国外公司网站的通用框架，主要提供给学习DIV+CSS的童鞋们学习研究使用。请勿用于任何商业应用。</p><h4>模板首页预览</h4><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/image11.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/image_thumb11.png" width="644" height="389" /></a></p><p>特征如下：</p><ul><li>Columns: 1,Columns: 2,</li><li>Compatible Browsers: IE8, IE9, FireFox 2, FireFox 3, Firefox 3.5, Firefox 3.6, Firefox 4, Safari 4, Safari 5, Opera, Chrome 4, Chrome 5</li><li>Valid HTML: Yes</li></ul><h4>模板说明及下载</h4><p>包含文件列表：</p><ul><li>首页 index.html</li><li>案例 project.html</li><li>服务 services.html</li><li>联系 contact.html</li><li>主样式表 style.css</li></ul><p>图片轮播特效文件列表：</p><ul><li>jQuery JavaScript Library v1.3.2</li><li>Easy Slider 1.5 &#8211; jQuery plugin</li></ul><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/div_css_corporate_template_free_download/">DIV+CSS公司网站模板源码免费下载</a> (1 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/div_css_corporate_template_free_download/">Permalink</a> | <a href="http://blog.lixiphp.com/div_css_corporate_template_free_download/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/div_css_corporate_template_free_download/&amp;title=DIV+CSS公司网站模板源码免费下载">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/css-desgin-artcile/" rel="tag">CSS</a>, <a href="http://blog.lixiphp.com/tags/div/" rel="tag">DIV</a>, <a href="http://blog.lixiphp.com/tags/easy-slider/" rel="tag">Easy Slider</a>, <a href="http://blog.lixiphp.com/tags/jquery/" rel="tag">JQuery</a>, <a href="http://blog.lixiphp.com/tags/%e5%85%8d%e8%b4%b9%e4%b8%8b%e8%bd%bd/" rel="tag">免费下载</a>, <a href="http://blog.lixiphp.com/tags/%e5%85%ac%e5%8f%b8%e6%a8%a1%e6%9d%bf/" rel="tag">公司模板</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/div_css_corporate_template_free_download/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Opencart二次开发珍珠购物平台</title><link>http://blog.lixiphp.com/opencart-b2c-pearl-shopping-cart/</link> <comments>http://blog.lixiphp.com/opencart-b2c-pearl-shopping-cart/#comments</comments> <pubDate>Sat, 16 Apr 2011 12:04:48 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Project]]></category> <category><![CDATA[b2c]]></category> <category><![CDATA[MVC]]></category> <category><![CDATA[Opencart]]></category> <category><![CDATA[pearl]]></category> <category><![CDATA[shopping cart]]></category> <category><![CDATA[二次开发]]></category> <category><![CDATA[珍珠]]></category><guid isPermaLink="false">http://blog.lixiphp.com/opencart-b2c-pearl-shopping-cart/</guid> <description><![CDATA[从目前市场上的B2C平台而言。国内出名的B2C商城有：京东商城、凡客、梦芭莎、V+、麦考林等。相对卖珍珠的平台，有手链、项链、戒指、吊坠、耳环等，变种属性各有不同。Opencart是一个轻型的MVC面向对象开发的shopping cart框架，还可以应用到普遍的CMS平台。支持多语言，控制器-模型-视图各个相互独立，低耦合性。珍珠产品详细页面B2C购物平台开发。]]></description> <content:encoded><![CDATA[<p><strong>Opencart</strong>是一个轻型的MVC面向对象开发的shopping cart框架，还可以应用到普遍的CMS平台。支持多语言，控制器-模型-视图各个相互独立，低耦合性。</p><p>Controller-Model-Language-View，适合独自开发新功能，拓展性很高，亦可去掉自己不想用的控制器，非常灵活。</p><h4>开发珍珠网购平台</h4><p>从目前市场上的B2C平台而言。国内出名的B2C商城有：京东商城、凡客、梦芭莎、V+、麦考林等。相对卖珍珠的平台，有手链、项链、戒指、吊坠、耳环等，变种属性各有不同。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/image8.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="珍珠购物平台首页image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/image_thumb8.png" border="0" alt="珍珠购物平台首页image" width="644" height="206" /></a><br /> <strong>珍珠购物平台</strong></p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/image9.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="珍珠产品详细页面image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/image_thumb9.png" border="0" alt="珍珠产品详细页面image" width="644" height="456" /></a><br /> <strong>略显复杂的珍珠详细页面</strong><br /> (...)<br/>Read the rest of <a href="http://blog.lixiphp.com/opencart-b2c-pearl-shopping-cart/">Opencart二次开发珍珠购物平台</a> (3 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/opencart-b2c-pearl-shopping-cart/">Permalink</a> | <a href="http://blog.lixiphp.com/opencart-b2c-pearl-shopping-cart/#comments">One comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/opencart-b2c-pearl-shopping-cart/&amp;title=Opencart二次开发珍珠购物平台">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/b2c/" rel="tag">b2c</a>, <a href="http://blog.lixiphp.com/tags/mvc/" rel="tag">MVC</a>, <a href="http://blog.lixiphp.com/tags/opencart/" rel="tag">Opencart</a>, <a href="http://blog.lixiphp.com/tags/pearl/" rel="tag">pearl</a>, <a href="http://blog.lixiphp.com/tags/shopping-cart/" rel="tag">shopping cart</a>, <a href="http://blog.lixiphp.com/tags/%e4%ba%8c%e6%ac%a1%e5%bc%80%e5%8f%91/" rel="tag">二次开发</a>, <a href="http://blog.lixiphp.com/tags/%e7%8f%8d%e7%8f%a0/" rel="tag">珍珠</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/opencart-b2c-pearl-shopping-cart/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>大学项目案例总结</title><link>http://blog.lixiphp.com/university-website-building/</link> <comments>http://blog.lixiphp.com/university-website-building/#comments</comments> <pubDate>Sat, 16 Apr 2011 11:12:50 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Portfolio]]></category> <category><![CDATA[大学]]></category> <category><![CDATA[案例]]></category> <category><![CDATA[网站建设]]></category><guid isPermaLink="false">http://blog.lixiphp.com/university-website-building/</guid> <description><![CDATA[大学项目案例总结，大学网站建设。中北大学教务处 、中北大学服务集团、中北大学化工与环境学院 、中北大学校友办 、中国兵工学会第十五届测试年会 、中北大学研究生委员会 、山西中北大学高教信息 、中北大学数学建模基地 、中北大学学术交流中心 、中北大学机械制造基础精品课程 、中北大学艺术系 、中北大学招生与就业处]]></description> <content:encoded><![CDATA[<p>这是我在大学期间完成的一些项目，虽然技术上不是很好，但是这些项目伴随着我一起成长，已经离开大学一年多了，那时候的记忆还很犹新。</p><p>注意排名不分先后。早起作品浏览器兼容个别有问题，请包容！</p><h4>网站建设</h4><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/image.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/image_thumb.png" width="240" height="52" /></a></p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/image1.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/image_thumb1.png" width="468" height="60" /></a>&#160;</p><p>奥卡米（Aucamus）团队，请访问<a href="http://www.aucamus.com">http://www.aucamus.com</a>，承接网站建设，电子商务网站，交友类网站等。</p><h4>中北大学服务集团</h4><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/04/image2.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="中北大学服务集团 网站建设image" border="0" alt="中北大学服务集团 网站建设image" src="http://blog.lixiphp.com/wp-content/uploads/2011/04/image_thumb2.png" width="660" height="411" /></a></p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/university-website-building/">大学项目案例总结</a> (15 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/university-website-building/">Permalink</a> | <a href="http://blog.lixiphp.com/university-website-building/#comments">2 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/university-website-building/&amp;title=大学项目案例总结">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/%e5%a4%a7%e5%ad%a6/" rel="tag">大学</a>, <a href="http://blog.lixiphp.com/tags/%e6%a1%88%e4%be%8b/" rel="tag">案例</a>, <a href="http://blog.lixiphp.com/tags/%e7%bd%91%e7%ab%99%e5%bb%ba%e8%ae%be/" rel="tag">网站建设</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/university-website-building/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>应该养成写博客的习惯</title><link>http://blog.lixiphp.com/write-blog-daily/</link> <comments>http://blog.lixiphp.com/write-blog-daily/#comments</comments> <pubDate>Thu, 14 Apr 2011 14:58:03 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Wo De Life]]></category> <category><![CDATA[习惯]]></category> <category><![CDATA[博客]]></category><guid isPermaLink="false">http://blog.lixiphp.com/write-blog-daily/</guid> <description><![CDATA[养成好的习惯 每天时不时的更新博客的内容，不管是否精华，总结一下自己每天的东西，博客是用来书写个人的特有的东西，及时表达自己也是分享自己。  做好自己的笔记，很多东西随着时间的流逝，忘记了太多。 记录事情的优先级，重要的事情谁是第一要完成的，第二要完成的。  给自己一个好的作息时间安排。 给自己一个长远的目标和短期目标。 经常整理自己的电脑。记得回复别人的评论。 学习高级知识，不要停留在难以摆脱的小技巧上。 找一个别人相信的借口。]]></description> <content:encoded><![CDATA[<p>亲爱的朋友们，一晃我已经很久没有更新过博客，时间过得很快，最近稀里糊涂的日子过得很不充实，没有计划没有目标，整个人似乎已经变成写代码的工具，只有看到那些搞了很久都没有搞好的项目，就完全没有状态去做事。以前很忙的时候，再晚也要把每天的博客更新起走，现在是对项目没什么欲望也没有了上进。</p><h4>养成好的习惯</h4><ul><li>每天时不时的更新博客的内容，不管是否精华，总结一下自己每天的东西，博客是用来书写个人的特有的东西，及时表达自己也是分享自己。</li><li>做好自己的笔记，很多东西随着时间的流逝，忘记了太多。</li><li>记录事情的优先级，重要的事情谁是第一要完成的，第二要完成的。</li><li>给自己一个好的作息时间安排。</li><li>给自己一个长远的目标和短期目标。</li><li>经常整理自己的电脑。</li><li>记得回复别人的评论。</li><li>学习高级知识，不要停留在难以摆脱的小技巧上。</li><li>找一个别人相信的借口。</li></ul><h4>列一个近期要研究的列表</h4><ol><li>VIM</li><li>Drupal7</li></ol><h4>近期工作安排</h4><ol><li>DIYWED</li><li>KFE</li></ol><h4>近期将做的开源事业</h4><ol><li>CKeditor Plugin</li></ol><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/wordpress-windows-live-writer/" title="WordPress通过Windows Live Writer离线写博客文章并远程发布">WordPress通过Windows Live Writer离线写博客文章并远程发布</a></li><li><a href="http://blog.lixiphp.com/hello-world/" title="Hello world！">Hello world！</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/write-blog-daily/">Permalink</a> | <a href="http://blog.lixiphp.com/write-blog-daily/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/write-blog-daily/&amp;title=应该养成写博客的习惯">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/%e4%b9%a0%e6%83%af/" rel="tag">习惯</a>, <a href="http://blog.lixiphp.com/tags/blog/" rel="tag">博客</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/write-blog-daily/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>win7 Microsoft office 2010 Crack Download</title><link>http://blog.lixiphp.com/win7-office-2010-crack-keygen/</link> <comments>http://blog.lixiphp.com/win7-office-2010-crack-keygen/#comments</comments> <pubDate>Sun, 27 Mar 2011 04:46:45 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[2010]]></category> <category><![CDATA[crack]]></category> <category><![CDATA[Keygen]]></category> <category><![CDATA[Microsoft]]></category> <category><![CDATA[office]]></category> <category><![CDATA[Toolkit]]></category><guid isPermaLink="false">http://blog.lixiphp.com/?p=1295</guid> <description><![CDATA[win7 Microsoft office 2010 Crack Download，Office 2010 Toolkit是一个一键激活MS Office 2010的工具。Office 2010 Professional Plus FULL KEYGEN Microsoft Office Professional Plus 2010 Office 2010 Toolkit and EZ-Activator.]]></description> <content:encoded><![CDATA[<p>今天在网上找了很多关于破解Microsoft Office Professional Plus 2010 的方法，在国外搜了很多。Microsoft Office 2010 Professional Plus FULL KEYGEN free 和 Microsoft office 2010 ProfessionalPlus Crack，都下载不了。最终找到一个一键安装包用于破解Microsoft Office 2010。名为Office 2010 Toolkit！！！</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/03/Microsoft-office-2010-ProfessionalPlus-Crack.png" class="highslide-image" onclick="return hs.expand(this);"><img title="Microsoft office 2010 ProfessionalPlus Crack" src="http://blog.lixiphp.com/wp-content/uploads/2011/03/Microsoft-office-2010-ProfessionalPlus-Crack.png" alt="" width="497" height="377" /></a></p><p>Office 2010 Professional Plus FULL KEYGEN<br /> Microsoft Office Professional Plus 2010<br /> Office 2010 Toolkit and EZ-Activator.</p><p>Office 2010 Toolkit是一个一键激活MS Office 2010的工具。原理就是利用KMS来激活，不是新的激活技术:( 180天后必须手工再次激活一次。网上流传的MAK密钥激活甚称完美，但有次数限制，激活后要备份激活信息，以便重装系统恢复激活。Office 2010 Toolkit也有备份激活信息功能，建议下载一个Office 2010 Toolkit备用。</p><p>使用说明：<br /> 1、安装MS Office 2010<br /> 2、运行Office 2010 Toolkit，按“EZ-Activator” 按钮一键激活。</p><h4>Downloads 下载:</h4><p><a href="http://mods.myftp.org/Tools/CODYQX4/OTK2010V212.zip" target="_blank">Office 2010 Toolkit 2.1.2</a></p><p><a href="http://mods.myftp.org/Tools/CODYQX4/OTK2010V212.zip" target="_blank">Microsoft Office Professional Plus 2010 Crack</a></p><p>按照上面的使用说明操作后。</p><p>备注:激活成功会出现 Office 2010 Successful activation 字样.<br /> (...)<br/>Read the rest of <a href="http://blog.lixiphp.com/win7-office-2010-crack-keygen/">win7 Microsoft office 2010 Crack Download</a> (10 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/win7-office-2010-crack-keygen/">Permalink</a> | <a href="http://blog.lixiphp.com/win7-office-2010-crack-keygen/#comments">One comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/win7-office-2010-crack-keygen/&amp;title=win7 Microsoft office 2010 Crack Download">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/2010/" rel="tag">2010</a>, <a href="http://blog.lixiphp.com/tags/crack/" rel="tag">crack</a>, <a href="http://blog.lixiphp.com/tags/keygen/" rel="tag">Keygen</a>, <a href="http://blog.lixiphp.com/tags/microsoft/" rel="tag">Microsoft</a>, <a href="http://blog.lixiphp.com/tags/office/" rel="tag">office</a>, <a href="http://blog.lixiphp.com/tags/toolkit/" rel="tag">Toolkit</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/win7-office-2010-crack-keygen/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Drupal7强制把主题恢复到默认主题</title><link>http://blog.lixiphp.com/drupal7-rest-theme-to-bartik/</link> <comments>http://blog.lixiphp.com/drupal7-rest-theme-to-bartik/#comments</comments> <pubDate>Thu, 24 Mar 2011 16:15:35 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[Bartik]]></category> <category><![CDATA[Drupal7]]></category> <category><![CDATA[PHPMyAdmin]]></category> <category><![CDATA[SQL]]></category> <category><![CDATA[themes]]></category> <category><![CDATA[主题]]></category> <category><![CDATA[原创技术文章]]></category><guid isPermaLink="false">http://blog.lixiphp.com/drupal7-rest-theme-to-bartik/</guid> <description><![CDATA[Drupal7强制把主题恢复到默认主题 。今天遇到安装Drupal7一个主题名为：bluemasters后，drupal的body content就不能显示正常，也无法进入管理后台。Rest Drupal Theme to Bartik]]></description> <content:encoded><![CDATA[<p>今天遇到安装Drupal7一个主题名为：bluemasters后，drupal的body content就不能显示正常，也无法进入管理后台。</p><p>万不得已之下只有使用数据库进行恢复。</p><h4>Rest Drupal Theme to Bartik</h4><p>SQL语句如下：</p><blockquote><p><code>UPDATE system SET status = 0 WHERE type = 'theme'; <br />UPDATE system SET status=1 WHERE type='theme' AND (name = 'seven' OR name = 'bartik'); <br />TRUNCATE cache; <br />TRUNCATE cache_block; <br />TRUNCATE cache_bootstrap; <br />TRUNCATE cache_field; <br />TRUNCATE cache_filter; <br />TRUNCATE cache_form; <br />TRUNCATE cache_image; <br />TRUNCATE cache_menu; <br />TRUNCATE cache_path; <br />TRUNCATE cache_page; <br />TRUNCATE cache_update; <br />TRUNCATE cache_views; <br />TRUNCATE cache_views_data; </code></p></blockquote><p>复制到phpmyadmin的sql运行，如下图：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/03/image2.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="drupal7 phpmyadmin的sql运行 image" border="0" alt="drupal7 phpmyadmin的sql运行 image" src="http://blog.lixiphp.com/wp-content/uploads/2011/03/image_thumb2.png" width="660" height="389" /></a></p><h4>Drupal7 Bartik 默认主题</h4><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/03/image3.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="A flexible, recolorable theme with many regions. Drupal7 bartik" border="0" alt="A flexible, recolorable theme with many regions. Drupal7 bartik" src="http://blog.lixiphp.com/wp-content/uploads/2011/03/image_thumb3.png" width="644" height="278" /></a>&#160;</p><h5>Drupal7 Bartik 7.0 (default theme)</h5><p>A flexible, recolorable theme with many regions.</p><p>欢迎回到Drupal7 Bartik</p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/wordpress-query-post-snippets/" title="WordPress模板中常用的文章循环代码">WordPress模板中常用的文章循环代码</a></li><li><a href="http://blog.lixiphp.com/wordpress-develop-layout-theme/" title="WordPress二次开发之如何布局？如何做主题？">WordPress二次开发之如何布局？如何做主题？</a></li><li><a href="http://blog.lixiphp.com/top-10-drupal-administration-themes/" title="排名前10的Drupal后台管理主题">排名前10的Drupal后台管理主题</a></li><li><a href="http://blog.lixiphp.com/beautiful-table-css-from-phpmyadmin/" title="漂亮的TABLE CSS来自PHPMyAdmin">漂亮的TABLE CSS来自PHPMyAdmin</a></li><li><a href="http://blog.lixiphp.com/mysql-always-sql/" title="MySQL常用实用SQL语句, 不断更新&#8230;">MySQL常用实用SQL语句, 不断更新&#8230;</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/drupal7-rest-theme-to-bartik/">Permalink</a> | <a href="http://blog.lixiphp.com/drupal7-rest-theme-to-bartik/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/drupal7-rest-theme-to-bartik/&amp;title=Drupal7强制把主题恢复到默认主题">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/bartik/" rel="tag">Bartik</a>, <a href="http://blog.lixiphp.com/tags/drupal7/" rel="tag">Drupal7</a>, <a href="http://blog.lixiphp.com/tags/phpmyadmin/" rel="tag">PHPMyAdmin</a>, <a href="http://blog.lixiphp.com/tags/sql/" rel="tag">SQL</a>, <a href="http://blog.lixiphp.com/tags/themes/" rel="tag">themes</a>, <a href="http://blog.lixiphp.com/tags/%e4%b8%bb%e9%a2%98/" rel="tag">主题</a>, <a href="http://blog.lixiphp.com/tags/%e5%8e%9f%e5%88%9b%e6%8a%80%e6%9c%af%e6%96%87%e7%ab%a0/" rel="tag">原创技术文章</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/drupal7-rest-theme-to-bartik/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>解决opencart 多个ckeditor同时存在时报错</title><link>http://blog.lixiphp.com/opencart-ckeditor-filebrowserse-is-undefined/</link> <comments>http://blog.lixiphp.com/opencart-ckeditor-filebrowserse-is-undefined/#comments</comments> <pubDate>Tue, 22 Mar 2011 14:49:27 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Opencart]]></category> <category><![CDATA[ckeditor]]></category> <category><![CDATA[filebrowserSe]]></category> <category><![CDATA[MVC]]></category><guid isPermaLink="false">http://blog.lixiphp.com/opencart-ckeditor-filebrowserse-is-undefined/</guid> <description><![CDATA[opencart 多语言或者一个页面中同时存在两个ckeditor时会第二个编辑器的图片无法差入到编辑器中。z._.filebrowserSe is undefined y.filebrowser.url=C;y.hidden=false;}}e...tributes.style=t+'height:'+n(v)+';';window.opener.CKEDITOR.tools.callFunction(1, '< ?php echo $directory; ?>' + $(this).attr('file'));参数CKEditorFuncNum至关重要。错误原因是这个参数没有传输正确。]]></description> <content:encoded><![CDATA[<p>很久没有更新博客了。这段时间的确很忙，在忙一个商城和一个婚礼自助平台的项目，使用到opencart，并认为它是一个简单快速的基于MVC的框架。</p><p>要做电子商务，你可以选择在淘宝，拍拍，Ebay或是最新的百度有啊，而如果要自己搭建平台，当然首先要选择一个合适的电子商务管理系统（<strong>外贸网店系统</strong>）。<br /> <strong>OpenCart</strong>是新一代基于PHP开发的开源在线购物车系统（OpenSource）。OpenCart具有易于使用，功能丰富，搜索引擎友好和漂亮简洁的操作界面等特点。<br /> <strong>OpenCart</strong>的前台界面的设计非常适合欧美购物者的浏览习惯：简洁，直观，唯美。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/03/screenshot2.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="超乎简单的开源外贸网店建站系统--OpenCart" src="http://blog.lixiphp.com/wp-content/uploads/2011/03/screenshot2_thumb.png" border="0" alt="超乎简单的开源外贸网店建站系统--OpenCart" width="385" height="207" /></a></p><p>解决一个bug来自opencart官方V1.4.9.3最新版本的错误。</p><h4>z._.filebrowserSe is undefined BUG</h4><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/03/image.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="image" src="http://blog.lixiphp.com/wp-content/uploads/2011/03/image_thumb.png" border="0" alt="image" width="660" height="335" /></a></p><p>多语言或者一个页面中同时存在两个ckeditor时会第二个编辑器的图片无法差入到编辑器中。报错如下：</p><blockquote><p>z._.filebrowserSe is undefined<br /> y.filebrowser.url=C;y.hidden=false;}}e&#8230;tributes.style=t+&#8217;height:&#8217;+n(v)+&#8217;;';</p></blockquote><p>弹出框图片地址：</p><p>/admin/index.php?route=common/filemanager&amp;token=8fbd2c44bf315bc6b0c887b7dd7cd879&amp;CKEditor=description1&amp;CKEditorFuncNum=1&amp;langCode=zh-cn</p><p>查阅ckeditor官方文档，参数CKEditorFuncNum至关重要。错误原因是这个参数没有传输正确。</p><p>查询文件\admin\view\template\common\filemanager.tpl 201行代码，如下：</p><blockquote><p>window.opener.CKEDITOR.tools.callFunction(1, &#8216;&lt;?php echo $directory; ?&gt;&#8217; + $(this).attr(&#8216;file&#8217;));</p></blockquote><p>这里callFunction传输的参数都为1，当然要错了。</p><p>修改方法：将1改为动态传输参数&#8217;CKEditorFuncNum&#8217;。</p><blockquote><p>window.opener.CKEDITOR.tools.callFunction(&lt;?php echo $_GET['CKEditorFuncNum']; ?&gt;, &#8216;&lt;?php echo $directory; ?&gt;&#8217; + $(this).attr(&#8216;file&#8217;));</p></blockquote><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/opencart-ckeditor-filebrowserse-is-undefined/">解决opencart 多个ckeditor同时存在时报错</a> (7 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/opencart-ckeditor-filebrowserse-is-undefined/">Permalink</a> | <a href="http://blog.lixiphp.com/opencart-ckeditor-filebrowserse-is-undefined/#comments">One comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/opencart-ckeditor-filebrowserse-is-undefined/&amp;title=解决opencart 多个ckeditor同时存在时报错">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/ckeditor/" rel="tag">ckeditor</a>, <a href="http://blog.lixiphp.com/tags/filebrowserse/" rel="tag">filebrowserSe</a>, <a href="http://blog.lixiphp.com/tags/mvc/" rel="tag">MVC</a>, <a href="http://blog.lixiphp.com/tags/opencart/" rel="tag">Opencart</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/opencart-ckeditor-filebrowserse-is-undefined/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>完整的MIME Types List</title><link>http://blog.lixiphp.com/mime-types-list/</link> <comments>http://blog.lixiphp.com/mime-types-list/#comments</comments> <pubDate>Fri, 18 Feb 2011 14:49:56 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[browsers]]></category> <category><![CDATA[list]]></category> <category><![CDATA[mime]]></category> <category><![CDATA[Types]]></category> <category><![CDATA[WAP]]></category><guid isPermaLink="false">http://blog.lixiphp.com/mime-types-list/</guid> <description><![CDATA[MIME types tell browsers how to handle specific extensions. For example, the text/html MIME type equates to .htm, .html, and .shtml extensions on most servers, and this tells your browser to interpret all files with those extensions as HTML files. You can alter or add new MIME types specifically for your site (note that you can not alter the system defined MIME type values). MIME types are often used to handle new technologies as they appear. When WAP technology first appeared no one had these extensions set up on their server. With MIME types, however, you could have set it up yourself and begun serving WAP pages immediately.]]></description> <content:encoded><![CDATA[<p>本文主要用于查阅一个完整的MIME文件类型列表。</p><h4>MIME Types</h4><p>MIME types tell browsers how to handle specific extensions. For example, the text/html MIME type equates to .htm, .html, and .shtml extensions on most servers, and this tells your browser to interpret all files with those extensions as HTML files. You can alter or add new MIME types specifically for your site (note that you can not alter the system defined MIME type values). MIME types are often used to handle new technologies as they appear. When WAP technology first appeared no one had these extensions set up on their server. With MIME types, however, you could have set it up yourself and begun serving WAP pages immediately.</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/02/image.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="完整的MIME Types List image" border="0" alt="完整的MIME Types List image" src="http://blog.lixiphp.com/wp-content/uploads/2011/02/image_thumb.png" width="644" height="353" /></a>&#160;</p><p> (...)<br/>Read the rest of <a href="http://blog.lixiphp.com/mime-types-list/">完整的MIME Types List</a> (1,213 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/mime-types-list/">Permalink</a> | <a href="http://blog.lixiphp.com/mime-types-list/#comments">4 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/mime-types-list/&amp;title=完整的MIME Types List">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/browsers/" rel="tag">browsers</a>, <a href="http://blog.lixiphp.com/tags/list/" rel="tag">list</a>, <a href="http://blog.lixiphp.com/tags/mime/" rel="tag">mime</a>, <a href="http://blog.lixiphp.com/tags/types/" rel="tag">Types</a>, <a href="http://blog.lixiphp.com/tags/wap/" rel="tag">WAP</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/mime-types-list/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>一个艰难的决定-腾讯微博推出开放平台API</title><link>http://blog.lixiphp.com/qq-weibo-open-api/</link> <comments>http://blog.lixiphp.com/qq-weibo-open-api/#comments</comments> <pubDate>Thu, 20 Jan 2011 15:06:11 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[API]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[qq]]></category> <category><![CDATA[应用]]></category> <category><![CDATA[开发]]></category> <category><![CDATA[微博]]></category> <category><![CDATA[腾讯]]></category><guid isPermaLink="false">http://blog.lixiphp.com/qq-weibo-open-api/</guid> <description><![CDATA[一个艰难的决定-腾讯微博推出开放平台API腾讯微博开放平台，为广大开发者提供通过开放接口，可构建丰富多样的应用。你的应用能从微博获取海量资讯，或将信息传播到千万级用户的平台中，得到营销推广机会。提供开放的数据分享和传播服务，加上你的智慧，将创造无穷的功能与乐趣。]]></description> <content:encoded><![CDATA[<p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/01/logo.gif" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="腾讯微博推出开放平台API logo" src="http://blog.lixiphp.com/wp-content/uploads/2011/01/logo_thumb.gif" border="0" alt="腾讯微博推出开放平台API logo" width="353" height="92" /></a></p><p>腾讯微博推出开放平台API：<a title="http://open.t.qq.com/" href="http://open.t.qq.com/">http://open.t.qq.com/</a></p><h4>什么是腾讯微博开放平台？</h4><p>腾讯微博开放平台，为广大开发者提供通过开放接口，可构建丰富多样的应用。</p><p>你的应用能从微博获取海量资讯，或将信息传播到千万级用户的平台中，得到营销推广机会。</p><p>提供开放的数据分享和传播服务，加上你的智慧，将创造无穷的功能与乐趣。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/01/image8.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="微博开放平台可构建丰富多样的应用image" src="http://blog.lixiphp.com/wp-content/uploads/2011/01/image_thumb8.png" border="0" alt="微博开放平台可构建丰富多样的应用image" width="614" height="196" /></a></p><h4>如何开发微博应用？</h4><p>你只需要按照如下步骤操作：</p><p><strong>第一步：</strong>填写你的开发者信息；</p><p><strong>第二步：</strong>联系邮箱通过验证；（电子邮箱将作为我们联系你的重要方式，请提供常用邮箱地址）</p><p><strong>第三步：</strong>填写要创建的应用信息。</p><p>就能马上获取到微博App Key和App Secret，调用微博API，进行应用开发。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/01/image11.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border: 0px;" title="取到微博App Key和App Secret image" src="http://blog.lixiphp.com/wp-content/uploads/2011/01/image11_thumb.png" border="0" alt="取到微博App Key和App Secret image" width="458" height="662" /></a><br /> (...)<br/>Read the rest of <a href="http://blog.lixiphp.com/qq-weibo-open-api/">一个艰难的决定-腾讯微博推出开放平台API</a> (13 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/qq-weibo-open-api/">Permalink</a> | <a href="http://blog.lixiphp.com/qq-weibo-open-api/#comments">3 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/qq-weibo-open-api/&amp;title=一个艰难的决定-腾讯微博推出开放平台API">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/api/" rel="tag">API</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/qq/" rel="tag">qq</a>, <a href="http://blog.lixiphp.com/tags/%e5%ba%94%e7%94%a8/" rel="tag">应用</a>, <a href="http://blog.lixiphp.com/tags/%e5%bc%80%e5%8f%91/" rel="tag">开发</a>, <a href="http://blog.lixiphp.com/tags/%e5%be%ae%e5%8d%9a/" rel="tag">微博</a>, <a href="http://blog.lixiphp.com/tags/%e8%85%be%e8%ae%af/" rel="tag">腾讯</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/qq-weibo-open-api/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>如何配置和使用poedit实现多语言</title><link>http://blog.lixiphp.com/wordpress-config-poedit-i18n/</link> <comments>http://blog.lixiphp.com/wordpress-config-poedit-i18n/#comments</comments> <pubDate>Wed, 19 Jan 2011 15:01:33 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[I18N]]></category> <category><![CDATA[poedit]]></category><guid isPermaLink="false">http://blog.lixiphp.com/wordpress-config-poedit-i18n/</guid> <description><![CDATA[如何配置和使用poedit实现多语言。如果想实现多语言，那么有一个软件你肯定听说过，那就是poedit。第一次使用需要选择界面语言。新建一个语言文件，就是我们的目的文件po文件了(新建消息目录文档)。路径是po文件相对于 模板文件的路径，是一个相对地址。关键字是在使用I18N（就是多语言变量）时的一些函数，WordPress中常用到的有__;_e;_c;esc_html__;esc_html_e。更新按钮为红色，可以使用状态。底部状态栏会提示 已翻译、模糊翻译、未翻译、错误标记四项，且颜色标记不同。]]></description> <content:encoded><![CDATA[<p>如果想实现多语言，那么有一个软件你肯定听说过，那就是poedit。</p><p>本文适用于未使用过POedit的新手阅读，Poedit实现多语言的案例为WordPress，如何实现WordPress的主题多语言。</p><h4>poedit配置</h4><ul><li>第一次使用需要选择界面语言(更改语言使用<strong><u>首选项</u></strong>)</li></ul><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/01/image5.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="poedit第一次使用需要选择界面语言(更改语言使用首选项) image" border="0" alt="poedit第一次使用需要选择界面语言(更改语言使用首选项) image" src="http://blog.lixiphp.com/wp-content/uploads/2011/01/image_thumb5.png" width="516" height="526" /></a></p><ul><li>新建一个语言文件，就是我们的目的文件po文件了(新建消息目录文档)</li></ul><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/01/image6.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="新建消息目录文档 image" border="0" alt="新建消息目录文档 image" src="http://blog.lixiphp.com/wp-content/uploads/2011/01/image_thumb6.png" width="660" height="242" /></a></p><p><strong>注意：</strong></p><ol><li>选择编码为：UTF-8</li><li>路径是po文件相对于 模板文件的路径，是一个相对地址。</li><li>关键字是在使用I18N（就是多语言变量）时的一些函数，WordPress中常用到的有__;_e;_c;esc_html__;esc_html_e</li></ol><h4>poedit使用</h4><p>当配置不正确时，是无法使用 “更新消息目录文档-依照源文件进行同步”这个按钮的。 如下图：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/01/image2.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="更新消息目录文档-依照源文件进行同步 image" border="0" alt="更新消息目录文档-依照源文件进行同步 image" src="http://blog.lixiphp.com/wp-content/uploads/2011/01/image_thumb2.png" width="324" height="56" /></a>&#160; 更新按钮为灰色，不可用状态。</p><p>当配置正确时，无报错并如下图：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2011/01/image3.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="更新按钮为红色可以使用状态image" src="http://blog.lixiphp.com/wp-content/uploads/2011/01/image_thumb3.png" width="321" height="58" /></a>&#160; 更新按钮为红色，可以使用状态。</p><p> (...)<br/>Read the rest of <a href="http://blog.lixiphp.com/wordpress-config-poedit-i18n/">如何配置和使用poedit实现多语言</a> (82 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2011. | <a href="http://blog.lixiphp.com/wordpress-config-poedit-i18n/">Permalink</a> | <a href="http://blog.lixiphp.com/wordpress-config-poedit-i18n/#comments">2 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/wordpress-config-poedit-i18n/&amp;title=如何配置和使用poedit实现多语言">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/i18n/" rel="tag">I18N</a>, <a href="http://blog.lixiphp.com/tags/poedit/" rel="tag">poedit</a>, <a href="http://blog.lixiphp.com/tags/wordpress/" rel="tag">WordPress</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/wordpress-config-poedit-i18n/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>2010年最给力的事暨2011年最给力的展望</title><link>http://blog.lixiphp.com/2010-geili-2011-geili-new-year-2/</link> <comments>http://blog.lixiphp.com/2010-geili-2011-geili-new-year-2/#comments</comments> <pubDate>Fri, 31 Dec 2010 15:57:52 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Wo De Life]]></category> <category><![CDATA[2010]]></category> <category><![CDATA[2011]]></category> <category><![CDATA[new]]></category> <category><![CDATA[year]]></category> <category><![CDATA[给力]]></category><guid isPermaLink="false">http://blog.lixiphp.com/2010-geili-2011-geili-new-year-2/</guid> <description><![CDATA[2010年是一个不平凡的一年，对于我来说最给力的不是犀利哥、凤姐、我爸是李刚，而是我自己最具有价值的事情。学业方面。大学毕业，完成学历生涯。 生活方面，成都，和自己爱的人在一起。 事业方面，功夫英语，第一个工作之后独立完成的项目。 博客方面，LixiPHP，IP累计22098。 开源方面，Drupal、WordPress、Xcart二次开发投入应用。 人脉方面，认识了一个比较凝聚的团队。目标方面，找到自己需要前进的方向。]]></description> <content:encoded><![CDATA[<p>2010年是一个不平凡的一年，对于我来说最给力的不是犀利哥、凤姐、我爸是李刚，而是我自己最具有价值的事情。</p><h4>2010已最给力的</h4><ul><li>学业方面,&#160; 大学毕业，完成学历生涯。</li><li>生活方面，成都，和自己爱的人在一起。</li><li>事业方面，功夫英语，第一个工作之后独立完成的项目。</li><li>博客方面，LixiPHP，IP累计22098。</li><li>开源方面，Drupal、WordPress、Xcart二次开发投入应用。</li><li>人脉方面，认识了一个比较凝聚的团队。</li><li>目标方面，找到自己需要前进的方向。</li></ul><h4>2011最想给力的</h4><ul><li>拥有最给力的团队力量</li><li>开发最给力的开源程序</li><li>运营最给力的商业项目</li><li>满足最给力的诚意客户</li></ul><h4>LixiPHP新年祝福</h4><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image37.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Google的2011新年涂鸦MMXIimage" border="0" alt="Google的2011新年涂鸦MMXIimage" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb37.png" width="226" height="217" /></a>&#160;</p><p>M 代表1000，X 代表10，I 代表1，2011罗马数字的表示方式是所有数位加起来，也就是1000+1000+10+1=2011。这是引用Google的涂鸦。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image38.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="2011_happy_new_year 新年快乐 image" border="0" alt="2011_happy_new_year 新年快乐 image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb38.png" width="530" height="350" /></a></p><p>LixiPHP也借此机会祝大家新年快乐！</p><p>祝福2011年所有本命年的一线同胞一切顺利！</p></p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/S09HXDN1J_E1F7QB76H.jpg" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="再见2011，奋斗2011" border="0" alt="再见2011，奋斗2011" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/S09HXDN1J_E1F7QB76H_thumb.jpg" width="376" height="257" /></a></p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/new-year-buy-anycall-s5230c/" title="元旦购买三星手机S5230C黑色">元旦购买三星手机S5230C黑色</a></li><li><a href="http://blog.lixiphp.com/happy-nwe-year/" title="新年贺语">新年贺语</a></li><li><a href="http://blog.lixiphp.com/win7-office-2010-crack-keygen/" title="win7 Microsoft office 2010 Crack Download">win7 Microsoft office 2010 Crack Download</a></li><li><a href="http://blog.lixiphp.com/2010-software-architect-sign-up-and-source-download/" title="2010年四川软件设计师水平考试报名及资料下载">2010年四川软件设计师水平考试报名及资料下载</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/2010-geili-2011-geili-new-year-2/">Permalink</a> | <a href="http://blog.lixiphp.com/2010-geili-2011-geili-new-year-2/#comments">10 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/2010-geili-2011-geili-new-year-2/&amp;title=2010年最给力的事暨2011年最给力的展望">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/2010/" rel="tag">2010</a>, <a href="http://blog.lixiphp.com/tags/2011/" rel="tag">2011</a>, <a href="http://blog.lixiphp.com/tags/new/" rel="tag">new</a>, <a href="http://blog.lixiphp.com/tags/year/" rel="tag">year</a>, <a href="http://blog.lixiphp.com/tags/%e7%bb%99%e5%8a%9b/" rel="tag">给力</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/2010-geili-2011-geili-new-year-2/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>ECMall如何在后台添加模板编辑页</title><link>http://blog.lixiphp.com/ecmall-admin-add-template/</link> <comments>http://blog.lixiphp.com/ecmall-admin-add-template/#comments</comments> <pubDate>Sun, 26 Dec 2010 03:59:00 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[ECMall]]></category> <category><![CDATA[app]]></category> <category><![CDATA[ecmall]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[template]]></category> <category><![CDATA[模板]]></category><guid isPermaLink="false">http://blog.lixiphp.com/ecmall-admin-add-template/</guid> <description><![CDATA[ECMall如何在后台添加模板编辑页 获取可以编辑的页面列表 //默认栏目分类页//默认首页//新增应用秒杀模板//新增模块拍卖模板这里如果模板名称对应着这个页面的URL地址。请确保这个URL可以通过网络地址访问。]]></description> <content:encoded><![CDATA[<p>编辑文档admin\app\template.app.php。</p><h4>获取ECMall编辑页面列表</h4><pre class="brush: php; title: ; notranslate">
    /**
     *    获取可以编辑的页面列表
     *
     *    @author    Garbin
     *    @param    none
     *    @return    void
     */
    function _get_editable_pages()
    {
        return array(
            'index' =&gt; SITE_URL . '/index.php',
            'gcategory' =&gt; SITE_URL . '/index.php?app=category',
            'miaosha' =&gt; SITE_URL . '/index.php?app=miaosha',
            'auction' =&gt; SITE_URL . '/index.php?module=auction',
        );
    }
</pre><p><strong>注意：</strong>这里如果模板名称对应着这个页面的URL地址。请确保这个URL可以通过网络地址访问。</p><p>更新template app的语言包，位于\languages\sc-utf-8\admin\template.app.php，加入语言选项，&#8217;index&#8217; ,&#8217;gcategory&#8217; ,&#8217;miaosha&#8217; ,&#8217;auction&#8217;</p><p>&#8216;index&#8217; =&gt; &#8216;首页&#8217;, &#8216;gcategory&#8217; =&gt; &#8216;商品分类页&#8217;,'miaosha&#8217; =&gt; &#8216;秒杀推广页&#8217;,'auction&#8217; =&gt; &#8216;夺宝竞拍页&#8217;, 完成以上后，就会看到以下：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image33.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="ecmall 模板编辑 image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb33.png" border="0" alt="ecmall 模板编辑 image" width="497" height="223" /></a></p><h4>ECMall模板标签</h4><p>在模板的头部加入:</p><blockquote><p>&lt;!&#8211;&lt;editmode&gt;&lt;/editmode&gt;—&gt;</p></blockquote><p><strong>注意：</strong>这个标签必须存在，不然无法加载控件。</p><blockquote><p>&lt;!&#8211;{widgets page=auction area=left}—&gt;</p></blockquote><p><strong>注意：</strong>这里的page参数直接为你使用的那个模板编辑页面，有时搞了半天没有效果，可能就是页面参数没对~@@~。</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/ecmall-admin-add-template/">ECMall如何在后台添加模板编辑页</a> (17 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/ecmall-admin-add-template/">Permalink</a> | <a href="http://blog.lixiphp.com/ecmall-admin-add-template/#comments">3 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/ecmall-admin-add-template/&amp;title=ECMall如何在后台添加模板编辑页">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/app/" rel="tag">app</a>, <a href="http://blog.lixiphp.com/tags/ecmall/" rel="tag">ecmall</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/template/" rel="tag">template</a>, <a href="http://blog.lixiphp.com/tags/%e6%a8%a1%e6%9d%bf/" rel="tag">模板</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/ecmall-admin-add-template/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Drupal二次开发之如何发送邮件附件</title><link>http://blog.lixiphp.com/drupal-develop-send-attachment-email/</link> <comments>http://blog.lixiphp.com/drupal-develop-send-attachment-email/#comments</comments> <pubDate>Fri, 24 Dec 2010 07:57:48 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[attachment]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[mail]]></category> <category><![CDATA[mime]]></category><guid isPermaLink="false">http://blog.lixiphp.com/drupal-develop-send-attachment-email/</guid> <description><![CDATA[默认drupal_mail()函数不包含附件的功能。互联网搜索，很多人建议使用mimemail module，但没有提供以它如何能够从你的代码中使用的建议。你必须下载并启用mimemail模块，然后你就可以在程序中使用mimemail函数
发送的电子邮件的内容中使用的CSS。我想补充的覆盖功能，这是我的template.php文件像这样：
$recipient = 'admin@lixiphp.com,service@lixiphp.com,lixiphp@qq.com'; //只能使用user object和字符串变量]]></description> <content:encoded><![CDATA[<p>默认drupal_mail()函数不包含附件的功能。互联网搜索，很多人建议使用<a href="http://drupal.org/project/mimemail">mimemail module</a>，但没有提供以它如何能够从你的代码中使用的建议。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image31.png" class="highslide-image" onclick="return hs.expand(this);"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="Mime Mail模块image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb31.png" border="0" alt="Mime Mail模块image" width="481" height="240" /></a> 这是Mime Mail模块安装截图。</p><h4>如何使用MIME Mail</h4><p>下面是英文参数说明：</p><pre class="brush: xml; title: ; notranslate">
+/**
+ * Sends a mime-encoded e-mail.
+ *
+ * This function first determines the mail engine to use, then prepares the
+ * message by calling the mail engine's prepare function, or
+ * mimemail_prepare() if another one does not exist, then sends the message.
+ *
+ * @param $sender
+ *   The email address or user object who is sending the message.
+ * @param $recipient
+ *   An email address or user object who is receiving the message.
+ * @param $subject
+ *   A subject line string.
+ * @param $body
+ *   The message body in HTML format.
+ * @param $plaintext
+ *   Whether to send the message as plaintext only or HTML. If set to 1, Yes
+ *   or TRUE, then the message will be sent as plaintext.
+ * @param $headers
+ *   Optional e-mail headers in a keyed array.
+ * @param $text
+ *   Optional plaintext portion of a multipart e-mail (instead of auto-generated).
+ * @param $attachments
+ *   An array of arrays which describe one or more attachments. The internal
+ *   array consists of two parts: the file's path and the file's MIME type.
+ *   The array of arrays looks something like this:
+ *   Array
+ *   (
+ *     [0] =&amp;gt; Array
+ *       (
+ *         [filepath] =&amp;gt; '/path/to/file.name'
+ *         [filemime] =&amp;gt; 'mime/type'
+ *       )
+ *   )
+ * @param $mailkey
+ *   An identifier for the message.
+ * @return
+ *   An array containing the MIME encoded message, including headers and body.
+ */
</pre><pre>发送Email的方法：</pre><ul><li>你必须下载并启用mimemail模块，然后你就可以在程序中使用mimemail函数</li><li>发送的电子邮件的内容中使用的CSS。我想补充的覆盖功能，这是我的template.php文件像这样：</li></ul><pre class="brush: php; title: ; notranslate">
function phptemplate_mimemail_message($body, $mailkey = null){
  return $body;
}
</pre><p>其他模块中使用方法：</p><ul><li>一些重要变量</li></ul><blockquote><p>global $base_url;  //系统网址</p><p>$sender = variable_get(&#8216;site_mail&#8217;, ini_get(&#8216;sendmail_from&#8217;)); //后台配置的邮件发送者</p><p>$title = variable_get(&#8216;site_name&#8217;, &#8216;Drupal&#8217;); //系统站点名称</p></blockquote><ul><li>函数调用</li></ul><p>//pdf文件附件发送, 这里我上传的文件位于：/sites/default/files/lixiphp高级编程.pdf，注意对比自己的文件路径。</p><blockquote><p>$attachments[]=array(</p><p>&#8216;filepath&#8217; =&gt; file_directory_path().&#8217;/lixiphp高级编程.pdf&#8217;,  //要注意的事项, 文件路径从文档根目录而不是从服务器的根。</p><p>&#8216;filename&#8217; =&gt; &#8216;lixiphp高级编程.pdf&#8217;,</p><p>&#8216;filemime&#8217; =&gt; &#8216;application/pdf&#8217;,</p><p>);</p><p>mimemail($sender,$recipient,$title,$user_body,NULL,array(),NULL,$attachments,&#8221;);</p></blockquote><p>多个接收邮件人，邮件使用“,”分开，比如</p><blockquote><p>$recipient = &#8216;admin@lixiphp.com,service@lixiphp.com,lixiphp@qq.com&#8217;; //只能使用user object和字符串变量</p></blockquote><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/drupal-develop-send-attachment-email/">Drupal二次开发之如何发送邮件附件</a> (1 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/drupal-develop-send-attachment-email/">Permalink</a> | <a href="http://blog.lixiphp.com/drupal-develop-send-attachment-email/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/drupal-develop-send-attachment-email/&amp;title=Drupal二次开发之如何发送邮件附件">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/attachment/" rel="tag">attachment</a>, <a href="http://blog.lixiphp.com/tags/drupal/" rel="tag">drupal</a>, <a href="http://blog.lixiphp.com/tags/mail/" rel="tag">mail</a>, <a href="http://blog.lixiphp.com/tags/mime/" rel="tag">mime</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/drupal-develop-send-attachment-email/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>WordPress更新之第一步整装待发</title><link>http://blog.lixiphp.com/wordpress-blog-update-first-step/</link> <comments>http://blog.lixiphp.com/wordpress-blog-update-first-step/#comments</comments> <pubDate>Tue, 21 Dec 2010 09:45:28 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Wo De Life]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[AACX]]></category> <category><![CDATA[Akismet]]></category> <category><![CDATA[Google]]></category> <category><![CDATA[SyntaxHighlighter]]></category> <category><![CDATA[华夏名网]]></category><guid isPermaLink="false">http://blog.lixiphp.com/wordpress-blog-update-first-step/</guid> <description><![CDATA[服务器连通性无法找到Akismet服务器。DNS问题或防火墙阻止了web服务器到 Akismet.com 的访问，Akismet在这个问题修复前无法正常工作。请联系您的主机提供商或防火墙管理员，并提供Akismet和防火墙的相关信息。将现在的个人博客逐步建设为有自己特色的个人网站，不走普遍博客路线。将现在的网站充分利用WordPress3的新功能，打造最新特色网站。逐步向电子商务型博客靠拢。更多的更新下次见。
]]></description> <content:encoded><![CDATA[<p>由于前段时间博客更新太慢，网站被降权，再加上服务器出了些问题，于是更换了服务器。</p><p>随着客户量和访问量的不断加大，决定将博客功能完善。加强与其他博客之间的友谊关系。</p><h4>华夏名网服务器对网络访问限制</h4><h5>服务器连通性</h5><p>无法找到Akismet服务器。</p><p>DNS问题或防火墙阻止了web服务器到 Akismet.com 的访问，<strong>Akismet在这个问题修复前无法正常工作</strong>。请联系您的主机提供商或防火墙管理员，并提供<a href="http://blog.akismet.com/akismet-hosting-faq/">Akismet和防火墙的相关信息</a>。</p><p>最后一次检查在 3 分钟 之前</p><p><strong>RSS错误</strong>：WP HTTP Error: Connection time-out</p><p><strong>Akismet 检测到一个问题。</strong> 网络或服务器问题导致 Akismet 工作异常， <a href="http://blog.lixiphp.com/wp-admin/plugins.php?page=akismet-key-config">点击这里</a>查看怎么修复它。</p><p><strong>Warning</strong>: Unknown: write failed: Disc quota exceeded (69) in <strong>Unknown</strong> on line <strong>0</strong><br /> <strong>Warning</strong>: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home1/vhost/vh449538/temp) in <strong>Unknown</strong> on line <strong>0</strong></p><p>504 Gateway Time-out</p><h4>WordPress更新到 Version 3.0.3</h4><p>已经很久没有更新WordPress版本了，因为服务器DNS有限制的缘故，于是将博客从河南搬到广东惠州。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image28.png" class="highslide-image" onclick="return hs.expand(this);"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb28.png" border="0" alt="WordPress更新到 Version 3.0.3image" width="581" height="520" /></a></p><p>并且将以前WordPress2.X版本的无用主题全部清理掉。</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/wordpress-blog-update-first-step/">WordPress更新之第一步整装待发</a> (26 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/wordpress-blog-update-first-step/">Permalink</a> | <a href="http://blog.lixiphp.com/wordpress-blog-update-first-step/#comments">3 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/wordpress-blog-update-first-step/&amp;title=WordPress更新之第一步整装待发">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/aacx/" rel="tag">AACX</a>, <a href="http://blog.lixiphp.com/tags/akismet/" rel="tag">Akismet</a>, <a href="http://blog.lixiphp.com/tags/google/" rel="tag">Google</a>, <a href="http://blog.lixiphp.com/tags/syntaxhighlighter/" rel="tag">SyntaxHighlighter</a>, <a href="http://blog.lixiphp.com/tags/wordpress/" rel="tag">WordPress</a>, <a href="http://blog.lixiphp.com/tags/%e5%8d%8e%e5%a4%8f%e5%90%8d%e7%bd%91/" rel="tag">华夏名网</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/wordpress-blog-update-first-step/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>ECMall二次开发之如何做底部导航?</title><link>http://blog.lixiphp.com/ecmall-develop-footer-banner/</link> <comments>http://blog.lixiphp.com/ecmall-develop-footer-banner/#comments</comments> <pubDate>Mon, 20 Dec 2010 14:39:12 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[ECMall]]></category> <category><![CDATA[ecmall]]></category> <category><![CDATA[widget]]></category> <category><![CDATA[二次开发]]></category> <category><![CDATA[底部导航]]></category><guid isPermaLink="false">http://blog.lixiphp.com/ecmall-develop-footer-banner/</guid> <description><![CDATA[ECMall底部导航预览这里我模仿了京东商城的底部导航。
ECMall底部导航预览
这里我模仿了京东商城的底部导航。ECMall底部导航预览
这里我模仿了京东商城的底部导航。ECMall底部导航预览
这里我模仿了京东商城的底部导航。ECMall底部导航预览,这里我模仿了京东商城的底部导航。{widget name=XXX}。修改ECMall的模板解析类，打开文件 eccore\view\template.php 文件，搜索：case 'sprintf': 大概在696-700行范围内。做一个foot_banner的widget，底部导航挂件有main.widget.php调用数据程序，widget.info.php挂件信息，widget.html前台显示模板，style.css样式表等。新手上路 售后流程 购物流程 订购方式.]]></description> <content:encoded><![CDATA[<p>如果是一个商场，那么底部的导航是万万不能少的。比如什么常见的新手上路、售后服务、购物流程、订购方式等。</p><table border="1" cellspacing="0" cellpadding="0"><tbody><tr><th width="148" valign="top">新手上路</th><th width="148" valign="top">售后流程</th><th width="148" valign="top">购物流程</th><th width="148" valign="top">订购方式</th></tr><tr><td width="148" valign="top">配送与支付</td><td width="148" valign="top">货到付款区域</td><td width="148" valign="top">配送支付智能查询</td><td width="148" valign="top">支付方式说明</td></tr><tr><td width="148" valign="top">服务保证</td><td width="148" valign="top">退换货原则</td><td width="148" valign="top">售后服务保证</td><td width="148" valign="top">产品质量保证</td></tr><tr><td width="148" valign="top">联系我们</td><td width="148" valign="top">网站故障报告</td><td width="148" valign="top">购物咨询</td><td width="148" valign="top">投诉与建议</td></tr></tbody></table><p>简单的例子淘宝网的底部导航：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image26.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="ecmall 淘宝网的底部导航 image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb26.png" border="0" alt="ecmall 淘宝网的底部导航 image" width="667" height="170" /></a></p><h4>ECMall底部导航挂件</h4><p>做一个foot_banner的widget，底部导航挂件有main.widget.php调用数据程序，widget.info.php挂件信息，widget.html前台显示模板，style.css样式表等。</p><p>├─foot_banner<br /> │      main.widget.php<br /> │      style.css<br /> │      widget.html<br /> │      widget.info.php</p><p>widget.info.php底部导航说明：</p><blockquote><p>return array(<br /> &#8216;name&#8217;      =&gt; &#8216;foot_banner&#8217;,<br /> &#8216;display_name&#8217;  =&gt; &#8216;底部导航&#8217;,<br /> &#8216;author&#8217;    =&gt; &#8216;LixiPHP&#8217;,<br /> &#8216;website&#8217;   =&gt; &#8216;<a href="http://www.lixiphp.com'">http://www.lixiphp.com&#8217;</a>,<br /> &#8216;version&#8217;   =&gt; &#8217;1.0&#8242;,<br /> &#8216;desc&#8217;      =&gt; &#8216;显示底部导航&#8217;,<br /> &#8216;configurable&#8217;  =&gt; false,<br /> );</p></blockquote><h4>ECMall模板调用</h4><ul><li>商场主题模板 themes\mall\default\footer.htm</li><li>商场店铺模板 themes\store\default\footer.htm</li><li>商场模块模板 external\modules\auction\templates\footer.htm</li></ul><p>在&lt;div id=&#8221;footer&#8221;&gt;之前加入：</p><blockquote><p>{widget name=foot_banner}</p></blockquote><p>这样让每一个foot.htm都加入这段代码就可以实现调用底部导航挂件，但是ECMall默认是没有widget这个标签，所以别着急，看下面的模板标签扩展。</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/ecmall-develop-footer-banner/">ECMall二次开发之如何做底部导航?</a> (65 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/ecmall-develop-footer-banner/">Permalink</a> | <a href="http://blog.lixiphp.com/ecmall-develop-footer-banner/#comments">One comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/ecmall-develop-footer-banner/&amp;title=ECMall二次开发之如何做底部导航?">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/ecmall/" rel="tag">ecmall</a>, <a href="http://blog.lixiphp.com/tags/widget/" rel="tag">widget</a>, <a href="http://blog.lixiphp.com/tags/%e4%ba%8c%e6%ac%a1%e5%bc%80%e5%8f%91/" rel="tag">二次开发</a>, <a href="http://blog.lixiphp.com/tags/%e5%ba%95%e9%83%a8%e5%af%bc%e8%88%aa/" rel="tag">底部导航</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/ecmall-develop-footer-banner/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>PHP Affiliate Marketing 网络营销系统 PAP4</title><link>http://blog.lixiphp.com/php-affiliate-marketing-pap4/</link> <comments>http://blog.lixiphp.com/php-affiliate-marketing-pap4/#comments</comments> <pubDate>Sat, 18 Dec 2010 15:58:53 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[Affiliate]]></category> <category><![CDATA[Marketing]]></category> <category><![CDATA[PAP4]]></category> <category><![CDATA[Post]]></category> <category><![CDATA[Pro]]></category> <category><![CDATA[Shopex]]></category><guid isPermaLink="false">http://blog.lixiphp.com/php-affiliate-marketing-pap4/</guid> <description><![CDATA[PHP Affiliate Marketing 网络营销系统 PAP4 。国内著名的电子商务软件及服务提供商Shopex，有点国外Affiliate Marketing的思想，但是和国外的Affiliate Marketing专业软件还是有差距。联盟网络营销(affiliate marketing)的概念可以理解为以下：* 是指独立的广告客户或网站所有者，他们与商家具有帮助其宣传产品或服务的业务关系。联盟机构通过促成销售赚取商家的一小部分佣金。 * 是一种促进方法，用以对公司盟友介绍新客户的行为给予回报， 亦被视作为一种数字化的特许经营或者合资企业。 * 是透过利润分享的方式，与网站主建立互惠合作关系，达成商品销售或名单蒐集的目的。]]></description> <content:encoded><![CDATA[<p>国内著名的电子商务软件及服务提供商Shopex，有点国外Affiliate Marketing的思想，但是和国外的Affiliate Marketing专业软件还是有差距。</p><h4>1. 联盟营销（Affiliate Marketing）</h4><p><strong> </strong><strong>联盟</strong>网络营销(<strong>affiliate marketing</strong>)的概念可以理解为以下：</p><ul><li>是指独立的广告客户或网站所有者，他们与商家具有帮助其宣传产品或服务的业务关系。联盟机构通过促成销售赚取商家的一小部分佣金。</li><li>是一种促进方法，用以对公司盟友介绍新客户的行为给予回报， 亦被视作为一种数字化的特许经营或者合资企业。</li><li>是透过利润分享的方式，与网站主建立互惠合作关系，达成商品销售或名单蒐集的目的。</li></ul><h4>2. 国内的<strong>联盟</strong>网络营销(<strong>affiliate marketing</strong>)</h4><ul><li>凡客，按照注册用户分成进行的，根据注册用户的购买价值提取一部分佣金。比如点击这个链接，<a title="http://www.vancl.com/WebSource/WebSource.aspx?source=lixiphp&amp;url=http://www.vancl.com/" href="http://www.vancl.com/WebSource/WebSource.aspx?source=lixiphp&amp;url=http://www.vancl.com/">http://www.vancl.com/WebSource/WebSource.aspx?source=lixiphp&amp;url=http://www.vancl.com/</a>，然后注册成为一个账号后，凡客就会把你列为我推荐的一个客户，就会为我分成。</li></ul><ul><li>华夏名网，根据同上的道理，你点击<a title="http://sudu.cn/index.php?rid=115088" href="http://sudu.cn/index.php?rid=115088">http://sudu.cn/index.php?rid=115088</a>，然后注册成为一个账号，你就被列为我推荐的一个客户，同样会为我分成。</li></ul><h4>3. 介绍PAP4</h4><p>PAP4的全称是Post Affiliate Pro，使用PHP语言开发的一套市场推广、产品营销系统。终极的跟踪用户软件。</p><ul><li>生产商后台管理面板</li></ul><p>它是商家（或管理员，会员经理）面板。在这里您可以配置您的活动，成立委员会，添加横幅等。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image23.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="Merchant (admin) panel image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb23.png" border="0" alt="Merchant (admin) panel image" width="644" height="459" /></a></p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/php-affiliate-marketing-pap4/">PHP Affiliate Marketing 网络营销系统 PAP4</a> (164 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/php-affiliate-marketing-pap4/">Permalink</a> | <a href="http://blog.lixiphp.com/php-affiliate-marketing-pap4/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/php-affiliate-marketing-pap4/&amp;title=PHP Affiliate Marketing 网络营销系统 PAP4">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/affiliate/" rel="tag">Affiliate</a>, <a href="http://blog.lixiphp.com/tags/marketing/" rel="tag">Marketing</a>, <a href="http://blog.lixiphp.com/tags/pap4/" rel="tag">PAP4</a>, <a href="http://blog.lixiphp.com/tags/post/" rel="tag">Post</a>, <a href="http://blog.lixiphp.com/tags/pro/" rel="tag">Pro</a>, <a href="http://blog.lixiphp.com/tags/shopex/" rel="tag">Shopex</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/php-affiliate-marketing-pap4/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>ECShop二次开发之电影播客系统</title><link>http://blog.lixiphp.com/ecshop-develop-movie-system/</link> <comments>http://blog.lixiphp.com/ecshop-develop-movie-system/#comments</comments> <pubDate>Fri, 17 Dec 2010 05:37:01 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[ECShop]]></category> <category><![CDATA[discuz]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[ucenter]]></category> <category><![CDATA[二次开发]]></category> <category><![CDATA[电影播客系统]]></category> <category><![CDATA[电影点播系统]]></category><guid isPermaLink="false">http://blog.lixiphp.com/ecshop-develop-movie-system/</guid> <description><![CDATA[架构方面，对于电影播客系统而言就要有个强大的用户模块功能，考虑到ecshop是B2C，而我们的电影播客系统也是一种B2C，需要对注册用户进行实时跟踪。
订单处理方面，ECShop已经有了完备的过程，所以电影播客系统在处理用户点播时，就是一种购买的流程。也节省了很多流程去考虑。
程序方面，由于ECShop的程序是面向过程，再集成一些library类库，相对独立性比较高，耦合性低。加上ECShop的灵活性，二次开发难度简单。
理解方面，电影就是一种产品，可以免费也可以收费。这样理解的话，这个电影点播系统就这么一回事。
成功预览]]></description> <content:encoded><![CDATA[<p>对ECShop研究之后找了个模板套上，实现了电影播客系统用ecshop做出来。部分功能还在完善之中，不过可以玩一玩。</p><h4>开发思路</h4><ol><li>架构方面，对于电影播客系统而言就要有个强大的用户模块功能，考虑到ecshop是B2C，而我们的电影播客系统也是一种B2C，需要对注册用户进行实时跟踪。</li><li>订单处理方面，ECShop已经有了完备的过程，所以电影播客系统在处理用户点播时，就是一种购买的流程。也节省了很多流程去考虑。</li><li>程序方面，由于ECShop的程序是面向过程，再集成一些library类库，相对独立性比较高，耦合性低。加上ECShop的灵活性，二次开发难度简单。</li><li>理解方面，电影就是一种产品，可以免费也可以收费。这样理解的话，这个电影点播系统就这么一回事。</li></ol><h4>DEMO预览</h4><p>该电影系统集成电影点播功能，在线购买，论坛，UCenter等功能，对于视频点播功能还有点欠缺，不过后台已经完成。</p><ul><li>电影点播系统，首页预览如下：</li></ul><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image18.png" class="highslide-image" onclick="return hs.expand(this);"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="ECSHOP电影点播系统首页预览image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb18.png" border="0" alt="ECSHOP电影点播系统首页预览image" width="669" height="472" /></a></p><p>演示地址：<a title="http://demo.lixiphp.com/movie/" href="http://demo.lixiphp.com/movie/">http://demo.lixiphp.com/movie/</a></p><ul><li>后台管理界面如下：</li></ul><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image19.png" class="highslide-image" onclick="return hs.expand(this);"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="ECSHOP电影点播系统后台管理预览image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb19.png" border="0" alt="ECSHOP电影点播系统后台管理预览image" width="644" height="378" /></a></p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/ecshop-develop-movie-system/">ECShop二次开发之电影播客系统</a> (13 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/ecshop-develop-movie-system/">Permalink</a> | <a href="http://blog.lixiphp.com/ecshop-develop-movie-system/#comments">4 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/ecshop-develop-movie-system/&amp;title=ECShop二次开发之电影播客系统">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/discuz/" rel="tag">discuz</a>, <a href="http://blog.lixiphp.com/tags/ecshop/" rel="tag">ECShop</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/ucenter/" rel="tag">ucenter</a>, <a href="http://blog.lixiphp.com/tags/%e4%ba%8c%e6%ac%a1%e5%bc%80%e5%8f%91/" rel="tag">二次开发</a>, <a href="http://blog.lixiphp.com/tags/%e7%94%b5%e5%bd%b1%e6%92%ad%e5%ae%a2%e7%b3%bb%e7%bb%9f/" rel="tag">电影播客系统</a>, <a href="http://blog.lixiphp.com/tags/%e7%94%b5%e5%bd%b1%e7%82%b9%e6%92%ad%e7%b3%bb%e7%bb%9f/" rel="tag">电影点播系统</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/ecshop-develop-movie-system/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>WordPress二次开发之如何让边栏更加灵活</title><link>http://blog.lixiphp.com/wordpress-develop-widget-area-logic/</link> <comments>http://blog.lixiphp.com/wordpress-develop-widget-area-logic/#comments</comments> <pubDate>Thu, 16 Dec 2010 05:18:46 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[area]]></category> <category><![CDATA[logic]]></category> <category><![CDATA[query_posts]]></category> <category><![CDATA[Sidebar]]></category> <category><![CDATA[theme]]></category> <category><![CDATA[widget]]></category> <category><![CDATA[wp_reset_query]]></category><guid isPermaLink="false">http://blog.lixiphp.com/wordpress-develop-widget-area-logic/</guid> <description><![CDATA[当我说边栏，我并不一定意味着侧边栏。挂件区域是不限于一个主题可以见到的侧边栏。大多数主题都有一个或两个边栏和配套的有一个或两个挂件区域，但有些主题只有两个边栏，就像著名的Thematic WordPress Theme Framework。Widget Logic给每一个小工具额外的控制领域，就是所谓的'小工具逻辑'，让您控制页面，挂件将如何出现。
此外，还有一个选项增加了WordPress的widget_content过滤-这可以让你调整标准挂件，以满足您不用编辑插件和核心代码的主题。关于如何使用这个插件更深层次的请查看插件首页的常见问题。]]></description> <content:encoded><![CDATA[<p>当我说边栏，我并不一定意味着侧边栏。挂件区域是不限于一个主题可以见到的侧边栏。大多数主题都有一个或两个边栏和配套的有一个或两个挂件区域，但有些主题只有两个边栏，就像著名的Thematic WordPress Theme Framework。</p><p>一个事物不能光从表面上去观察或者听别人说是什么，需要透过现象看本质。WordPress不仅仅是一个博客那么简单，WordPress的widget area也不仅仅局限于左右边栏。当你透过表面的东西看到里面的东西的时候，你就会觉得它非常的强大。</p><h4>Widget Logic插件</h4><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image16.png" class="highslide-image" onclick="return hs.expand(this);"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb16.png" border="0" alt="image" width="285" height="280" /></a></p><p><a href="http://wordpress.org/extend/plugins/widget-logic/">Widget Logic</a>给每一个小工具额外的控制领域，就是所谓的&#8217;小工具逻辑&#8217;，让您控制页面，挂件将如何出现。</p><p>此外，还有一个选项增加了WordPress的widget_content过滤-这可以让你调整标准挂件，以满足您不用编辑插件和核心代码的主题。关于如何使用这个插件更深层次的请查看插件首页的常见问题。</p><h4>Widget Logic示例</h4><p>使当前widget只出现在主页上：is_home()<br /> 使当前widget只出现在某个category上：is_category(&#8216;php&#8217;)<br /> 使当前widget只出现在单篇文章页上：is_single()<br /> 使当前widget只出现在页面(page)上：is_page()<br /> 使当前widget只出现在存档页面(如分类页、标签页)：is_archive()<br /> 使当前widget只出现在搜索结果页面上：is_search()<br /> 使当前widget出现在主页外的所有页面上：!is_home()<br /> 使当前widget出现在“广告”或“联系方式”页面上：is_page(&#8216;advertise&#8217;) || is_page(&#8216;contact&#8217;)</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/wordpress-develop-widget-area-logic/">WordPress二次开发之如何让边栏更加灵活</a> (59 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/wordpress-develop-widget-area-logic/">Permalink</a> | <a href="http://blog.lixiphp.com/wordpress-develop-widget-area-logic/#comments">2 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/wordpress-develop-widget-area-logic/&amp;title=WordPress二次开发之如何让边栏更加灵活">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/area/" rel="tag">area</a>, <a href="http://blog.lixiphp.com/tags/logic/" rel="tag">logic</a>, <a href="http://blog.lixiphp.com/tags/query_posts/" rel="tag">query_posts</a>, <a href="http://blog.lixiphp.com/tags/sidebar/" rel="tag">Sidebar</a>, <a href="http://blog.lixiphp.com/tags/theme/" rel="tag">theme</a>, <a href="http://blog.lixiphp.com/tags/widget/" rel="tag">widget</a>, <a href="http://blog.lixiphp.com/tags/wordpress/" rel="tag">WordPress</a>, <a href="http://blog.lixiphp.com/tags/wp_reset_query/" rel="tag">wp_reset_query</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/wordpress-develop-widget-area-logic/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>WordPress二次开发之如何布局？如何做主题？</title><link>http://blog.lixiphp.com/wordpress-develop-layout-theme/</link> <comments>http://blog.lixiphp.com/wordpress-develop-layout-theme/#comments</comments> <pubDate>Wed, 15 Dec 2010 05:01:18 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[layout]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Sidebar]]></category> <category><![CDATA[theme]]></category> <category><![CDATA[主题]]></category> <category><![CDATA[布局]]></category><guid isPermaLink="false">http://blog.lixiphp.com/wordpress%e4%ba%8c%e6%ac%a1%e5%bc%80%e5%8f%91%e4%b9%8b%e5%a6%82%e4%bd%95%e5%b8%83%e5%b1%80%ef%bc%9f%e5%a6%82%e4%bd%95%e5%81%9a%e4%b8%bb%e9%a2%98%ef%bc%9f/</guid> <description><![CDATA[wordpress二次开发之如何布局？如何做主题？header.php  调用头部模板index.php  首页模板footer.php  调用底部模板sidebar-left.php  调用左半部模板sidebar-right.php  调用右半部模板 WordPress模板列表速查表]]></description> <content:encoded><![CDATA[<p>本文主要讲解WordPress如何布局。Wordpress不仅是一个强大的博客，也是一个强大的CMS。</p><h4>WordPress布局</h4><p>一般body content区域可以在模板中控制，然后sidebar可以做成area去控制，我是这样理解WordPress的。</p><p>例如：我是三列布局，左、中、右三列。我是这样做的，Left Sidebar、Main Body、Right Sidebar。</p><p>我的functions.php中这样写一段代码：</p><pre class="brush: php; title: ; notranslate">
/**
 * Register widgetized areas, including two sidebars and four widget-ready columns in the footer.
 *
 * To override lixiphp_theme_widgets_init() in a child theme, remove the action hook and add your own
 * function tied to the init hook.
 *
 * @uses register_sidebar
 */
function lixiphp_theme_widgets_init() {
	// Area 1, located at the left of the sidebar.
	register_sidebar( array(
		'name' =&gt; __( 'Left Sidebar', 'lixiphp_theme' ),
		'id' =&gt; 'left-widget-area',
		'description' =&gt; __( 'The left widget area', 'lixiphp_theme' ),
		'before_widget' =&gt; '&lt;div id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;',
		'after_widget' =&gt; '&lt;/div&gt;',
		'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',
		'after_title' =&gt; '&lt;/h3&gt;',
	) );

	// Area 2, located right of the sidebar.
	register_sidebar( array(
		'name' =&gt; __( 'Right Sidebar', 'lixiphp_theme' ),
		'id' =&gt; 'right-widget-area',
		'description' =&gt; __( 'The right widget area', 'lixiphp_theme' ),
		'before_widget' =&gt; '&lt;div id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;',
		'after_widget' =&gt; '&lt;/div&gt;',
		'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',
		'after_title' =&gt; '&lt;/h3&gt;',
	) );
}
/** Register sidebars by running lixiphp_theme_widgets_init() on the widgets_init hook. */
add_action( 'widgets_init', 'lixiphp_theme_widgets_init' );
</pre><p>注册两个area：Left Sidebar、Right Sidebar。在后台的widgets界面如下：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image15.png" class="highslide-image" onclick="return hs.expand(this);"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb15.png" border="0" alt="image" width="309" height="104" /></a></p><p>这里的显示的area完全有&#8217;widgets_init&#8217; 控制。</p><h4>WordPress模板对布局支持</h4><p>WordPress的模板机制比较灵活，不管是博客还是cms都能很容易实现。</p><blockquote><p>&lt;?php get_header(); ?&gt;<br /> &lt;?php get_sidebar(&#8216;left&#8217;); ?&gt;<br /> &lt;?php get_sidebar(&#8216;right&#8217;); ?&gt;<br /> &lt;?php get_footer(); ?&gt;</p></blockquote><p>对应的模板是：</p><blockquote><p>header.php  调用头部模板<br /> index.php  首页模板<br /> footer.php  调用底部模板<br /> sidebar-left.php  调用左半部模板<br /> sidebar-right.php  调用右半部模板</p></blockquote><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/wordpress-develop-layout-theme/">WordPress二次开发之如何布局？如何做主题？</a> (39 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/wordpress-develop-layout-theme/">Permalink</a> | <a href="http://blog.lixiphp.com/wordpress-develop-layout-theme/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/wordpress-develop-layout-theme/&amp;title=WordPress二次开发之如何布局？如何做主题？">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/layout/" rel="tag">layout</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/sidebar/" rel="tag">Sidebar</a>, <a href="http://blog.lixiphp.com/tags/theme/" rel="tag">theme</a>, <a href="http://blog.lixiphp.com/tags/wordpress/" rel="tag">WordPress</a>, <a href="http://blog.lixiphp.com/tags/%e4%b8%bb%e9%a2%98/" rel="tag">主题</a>, <a href="http://blog.lixiphp.com/tags/%e5%b8%83%e5%b1%80/" rel="tag">布局</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/wordpress-develop-layout-theme/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>xcart二次开发之三自定义多语言变量</title><link>http://blog.lixiphp.com/xcart-translate-step-variable/</link> <comments>http://blog.lixiphp.com/xcart-translate-step-variable/#comments</comments> <pubDate>Sat, 11 Dec 2010 18:33:12 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[xcart]]></category> <category><![CDATA[label]]></category> <category><![CDATA[translate]]></category> <category><![CDATA[Variables]]></category><guid isPermaLink="false">http://blog.lixiphp.com/xcart-translate-step-variable/</guid> <description><![CDATA[Countries ，国家翻译归类，xcart支持很多国家，使用country_XX进行标示。 E-Mail， 邮件翻译归类，包括一些邮件模板，使用eml_XX进行标示。 Errors， 错误消息翻译归类，使用err_XX进行标示。 Label， 表单元素翻译归类，使用lbl_XX进行标示。
Labels，变量翻译归类，使用lbl_XX进行标示。 Languages， 语言翻译归类，使用language_XX进行标示。 将skin\common_files\customer 下的 language.translate.tpl 复制到你 主题模板下。在头部head.tpl或者底部bottom.tpl模板中使用以下代码调用。
Modules，模块语言翻译归类，使用module_XX进行标示。 Options，设置选项翻译归类，使用opt_XX进行标示。 Text， 文本信息翻译归类，使用txt_XX进行标示。]]></description> <content:encoded><![CDATA[<p>前面我们讲解了实现xcart多语言商场的背景和后台操作方法，接着我们将继续讲解如何在xcart中自定义多语言变量，在后台通过翻译接口翻译各个语种。</p><h4>xcart的语言翻译归类</h4><ul><li>Countries ，国家翻译归类，xcart支持很多国家，使用country_XX进行标示。</li><li>E-Mail， 邮件翻译归类，包括一些邮件模板，使用eml_XX进行标示。</li><li>Errors， 错误消息翻译归类，使用err_XX进行标示。</li><li>Label， 表单元素翻译归类，使用lbl_XX进行标示。</li><li>Labels，变量翻译归类，使用lbl_XX进行标示。</li><li>Languages， 语言翻译归类，使用language_XX进行标示。</li><li>Modules，模块语言翻译归类，使用module_XX进行标示。</li><li>Options，设置选项翻译归类，使用opt_XX进行标示。</li><li>Text， 文本信息翻译归类，使用txt_XX进行标示。</li></ul><p>默认添加的归类是Labels，一般用于常用变量的翻译，其实选择那个归类无所谓都能实现，只不过把翻译归类了，可读性更高。</p><h4>普通文字多语言切换及模板变量定义</h4><p>例如要在前台实现翻译产品Products，操作过程如下：</p><p>在后台语言界面添加变量 lbl_products，然后再tpl模板中调用变量。注意：这里各个语种都要添加翻译，如果没有就会空白。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image14.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="添加语言Add new entry image" border="0" alt="添加语言Add new entry image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb14.png" width="465" height="321" /></a></p><p>模板调用时使用变量{$lng.lbl_products} 在切换语言时就是自动翻译。</p><h4>图片多语言切换及模板变量定义</h4><p>例如要在前台实现菜单（菜单为图片）的翻译，操作过程如下：</p><p>添加变量的方法同上普通文字变量定义一样，唯一不同的是，翻译是非英语语言的都翻译为英语，因为图片路径最好是英语，是其他字符有可能无法找到该路径。</p><p>一个英语时为english_products.png 翻译为法语是就会寻找french_products.png 的图片。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/f9c5f85a6283.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="图片对照翻译" border="0" alt="图片对照翻译" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/thumb.png" width="315" height="83" /></a></p><p>定于变量menu_products ， 模板中使用{$lng.menu_products}.png，英语为english_products，法语为french_products，以此类推。</p><p> (...)<br/>Read the rest of <a href="http://blog.lixiphp.com/xcart-translate-step-variable/">xcart二次开发之三自定义多语言变量</a> (35 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/xcart-translate-step-variable/">Permalink</a> | <a href="http://blog.lixiphp.com/xcart-translate-step-variable/#comments">2 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/xcart-translate-step-variable/&amp;title=xcart二次开发之三自定义多语言变量">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/label/" rel="tag">label</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/translate/" rel="tag">translate</a>, <a href="http://blog.lixiphp.com/tags/variables/" rel="tag">Variables</a>, <a href="http://blog.lixiphp.com/tags/xcart/" rel="tag">xcart</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/xcart-translate-step-variable/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>如何实现网页特殊字体显示</title><link>http://blog.lixiphp.com/webpage-show-special-font/</link> <comments>http://blog.lixiphp.com/webpage-show-special-font/#comments</comments> <pubDate>Fri, 10 Dec 2010 01:42:59 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[@font-face]]></category> <category><![CDATA[font]]></category> <category><![CDATA[font-family]]></category> <category><![CDATA[Google.Firefox]]></category><guid isPermaLink="false">http://blog.lixiphp.com/webpage-show-special-font/</guid> <description><![CDATA[如何让特殊字体（比如华文仿宋）在网页客户端显示，服务器上无特殊字体，客户端无特殊字体。客户打开网页的时候，提示客户安装该字体。
通过服务器端代码，生成图片格式的文件。
通过上传字体文件到指定目录，让CSS获取然后显示。 这是网页华文仿宋字体的显示效果。<p style="font-family: fangsong">网页显示华文仿宋字体</p>]]></description> <content:encoded><![CDATA[<p>如何让特殊字体（比如华文仿宋）在网页客户端显示，服务器上无特殊字体，客户端无特殊字体。</p><h4>特殊字体显示方案</h4><ol><li>客户打开网页的时候，提示客户安装该字体。</li><li>通过服务器端代码，生成图片格式的文件。</li><li>通过上传字体文件到指定目录，让CSS获取然后显示。</li></ol><p>第一种方案明显存在弊端，用脚本程序去识别客户端是否含有该字体，加重程序的负载量。而且严重影响用户的体验。效果最次！</p><p>第二种方案生成图片，网页加载慢，不利于SEO，效果差！</p><p>第三种方案的弊端就是不符合CSS2.0标准，效果好！</p><h4>@font-face样式</h4><p>@font-face允许作者使用指定的字体来显示在线在其网页上的文字。通过允许作者提供自己的字体，@font-face无需依赖于用户在其计算机上安装的数量有限的字体。</p><h5>语法</h5><blockquote><pre>@font-face {
  font-family: &lt;a-remote-font-name&gt;;
  src: &lt;source&gt; [,&lt;source&gt;]*;
    [font-weight: &lt;weight&gt;];
    [font-style: &lt;style&gt;];
}</pre></blockquote><h5>参数说明</h5><p>&lt;a-remote-font-name&gt;</p><p>指定字体名称，字体可以使用于字体属性。</p><p>&lt;source&gt;</p><p>网址为远程的字体文件的位置，或对用户的形式在本地（“字体名称”）的计算机字体的名称。</p><p>&lt;weight&gt;</p><p>一个字体粗细的值。</p><p>&lt;style&gt;</p><p>一种字体样式值。</p><h4>通过CSS的@font-face属性来实现在网页中嵌入任意字体</h4><p>.TTF经过我的测试，适用于Firefox 3.5+、Safari、Opera、IE8+、Chrome。</p><p>我们在手头上（或在设计资源站点已经找到）有该字体的最常见格式 .TTF 文件。</p><ul><li>使用Google提供的在线字体</li></ul><p>在谷歌字体目录，您可以浏览所有的字体字型，通过谷歌API可使用。由谷歌服务器的服务。关于使用说明请参考官方的文档。</p><p><a title="http://code.google.com/webfonts" href="http://code.google.com/webfonts">http://code.google.com/webfonts</a>，缺点是没有中文字体库。</p><p>引用Google字体：</p><blockquote><pre>&lt;link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine"&gt;

body {
  font-family: 'Tangerine', serif;
  font-size: 48px;
  <strong>text-shadow: 4px 4px 4px #aaa;</strong>
}</pre></blockquote><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image12.png" class="highslide-image" onclick="return hs.expand(this);"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb12.png" border="0" alt="image" width="644" height="338" /></a></p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/webpage-show-special-font/">如何实现网页特殊字体显示</a> (36 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/webpage-show-special-font/">Permalink</a> | <a href="http://blog.lixiphp.com/webpage-show-special-font/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/webpage-show-special-font/&amp;title=如何实现网页特殊字体显示">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/font-face/" rel="tag">@font-face</a>, <a href="http://blog.lixiphp.com/tags/font/" rel="tag">font</a>, <a href="http://blog.lixiphp.com/tags/font-family/" rel="tag">font-family</a>, <a href="http://blog.lixiphp.com/tags/google-firefox/" rel="tag">Google.Firefox</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/webpage-show-special-font/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>xcart二次开发之二如何操作实现多语言商城</title><link>http://blog.lixiphp.com/how-to-xcart-develop-translate-multi-mall/</link> <comments>http://blog.lixiphp.com/how-to-xcart-develop-translate-multi-mall/#comments</comments> <pubDate>Thu, 09 Dec 2010 13:09:20 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[International]]></category> <category><![CDATA[xcart]]></category> <category><![CDATA[商场]]></category> <category><![CDATA[多语言]]></category><guid isPermaLink="false">http://blog.lixiphp.com/how-to-xcart-develop-translate-multi-mall/</guid> <description><![CDATA[可以设置前台语言切换的样式，国旗、下拉框等样式。既然是要要实现xcart多语言商城，当然就要在后台操作，现在市面上用的多的两个界面如下。是用的最多的吧~@~。x-cart-4.3.1-gold 和 x-cart-4.4.1-gold 版本。需要翻译的就是产品分类、静态页面、产品 Static pages Categories Products]]></description> <content:encoded><![CDATA[<p>既然是要要实现xcart多语言商城，当然就要在后台操作，现在市面上用的多的两个界面如下。是用的最多的吧~@~。x-cart-4.3.1-gold 和 x-cart-4.4.1-gold 版本。</p><p>x-cart-4.3.1-gold后台界面如下：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/XCART.PowerfulPHPshoppingcartsoftware.gif" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="X-CART.-Powerful-PHP-shopping-cart-software" border="0" alt="X-CART.-Powerful-PHP-shopping-cart-software" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/XCART.PowerfulPHPshoppingcartsoftware_thumb.gif" width="644" height="522" /></a></p><p> x-cart-4.4.1-gold界面如下：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/XCART4.4.1.PowerfulPHPshoppingcartsoftware.gif" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="X-CART-4.4.1.-Powerful-PHP-shopping-cart-software" border="0" alt="X-CART-4.4.1.-Powerful-PHP-shopping-cart-software" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/XCART4.4.1.PowerfulPHPshoppingcartsoftware_thumb.gif" width="644" height="439" /></a></p></p><h4>翻译流程</h4><p>需要翻译的就是产品分类、静态页面、产品</p><ul><li>Static pages</li><li>Categories</li><li>Products</li></ul><p><strong>1。静态页面的翻译直观，在右上角有个切换语言，就可以找到相应语言下的页面。</strong></p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image6.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb6.png" width="649" height="404" /></a></p><p>后面的流程就是按照一般的添加页面，修改页面，删除页面之类的操作。</p><p> (...)<br/>Read the rest of <a href="http://blog.lixiphp.com/how-to-xcart-develop-translate-multi-mall/">xcart二次开发之二如何操作实现多语言商城</a> (29 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/how-to-xcart-develop-translate-multi-mall/">Permalink</a> | <a href="http://blog.lixiphp.com/how-to-xcart-develop-translate-multi-mall/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/how-to-xcart-develop-translate-multi-mall/&amp;title=xcart二次开发之二如何操作实现多语言商城">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/international/" rel="tag">International</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/xcart/" rel="tag">xcart</a>, <a href="http://blog.lixiphp.com/tags/%e5%95%86%e5%9c%ba/" rel="tag">商场</a>, <a href="http://blog.lixiphp.com/tags/%e5%a4%9a%e8%af%ad%e8%a8%80/" rel="tag">多语言</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/how-to-xcart-develop-translate-multi-mall/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>XAMPP Apache无法启动 ERROR 3547</title><link>http://blog.lixiphp.com/xampp-apche-not-start-error3547/</link> <comments>http://blog.lixiphp.com/xampp-apche-not-start-error3547/#comments</comments> <pubDate>Fri, 03 Dec 2010 08:26:18 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Apache/nginx]]></category> <category><![CDATA[3547]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[httpd]]></category> <category><![CDATA[ports]]></category> <category><![CDATA[skype]]></category> <category><![CDATA[XAMPP]]></category><guid isPermaLink="false">http://blog.lixiphp.com/xampp-apche-not-start-error3547/</guid> <description><![CDATA[在windows7下当不是以管理员身份登录时，无法通过XAMPP control panel去启动服务。所以只能使用它的批处理文件进行启动或者进入windows服务启动apache。 错误信息 运行windows server Apache Windows can not start the Apache2.2 on local computer. For more information, review the system error log… 运行 apache_installservice.bat Installing Apache2.2 as an Service Installing the Apache2.2 service The Apache2.2 service is successfully installed. Testing httpd.conf&#8230;. Errors reported here must be corrected before the service can be started. [...]]]></description> <content:encoded><![CDATA[<p>在windows7下当不是以管理员身份登录时，无法通过XAMPP control panel去启动服务。所以只能使用它的批处理文件进行启动或者进入windows服务启动apache。</p><h4>错误信息</h4><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/apache-not-install-and-start.jpg" class="highslide-image" onclick="return hs.expand(this);"><img title="apache not install and start" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/apache-not-install-and-start.jpg" alt="apache not install and start" width="640" height="301" /></a></p><ul><li>运行windows server Apache</li></ul><p>Windows can not start the Apache2.2 on local computer. For more information, review the system error log…</p><ul><li>运行 apache_installservice.bat</li></ul><p>Installing Apache2.2 as an Service<br /> Installing the Apache2.2 service<br /> The Apache2.2 service is successfully installed.<br /> Testing httpd.conf&#8230;.<br /> Errors reported here must be corrected before the service can be started.<br /> (OS 10048)Only one usage of each socket address (protocol/network address/port)<br /> is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80<br /> no listening sockets available, shutting down<br /> Unable to open logs<br /> Now we Start Apache2.2 <img src='http://blog.lixiphp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br /> The Apache2.2 service is starting.<br /> The Apache2.2 service could not be started.</p><p>A service specific error occurred: 1.</p><p>More help is available by typing NET HELPMSG 3547.</p><p>Press any key to continue . . .</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/xampp-apche-not-start-error3547/">XAMPP Apache无法启动 ERROR 3547</a> (89 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/xampp-apche-not-start-error3547/">Permalink</a> | <a href="http://blog.lixiphp.com/xampp-apche-not-start-error3547/#comments">2 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/xampp-apche-not-start-error3547/&amp;title=XAMPP Apache无法启动 ERROR 3547">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/3547/" rel="tag">3547</a>, <a href="http://blog.lixiphp.com/tags/apache/" rel="tag">Apache</a>, <a href="http://blog.lixiphp.com/tags/httpd/" rel="tag">httpd</a>, <a href="http://blog.lixiphp.com/tags/ports/" rel="tag">ports</a>, <a href="http://blog.lixiphp.com/tags/skype/" rel="tag">skype</a>, <a href="http://blog.lixiphp.com/tags/xampp/" rel="tag">XAMPP</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/xampp-apche-not-start-error3547/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>XCART二次开发之实现多语言站点</title><link>http://blog.lixiphp.com/xcart-mutilanguage-packs/</link> <comments>http://blog.lixiphp.com/xcart-mutilanguage-packs/#comments</comments> <pubDate>Tue, 30 Nov 2010 16:29:04 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[french]]></category> <category><![CDATA[language]]></category> <category><![CDATA[packs]]></category> <category><![CDATA[xcart]]></category> <category><![CDATA[二次开发]]></category><guid isPermaLink="false">http://blog.lixiphp.com/xcart-mutilanguage-packs/</guid> <description><![CDATA[XCART二次开发之实现多语言站点 .XCART是PHP最早开发的一款专业的电子商务及内置支持多国语言系统。xcart 法语语言包]]></description> <content:encoded><![CDATA[<p>XCART是PHP最早开发的一款专业的电子商务及内置支持多国语言系统。</p><p>遗憾的是X-cart的东东都要收费，不过相信天上没有掉下来的馅饼。既然选择x-cart就要为之付出代价啊。。。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="xcart LANGUAGE PACK image" border="0" alt="xcart LANGUAGE PACK image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb.png" width="541" height="632" /></a></p><p>这是一个xcart 法语语言包，居然就卖到了40英镑。详细请点击请入：xcart-language-packs.com/product.php?productid=2&amp;cat=1&amp;page=1</p><p>我在网上找了半天实在找不到，不过有时不需要我们去买，直接让客户去买就得了。</p><p>多语言实现如下：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image1.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb1.png" width="644" height="174" /></a></p></p><p>语言包文件如下：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/12/image2.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.lixiphp.com/wp-content/uploads/2010/12/image_thumb2.png" width="321" height="91" /></a></p><p>很久没有写文章了，这个月的第一篇。</p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/ecshop-develop-movie-system/" title="ECShop二次开发之电影播客系统">ECShop二次开发之电影播客系统</a></li><li><a href="http://blog.lixiphp.com/xcart-translate-step-variable/" title="xcart二次开发之三自定义多语言变量">xcart二次开发之三自定义多语言变量</a></li><li><a href="http://blog.lixiphp.com/how-to-xcart-develop-translate-multi-mall/" title="xcart二次开发之二如何操作实现多语言商城">xcart二次开发之二如何操作实现多语言商城</a></li><li><a href="http://blog.lixiphp.com/ecmall-develop-redwine/" title="ECMALL 二次开发案例 红城外项目">ECMALL 二次开发案例 红城外项目</a></li><li><a href="http://blog.lixiphp.com/php-strip-specific-tags/" title="PHP移除指定HTML标签的方法">PHP移除指定HTML标签的方法</a></li><li><a href="http://blog.lixiphp.com/opencart-b2c-pearl-shopping-cart/" title="Opencart二次开发珍珠购物平台">Opencart二次开发珍珠购物平台</a></li><li><a href="http://blog.lixiphp.com/qq-weibo-open-api/" title="一个艰难的决定-腾讯微博推出开放平台API">一个艰难的决定-腾讯微博推出开放平台API</a></li><li><a href="http://blog.lixiphp.com/ecmall-admin-add-template/" title="ECMall如何在后台添加模板编辑页">ECMall如何在后台添加模板编辑页</a></li><li><a href="http://blog.lixiphp.com/ecmall-develop-footer-banner/" title="ECMall二次开发之如何做底部导航?">ECMall二次开发之如何做底部导航?</a></li><li><a href="http://blog.lixiphp.com/wordpress-develop-layout-theme/" title="WordPress二次开发之如何布局？如何做主题？">WordPress二次开发之如何布局？如何做主题？</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/xcart-mutilanguage-packs/">Permalink</a> | <a href="http://blog.lixiphp.com/xcart-mutilanguage-packs/#comments">One comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/xcart-mutilanguage-packs/&amp;title=XCART二次开发之实现多语言站点">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/french/" rel="tag">french</a>, <a href="http://blog.lixiphp.com/tags/language/" rel="tag">language</a>, <a href="http://blog.lixiphp.com/tags/packs/" rel="tag">packs</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/xcart/" rel="tag">xcart</a>, <a href="http://blog.lixiphp.com/tags/%e4%ba%8c%e6%ac%a1%e5%bc%80%e5%8f%91/" rel="tag">二次开发</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/xcart-mutilanguage-packs/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Drupal theming模板技巧总结第一期[原创]</title><link>http://blog.lixiphp.com/drupal-themeing-template-tips/</link> <comments>http://blog.lixiphp.com/drupal-themeing-template-tips/#comments</comments> <pubDate>Sat, 13 Nov 2010 09:40:32 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[block]]></category> <category><![CDATA[ckeditor]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[page]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[taxonomy]]></category> <category><![CDATA[template]]></category> <category><![CDATA[term]]></category> <category><![CDATA[theme]]></category><guid isPermaLink="false">http://blog.lixiphp.com/?p=1040</guid> <description><![CDATA[Drupal theming模板技巧总结第一期[原创].Drupal对于初学者来说，难点就在不知道怎么做UI，其实Drupal是很灵活的，只要你找到思想。 Drupal思想很重要，只要不断去理解Drupal的思想，不断积累，才会真正理解Drupal的灵活。区块PHP Code控制显示(PHP block visibility settings)CKEditor 中使用PHP Code问题 如何定义分类、标签模板theme taxonomy term 根据页面地址复写模板（Different page templates depending on URL aliases）]]></description> <content:encoded><![CDATA[<p>Drupal对于初学者来说，难点就在不知道怎么做UI，其实Drupal是很灵活的，只要你找到<strong><span style="text-decoration: underline;">思想</span></strong>。 Drupal思想很重要，只要不断去理解Drupal的思想，不断积累，才会真正理解Drupal的灵活。工作中积累不断与大家分享，这是总结的第一期。希望有时间和大家一起分享，帮你找到Drupal的满足感！</p><h4>区块PHP Code控制显示(PHP block visibility settings)</h4><ol><li>Show block on specific pages:</li><li>Show on every page except the listed pages.</li><li>Show on only the listed pages.</li><li>Show if the following PHP code returns <code>TRUE</code> (PHP-mode, experts only).</li></ol><p>这里我们只讨论PHP-mode, experts only，返回值为真，则显示。返回值为假，则不显示。</p><pre class="brush: php; title: ; notranslate">
&lt;?php
if (condition) {
 return TRUE;  // block will be shown
}
 return FALSE;
?&gt;
</pre><p>调用返回值。</p><pre class="brush: php; title: ; notranslate">

&lt;?php return (condition); ?&gt;
</pre><ul><li>是否显示在首页 drupal_is_front_page()</li><li>是否限制登录用户 user_is_anonymous()</li></ul><pre class="brush: php; title: ; notranslate">

&lt;?php
if ( (!user_is_anonymous() &amp;&amp; drupal_is_front_page()) ){
return FALSE;
}else{
return TRUE;
}
?&gt;
</pre><div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-style: none; text-align: left; padding: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; width: 100%; font-family: 'Courier New',courier,monospace; direction: ltr; color: black; font-size: 10pt; overflow: visible;">以上代码的含义是：登录用户首页的当前区块block 不显示。</pre></div><p>更多的研究请查看Drupal官方。</p><ul><li><a href="http://drupal.org/node/33624">Show if the following PHP code returns TRUE (PHP-mode, experts only)</a></li><li><a href="http://drupal.org/node/60317">PHP block visibility settings</a></li><li><a href="http://drupal.org/node/372948">Block visible if on front page</a></li></ul><h4>CKEditor 中使用PHP Code问题</h4><p>在Drupal中安装CKEditor模块和PHP Filter模块，但是当选择PHP code作为输入格式，然后编辑器任然是CKEditor，切换到文本框，Switch to plain text editor</p><p>输入PHP Code如下：</p><blockquote><p>&lt;?php global $user;echo $user-&gt;uid; ?&gt;</p></blockquote><p>CKEditor</p><p>&amp;lt;!&#8211;{cke_protected}%3C%3Fphp%20global%20%24user%3Becho%20%24user-%3Euid%3B%20%3F%3E&#8211;&amp;gt;</p><p>解决方法请参考：<a href="http://peterpetrik.com/blog/ckeditor-and-geshi-filter">CKEditor and GeSHi filter</a></p><h4>如何定义分类、标签模板theme taxonomy term</h4><pre class="brush: php; title: ; notranslate">
/*** Adding custom PHPTemplate suggestions on taxanomy pages.
  ** @param $vars *   A sequential array of variables to pass to theme template.
  */
function phptemplate_preprocess_node(&amp;$vars) {
  if(arg(0) == 'taxonomy'){
    $suggestions = array('node-taxonomy'); //So, node-taxonomy.tpl.php will be known afterwards.
    $vars['template_files'] = array_merge($vars['template_files'], $suggestions);
  }
}
</pre><p>以上函数在<code>template.php</code>中定义复写函数，根据地址获取第一个参数，将模板值更改。</p><p>这样模板就为：<strong>node-taxonomy.tpl.php</strong></p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/drupal-themeing-template-tips/">Drupal theming模板技巧总结第一期[原创]</a> (75 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/drupal-themeing-template-tips/">Permalink</a> | <a href="http://blog.lixiphp.com/drupal-themeing-template-tips/#comments">3 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/drupal-themeing-template-tips/&amp;title=Drupal theming模板技巧总结第一期[原创]">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/block/" rel="tag">block</a>, <a href="http://blog.lixiphp.com/tags/ckeditor/" rel="tag">ckeditor</a>, <a href="http://blog.lixiphp.com/tags/drupal/" rel="tag">drupal</a>, <a href="http://blog.lixiphp.com/tags/page/" rel="tag">page</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/taxonomy/" rel="tag">taxonomy</a>, <a href="http://blog.lixiphp.com/tags/template/" rel="tag">template</a>, <a href="http://blog.lixiphp.com/tags/term/" rel="tag">term</a>, <a href="http://blog.lixiphp.com/tags/theme/" rel="tag">theme</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/drupal-themeing-template-tips/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Microsoft Project mpp to pdf 转换工具</title><link>http://blog.lixiphp.com/microsoft-project-mpp-to-pdf/</link> <comments>http://blog.lixiphp.com/microsoft-project-mpp-to-pdf/#comments</comments> <pubDate>Fri, 12 Nov 2010 14:44:11 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[cutepdf]]></category> <category><![CDATA[mpp]]></category> <category><![CDATA[pdf]]></category><guid isPermaLink="false">http://blog.lixiphp.com/microsoft-project-mpp-to-pdf/</guid> <description><![CDATA[Microsoft Project mpp to pdf 转换工具。CutePDF Writer to create PDF document 创建专业品质的PDF文件从几乎任何可打印的文档。免费为个人，商业，政府或词典使用！无水印！没有弹出网页广告！现在支持64位Windows。以下是介绍一个软件将项目管理mpp文件转换为pdf。]]></description> <content:encoded><![CDATA[<p>以下是介绍一个软件将项目管理mpp文件转换为pdf。</p><h4>CutePDF Writer</h4><p><strong>CutePDF Writer to create PDF document </strong>创建专业品质的PDF文件从几乎任何可打印的文档。免费为个人，商业，政府或词典使用！无水印！没有弹出网页广告！现在支持64位Windows。</p><p>CutePDF是一款易用的Windows软件可以让你对PDF文档输出进行高级控制。你可以轻松加密，加印章，加页眉、页脚，创建小册子或者多页合一的文本，组合文件，重排页序等等。</p><p>主要特点：</p><ul><li>通过CutePDF 轻松创建，预览和电邮PDF文档；</li><li>生成压缩的一面双页的PDF小册子；</li><li>可将多页合而为一以节省实际打印时的纸张和墨水；</li><li>提取，记录和复制页面 ；</li><li>组合多个PDF 文档到一个。</li><li>为页面，网页链接或其它文档创建书签；</li><li>添加诸如数据，时间，页码等的页眉页脚；</li><li>旋转页面；缩放页面尺寸；插入空白页面；</li><li>删除页面；</li><li>加入文本标记；</li><li>加入水印；</li><li>加入背景；</li><li>设定PDF文档信息；</li><li>加入密码和其它安全设定；</li><li>每步都可进行预存操作设定。</li></ul><p>以下是安装、打印、生产PDF截图。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/11/image1.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="CutePDF allows you to create PDF files from any printable document image" src="http://blog.lixiphp.com/wp-content/uploads/2010/11/image_thumb1.png" border="0" alt="CutePDF allows you to create PDF files from any printable document image" width="510" height="395" /></a></p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/11/image2.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="Project to PDF from Microsoft Project image" src="http://blog.lixiphp.com/wp-content/uploads/2010/11/image_thumb2.png" border="0" alt="Project to PDF from Microsoft Project image" width="373" height="213" /></a></p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/11/image3.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="Project to PDF from print image" src="http://blog.lixiphp.com/wp-content/uploads/2010/11/image_thumb3.png" border="0" alt="Project to PDF from print image" width="450" height="367" /></a></p><h4>Project MPP to PDF</h4><ol><li>打开<strong>项目mpp</strong>文件。</li><li>在<strong>“文件”</strong>菜单上，单击<strong>“打印”</strong>。</li><li>在<strong>“名称”</strong>列表中，选择<strong>“CutePDF Writer”</strong>。</li><li>单击<strong>“确定”</strong>。</li><li>在<strong>“将 PDF 文件另存为”</strong>对话框中，为 PDF 文件选择文件名和保存位置，然后单击<strong>“保存”</strong>。</li></ol><p>生产如下PDF，注意生产的pdf和打印的预览一模一样，请先调好打印格式。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/11/image4.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="Project to PDF Converter image" src="http://blog.lixiphp.com/wp-content/uploads/2010/11/image_thumb4.png" border="0" alt="Project to PDF Converter image" width="644" height="247" /></a></p><p>PS：CutePDF不仅适合于打印project mpp，任何可以打印的文档都可以转化为PDF。</p><h4>免费下载project to pdf 转换工具cutepdf</h4><p><a href="http://www.cutepdf.com/download/CuteWriter.exe">Free Download (3.36MB)</a> (Windows 7 Ready)</p><p>我已经使用很久了，分享给大家！</p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/multiple-browser-platform-testing/" title="Multiple browser and platform testing">Multiple browser and platform testing</a></li><li><a href="http://blog.lixiphp.com/drupal-pdf-ebook/" title="Drupal PDF电子书全集">Drupal PDF电子书全集</a></li><li><a href="http://blog.lixiphp.com/english-php-ebook-website-recommend/" title="外文PHP编程技术书籍网站推荐">外文PHP编程技术书籍网站推荐</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/microsoft-project-mpp-to-pdf/">Permalink</a> | <a href="http://blog.lixiphp.com/microsoft-project-mpp-to-pdf/#comments">One comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/microsoft-project-mpp-to-pdf/&amp;title=Microsoft Project mpp to pdf 转换工具">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/cutepdf/" rel="tag">cutepdf</a>, <a href="http://blog.lixiphp.com/tags/mpp/" rel="tag">mpp</a>, <a href="http://blog.lixiphp.com/tags/pdf/" rel="tag">pdf</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/microsoft-project-mpp-to-pdf/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>工作技巧总结mysql与drupal</title><link>http://blog.lixiphp.com/work-summary-mysql-drupal-php/</link> <comments>http://blog.lixiphp.com/work-summary-mysql-drupal-php/#comments</comments> <pubDate>Mon, 08 Nov 2010 09:23:09 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[hook]]></category> <category><![CDATA[Menu]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[replace]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://blog.lixiphp.com/work-summary-mysql-drupal-php/</guid> <description><![CDATA[工作技巧总结mysql与drupal,上面的函数mymodule_attributes_access，还可以加入对地址栏参数的检查，回调函数的参数应该在 'access arguments' => array(1, 2, ...) 里设置。注意这里的 1,2 ... 是指 arg(1), arg(2) ...以此类推。mysql中的replace函数直接替换mysql数据库中某字段中的特定字符串，不再需要自己写函数去替换，用起来非常的方便。 ]]></description> <content:encoded><![CDATA[<p>记录一下两个重要的技巧，可能一不小心你就会在日常应用中遇到。</p><h4>MYSQL替换字符串</h4><p>mysql中的replace函数直接替换mysql数据库中某字段中的特定字符串，不再需要自己写函数去替换，用起来非常的方便。</p><p>mysql 替换函数replace() 语法：</p><blockquote><p>UPDATE `table_name` SET `field_name` = replace (`field_name`,&#8217;from_str&#8217;,'to_str&#8217;) WHERE `field_name` LIKE &#8216;%from_str%&#8217;</p></blockquote><p>说明：</p><blockquote><p>table_name — 表的名字<br /> field_name — 字段名<br /> from_str — 需要替换的字符串<br /> to_str — 替换成的字符串</p></blockquote><p>此方法在WordPress站点移植很有用，例如更新wp-options表使用以下的SQL语句：</p><blockquote><pre>UPDATE `wp-options` SET `option_values` = REPLACE(`option_values`, 'www.olddomain.com', 'www.newdomain.com');</pre></blockquote><h4>如何隐藏和删除Drupal Tab 菜单标签</h4><p>当你写一个定制的模块在自己新加的内容类型时，需要添加一个menu_local_task到node/x/edit路径，但它只有在编辑自定义内容类型时显示。</p><p>添加一个菜单本地任务（TAB）很容易，但是隐瞒其他内容类型中一个tab标签菜单事实证明是徒劳无功的。而且似乎很多人遇到类似的问题。</p><p>使用hook_menu_alter或hook_menu_link_alter在隐藏或者删除tab标签是很难实现的。</p><p>在经过考虑之后，我意识到我的问题很容易通过菜单的访问权限的回调函数去解决。所以这是为特定内容类型添加、编辑和删除菜单标签menu_local_task的代码：</p><div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-style: none; text-align: left; padding: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; width: 100%; font-family: 'Courier New',courier,monospace; direction: ltr; color: black; font-size: 9pt; overflow: visible;">&lt;?php

<span style="color: #008000;">/**</span><span style="color: #008000;">*  implementation of hook_menu()</span><span style="color: #008000;">*/</span><span style="color: #0000ff;">
function</span> mymodule_menu() {

  $items = <span style="color: #0000ff;">array</span>();

  $items[<span style="color: #006080;">'node/%node/edit/attributes'</span>] = <span style="color: #0000ff;">array</span>(    <span style="color: #006080;">
    'title'</span> =&gt; <span style="color: #006080;">'Attributes'</span>,    <span style="color: #006080;">
    'page callback'</span> =&gt; <span style="color: #006080;">'drupal_get_form'</span>,    <span style="color: #006080;">
    'page arguments'</span> =&gt; <span style="color: #0000ff;">array</span>(<span style="color: #006080;">'mymodule_attributes_form'</span>, 1),    <span style="color: #006080;">
    'access callback'</span> =&gt; <span style="color: #006080;">'mymodule_attributes_access'</span>,    <span style="color: #006080;">
    'access arguments'</span> =&gt; <span style="color: #0000ff;">array</span>(1),    <span style="color: #006080;">
    'weight'</span> =&gt; 10,    <span style="color: #006080;">
    'type'</span> =&gt; MENU_LOCAL_TASK,
  );

  <span style="color: #0000ff;">return</span>  $items;
}

<span style="color: #008000;">/**</span><span style="color: #008000;">* Access callback for node/%node/edit/attributes.</span><span style="color: #008000;">*/</span><span style="color: #0000ff;">
function</span> mymodule_attributes_access($node) {  <span style="color: #0000ff;">
  if</span> ($node-&gt;type != <span style="color: #006080;">'mymodule'</span>) {
    <span style="color: #0000ff;">return</span> FALSE;
  }
  <span style="color: #0000ff;">return</span> TRUE; <span style="color: #008000;">
  // TRUE or you can user user_access() permissions as well</span>
}

?&gt;</pre></div><p>Drupal会严格检查用户访问没有节点的权限，如果权限不够，则不会显示TAB菜单。这样我们就可以实现对TAB菜单的删除或者隐藏操作。</p><p>上面的函数mymodule_attributes_access，还可以加入对地址栏参数的检查，回调函数的参数应该在 &#8216;access arguments&#8217; =&gt; array(1, 2, &#8230;) 里设置。注意这里的 1,2 &#8230; 是指 arg(1), arg(2) &#8230;以此类推。</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/work-summary-mysql-drupal-php/">工作技巧总结mysql与drupal</a> (1 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/work-summary-mysql-drupal-php/">Permalink</a> | <a href="http://blog.lixiphp.com/work-summary-mysql-drupal-php/#comments">5 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/work-summary-mysql-drupal-php/&amp;title=工作技巧总结mysql与drupal">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/drupal/" rel="tag">drupal</a>, <a href="http://blog.lixiphp.com/tags/hook/" rel="tag">hook</a>, <a href="http://blog.lixiphp.com/tags/menu/" rel="tag">Menu</a>, <a href="http://blog.lixiphp.com/tags/mysql-article/" rel="tag">MySQL</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/replace/" rel="tag">replace</a>, <a href="http://blog.lixiphp.com/tags/wordpress/" rel="tag">WordPress</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/work-summary-mysql-drupal-php/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>有创意的项目，动作好快</title><link>http://blog.lixiphp.com/qq-360-wobashiligang-com/</link> <comments>http://blog.lixiphp.com/qq-360-wobashiligang-com/#comments</comments> <pubDate>Fri, 05 Nov 2010 01:16:18 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[360]]></category> <category><![CDATA[qq]]></category> <category><![CDATA[QQ劝架补丁]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[人人网]]></category> <category><![CDATA[李刚]]></category><guid isPermaLink="false">http://blog.lixiphp.com/qq-360-wobashiligang-com/</guid> <description><![CDATA[擦亮你的眼睛 —— 我&#124;爸&#124;是&#124;李刚官方网站，人人网的QQ劝架补丁！ 我们不管QQ和360怎么打,但是我们的电脑用什么软件必须是我们自己说了算！这样的互联网时代，什么事情都会遇见，值得收藏！有创意的项目，动作好快]]></description> <content:encoded><![CDATA[<p>一些令人发指的事情，幸好有网络能把我们解决！</p><ul><li>请看人人网的QQ劝架补丁！ 我们不管QQ和360怎么打,但是我们的电脑用什么软件必须是我们自己说了算！</li></ul><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/11/c3625c15134a.jpg" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="图片" src="http://blog.lixiphp.com/wp-content/uploads/2010/11/thumb.jpg" border="0" alt="图片" width="644" height="337" /></a></p><ul><li>擦亮你的眼睛 —— 我|爸|是|李刚</li></ul><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/11/image.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="image" src="http://blog.lixiphp.com/wp-content/uploads/2010/11/image_thumb.png" border="0" alt="image" width="644" height="350" /></a></p><p>在这样的互联网时代，什么事情都会遇见，值得收藏！</p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/qq-support-wennuan-icon/" title="腾讯签名支持爱心图标&ldquo;拒绝冷漠 传递温暖&rdquo;">腾讯签名支持爱心图标&ldquo;拒绝冷漠 传递温暖&rdquo;</a></li><li><a href="http://blog.lixiphp.com/qq-weibo-open-api/" title="一个艰难的决定-腾讯微博推出开放平台API">一个艰难的决定-腾讯微博推出开放平台API</a></li><li><a href="http://blog.lixiphp.com/soft-configure-error-install-vcredist_x86-to-solve/" title="飞信 由于应用程序配置不正确 应用程序未能启动。重新安装应用程序可能会纠正这个问题">飞信 由于应用程序配置不正确 应用程序未能启动。重新安装应用程序可能会纠正这个问题</a></li><li><a href="http://blog.lixiphp.com/my-qq-t-blog-begin/" title="腾讯微博全新推出,邀请码注册">腾讯微博全新推出,邀请码注册</a></li><li><a href="http://blog.lixiphp.com/bbs-see-web-20-site/" title="电子公告牌功能分离现象的发现目前网站的类型">电子公告牌功能分离现象的发现目前网站的类型</a></li><li><a href="http://blog.lixiphp.com/qq-hero-webgame-achievement/" title="QQ三国英雄传玩家lixiphp汇报战况">QQ三国英雄传玩家lixiphp汇报战况</a></li><li><a href="http://blog.lixiphp.com/nuc-process-equipment-design-graduation-confirm/" title="中北大学过程设备设计精品课程&mdash;毕业设计web课件系统">中北大学过程设备设计精品课程&mdash;毕业设计web课件系统</a></li><li><a href="http://blog.lixiphp.com/five-way-publish-powerpoint-web/" title="五种方法将PowerPoint发布到web">五种方法将PowerPoint发布到web</a></li><li><a href="http://blog.lixiphp.com/webgame-hero-qq/" title="玩网游QQ三国英雄传">玩网游QQ三国英雄传</a></li><li><a href="http://blog.lixiphp.com/use-cakephp-build-website-tutorial/" title="使用CakePHP快速打造Web站点入门教程">使用CakePHP快速打造Web站点入门教程</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/qq-360-wobashiligang-com/">Permalink</a> | <a href="http://blog.lixiphp.com/qq-360-wobashiligang-com/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/qq-360-wobashiligang-com/&amp;title=有创意的项目，动作好快">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/360/" rel="tag">360</a>, <a href="http://blog.lixiphp.com/tags/qq/" rel="tag">qq</a>, <a href="http://blog.lixiphp.com/tags/qq%e5%8a%9d%e6%9e%b6%e8%a1%a5%e4%b8%81/" rel="tag">QQ劝架补丁</a>, <a href="http://blog.lixiphp.com/tags/web/" rel="tag">Web</a>, <a href="http://blog.lixiphp.com/tags/%e4%ba%ba%e4%ba%ba%e7%bd%91/" rel="tag">人人网</a>, <a href="http://blog.lixiphp.com/tags/%e6%9d%8e%e5%88%9a/" rel="tag">李刚</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/qq-360-wobashiligang-com/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>phpDesigner 7 功能概述及配置集成工具</title><link>http://blog.lixiphp.com/phpdesigner7-functionality-configuration-tools/</link> <comments>http://blog.lixiphp.com/phpdesigner7-functionality-configuration-tools/#comments</comments> <pubDate>Tue, 26 Oct 2010 16:54:28 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[FileZilla]]></category> <category><![CDATA[ftp]]></category> <category><![CDATA[html]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[JQuery]]></category> <category><![CDATA[phpDesigner 7]]></category> <category><![CDATA[PHPDocumentor]]></category> <category><![CDATA[Tortoise SVN]]></category> <category><![CDATA[WinCacheGrind]]></category> <category><![CDATA[XAMPP]]></category> <category><![CDATA[xdebug]]></category> <category><![CDATA[序列号]]></category><guid isPermaLink="false">http://blog.lixiphp.com/phpdesigner7-functionality-configuration-tools/</guid> <description><![CDATA[PHP开发人员用到的功能HTML CSS Javascript JQuery、ExtJS、Yahoo!用户界面库(YUI)、Dojo、MooTools、prototype PHP。PHP开发人员用到的配置  集成 XDebug 调试工具 WinCacheGrind 调试分析工具 XAMPP 服务器运行环境 Tortoise SVN 项目版本管理控制 PHP手册  FileZilla FTP工具 PHPMyAdmin 数据库管理 PHPDocumentor工具 文件区分和合并工具 phpDesigner 7序列号 Username Serial Validation。]]></description> <content:encoded><![CDATA[<p>注意我当前使用的phpDesigner 7的版本是7.2.2，使用了一段时间的phpDesigner 7，这里对其功能做一个总结，至于好不好用，喜不喜欢用就是个人的习惯问题了。</p><p>以下是我使用phpDesigner 7的两个截图，第一个截图是版权我破解的，第二个是打开启动界面截图。大概的给了你一个phpDesigner 7的形象。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image32.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="phpDesigner 7版权 image" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb31.png" border="0" alt="phpDesigner 7版权 image" width="503" height="411" /></a></p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/phpDesigner7.gif" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="phpDesigner-7打开启动界面截图" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/phpDesigner7_thumb.gif" border="0" alt="phpDesigner-7打开启动界面截图" width="460" height="263" /></a></p><h4>PHP开发人员用到的功能</h4><ul><li>HTML</li></ul><p>基本HTML元素都可以直接通过菜单选择，包括表单，表格，列表，注释，HTML转换，HTML优化（它使用的是HTML Tidy），灵活的找到对应标签。</p><ul><li>CSS</li></ul><p>CSS菜单上经常要使用到的就是注释，链接CSS文件方式，常用字体，和定位。</p><ul><li>Javascript</li></ul><p>我经常用到的就是Javascript菜单栏里的注释，基本函数 alert，prompt，confirm，Document.write()，Window.open()，最经典的应用就是使用它集成的JS框架：JQuery、ExtJS、Yahoo!用户界面库(YUI)、Dojo、MooTools、prototype。</p><p>点击它们中的任何一个链接到库，就会自动生成如下代码，这里只演示JQuery。</p><blockquote><p>&lt;script src=&#8221;<a href="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js&quot;">http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js&#8221;</a>&gt;&lt;/script&gt;</p></blockquote><ul><li>PHP</li></ul><p>PHP里最常用的菜单无非就是注释，Smarty模板，代码美化（代码格式化）。</p><h4>PHP开发人员用到的配置</h4><p>打开工具 &gt; 配置，就可以看到我们整个phpDesigner 7会使用到的配置。我们最常用的就是配置phpDesigner 7的调试工具和集成工具。</p><ul><li>phpDesigner 7 集成 XDebug 调试工具</li></ul><blockquote><p>[XDebug]<br /> xdebug.profiler_output_dir=&#8221;C:\ProgramData\Application Data\phpDesigner\XDebugCache&#8221;<br /> ;; Only Zend OR (!) XDebug<br /> ;zend_extension_ts=&#8221;D:\xampp\php\ext\php_xdebug.dll&#8221;<br /> ;xdebug.remote_enable=true<br /> ;xdebug.remote_host=127.0.0.1<br /> ;xdebug.remote_port=9000<br /> ;xdebug.remote_handler=dbgp<br /> ;xdebug.profiler_enable=1<br /> ;xdebug.profiler_output_dir=&#8221;D:\xampp\tmp&#8221;</p></blockquote><p>这里关于在windows中xampp安装xdebug的教程请查看：<a href="http://blog.lixiphp.com/solve-xampp-xdebug-install-failed/">解决xampp xdebug安装失败</a></p><ul><li>phpDesigner 7 集成 WinCacheGrind 调试分析工具</li></ul><p>WinCacheGrind is a viewer for cachegrind.out files generated by xdebug 2. WinCacheGrind is functionally similar to KCacheGrind。更多信息及下载请到<a title="http://sourceforge.net/projects/wincachegrind/" href="http://sourceforge.net/projects/wincachegrind/">http://sourceforge.net/projects/wincachegrind/</a>，将下载好的WinCacheGrind.exe保存到 D:\xampp\WinCacheGrind\WinCacheGrind.exe 。输入到 phpDesigner 7 配置中如下图；</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image33.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="WinCacheGrind 调试分析工具image" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb32.png" border="0" alt="WinCacheGrind 调试分析工具image" width="499" height="408" /></a></p><p>打开WinCacheGrind可以通过调试菜单下的WinCacheGrind 进入其界面。</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/phpdesigner7-functionality-configuration-tools/">phpDesigner 7 功能概述及配置集成工具</a> (90 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/phpdesigner7-functionality-configuration-tools/">Permalink</a> | <a href="http://blog.lixiphp.com/phpdesigner7-functionality-configuration-tools/#comments">8 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/phpdesigner7-functionality-configuration-tools/&amp;title=phpDesigner 7 功能概述及配置集成工具">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/css-desgin-artcile/" rel="tag">CSS</a>, <a href="http://blog.lixiphp.com/tags/filezilla/" rel="tag">FileZilla</a>, <a href="http://blog.lixiphp.com/tags/ftp/" rel="tag">ftp</a>, <a href="http://blog.lixiphp.com/tags/html/" rel="tag">html</a>, <a href="http://blog.lixiphp.com/tags/javascript/" rel="tag">JavaScript</a>, <a href="http://blog.lixiphp.com/tags/jquery/" rel="tag">JQuery</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/phpdesigner-7/" rel="tag">phpDesigner 7</a>, <a href="http://blog.lixiphp.com/tags/phpdocumentor/" rel="tag">PHPDocumentor</a>, <a href="http://blog.lixiphp.com/tags/tortoise-svn/" rel="tag">Tortoise SVN</a>, <a href="http://blog.lixiphp.com/tags/wincachegrind/" rel="tag">WinCacheGrind</a>, <a href="http://blog.lixiphp.com/tags/xampp/" rel="tag">XAMPP</a>, <a href="http://blog.lixiphp.com/tags/xdebug/" rel="tag">xdebug</a>, <a href="http://blog.lixiphp.com/tags/%e5%ba%8f%e5%88%97%e5%8f%b7/" rel="tag">序列号</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/phpdesigner7-functionality-configuration-tools/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>PHP开源CMS-Drupal做视频站点（第1版）[原创]</title><link>http://blog.lixiphp.com/phpcms-drupal-make-video-website/</link> <comments>http://blog.lixiphp.com/phpcms-drupal-make-video-website/#comments</comments> <pubDate>Sun, 24 Oct 2010 15:12:48 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[CMS]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[jwplayer]]></category> <category><![CDATA[module]]></category> <category><![CDATA[swftools]]></category> <category><![CDATA[video]]></category> <category><![CDATA[views]]></category> <category><![CDATA[website]]></category><guid isPermaLink="false">http://blog.lixiphp.com/phpcms-drupal-make-video-website/</guid> <description><![CDATA[PHP开源CMS-Drupal做视频站点（第1版）[原创]，视频网站在web2.0时代是最常见的互联网类型，国外有Youtobe，BlipTV等，国内有优酷，土豆，酷六，网易等各大门户网站都典型的视频网站。drupal基本讲解、drupal模块安装、Video视频设置、Video视频播放器配置、区块显示视频、于是我们还要修改一下swftools的一个bug，当前版本尚未完善的。打开 sites/all/modules/video/video_formatter.inc 文件]]></description> <content:encoded><![CDATA[<p>视频网站在web2.0时代是最常见的互联网类型，国外有Youtobe，BlipTV等，国内有优酷，土豆，酷六，网易等各大门户网站都典型的视频网站。</p><p>对于某些门户网站或综合型网站都想在CMS的基础上有自己的视频浏览页面。</p><h4>问题分析</h4><p>视频也可以看成一篇文章，只不过内容是视频吧了，类型和CMS差不多，但是问题就在于视频的格式，大小，传输速度等就限制了我们的开发。</p><p>在开发过程中要考虑的问题如下：</p><ul><li>是否是自己原创的视频，是否需要定制的播放还是借助第三方播放插件。</li><li>管理员操纵是否合乎他们的习惯和使用是否简单、快捷。</li><li>程序员需要系统的搭建，自己含有服务器、VPS还是虚拟主机。</li><li>再确定好系统后，分享文件如何上传，毕竟视频不是在2M以内的普通文件，服务器对上传是否有限制。</li><li>上传的视频文件是否要自动转换格式，转换后的效果，已经播放效果，包括分辨率，视频的缩略图，视频的水印处理等。</li></ul><p>我想我的这些考虑并不是全面的，但是应该覆盖了你的大部分需求分析，接下来的问题将讲解drupal做一个视频站点。</p><h4>站点目标</h4><p>这里我假设我们要做个名为dummy的视频站点，它的功能和优酷、土豆网类似。</p><p>功能列表：</p><ul><li>用户可以自行在自己的个人空间上传视频</li><li>管理员审核用户的视频后决定是否发布，发布后用户可以引用视频调用地址</li><li>上传视频有最大文件限制</li><li>上传视频可以自动转换格式为FLV，可以通过SWF文件播放</li><li>转换视频为指定的分辨率，可以在水印图片到视频，视频有缩略图。</li><li>管理员发布视频可以简单的发布视频</li></ul><h3>第一版 视频满足管理员操作</h3><p>这篇文章主要讲解单用户内容管理系统对视频操作的站点，分为以下几个阶段：<a href="#drupal">drupal基本讲解</a>、<a href="#module">drupal模块安装</a>、<a href="#video_setting">Video视频设置</a>、<a href="#video_player">Video视频播放器配置</a>、<a href="#block">区块显示视频</a>。</p><p>好的，让我们真正开始我们精彩的旅程。</p><h4><a name="drupal"></a>Drupal 基本讲解</h4><ul><li><strong>系统环境</strong></li></ul><p>Operating system操作系统：  Windows, Mac OS X, Linux, Unix, BSD, or Solaris<br /> Web server服务器：  Apache 1.2 or Apache 2.x, Microsoft IIS 6 or 7, lighttpd<br /> Database数据库：  MySQL 4.1 or MySQL 5.0, PostgreSQL 7.4<br /> PHP编程脚本：  PHP 4.3.5. is required, but PHP 5.2.x is recommended</p><p>安装环节，请参考drupal官方网站。</p><p>drupal后台的管理界面视图如下：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image17.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="drupal文章内容类型 General view of the administration page" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb16.png" border="0" alt="drupal文章内容类型 General view of the administration page" width="644" height="342" /></a></p><p>drupal文章内容类型截图如下：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image18.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="Content types video drupal文章内容类型" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb17.png" border="0" alt="Content types video drupal文章内容类型" width="644" height="328" /></a> <a name="video"></a></p><p>drupal文章分类、自由标签如下：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image19.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="drupal文章分类、自由标签 Taxonomy  categories and tags image  " src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb18.png" border="0" alt="drupal文章分类、自由标签 Taxonomy  categories and tags image  " width="644" height="263" /></a></p><p>drupal模块列表 (/admin/build/modules/) 截图如下：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image20.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="drupal module 模块列表 image" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb19.png" border="0" alt="drupal module 模块列表 image" width="644" height="363" /></a></p><p>大概的几个界面就讲这些，其他详细的请安装后自由的体验。</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/phpcms-drupal-make-video-website/">PHP开源CMS-Drupal做视频站点（第1版）[原创]</a> (299 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/phpcms-drupal-make-video-website/">Permalink</a> | <a href="http://blog.lixiphp.com/phpcms-drupal-make-video-website/#comments">7 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/phpcms-drupal-make-video-website/&amp;title=PHP开源CMS-Drupal做视频站点（第1版）[原创]">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/cms/" rel="tag">CMS</a>, <a href="http://blog.lixiphp.com/tags/drupal/" rel="tag">drupal</a>, <a href="http://blog.lixiphp.com/tags/jwplayer/" rel="tag">jwplayer</a>, <a href="http://blog.lixiphp.com/tags/module/" rel="tag">module</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/swftools/" rel="tag">swftools</a>, <a href="http://blog.lixiphp.com/tags/video/" rel="tag">video</a>, <a href="http://blog.lixiphp.com/tags/views/" rel="tag">views</a>, <a href="http://blog.lixiphp.com/tags/website/" rel="tag">website</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/phpcms-drupal-make-video-website/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Godaddy 主域名绑定到子目录及管理子域名</title><link>http://blog.lixiphp.com/godaddy-domain-to-subfolder/</link> <comments>http://blog.lixiphp.com/godaddy-domain-to-subfolder/#comments</comments> <pubDate>Fri, 22 Oct 2010 09:06:34 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[Cpanel]]></category> <category><![CDATA[domain]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[Godaddy]]></category> <category><![CDATA[htaccess]]></category> <category><![CDATA[Subdomain]]></category> <category><![CDATA[subflolder]]></category><guid isPermaLink="false">http://blog.lixiphp.com/godaddy-domain-to-subfolder/</guid> <description><![CDATA[以上方法不经支持在Godaddy，同样在cpanel 中有效，请在评论中告诉我你在哪儿实现了。
以上方法不经支持在Godaddy，同样在cpanel 中有效，请在评论中告诉我你在哪儿实现了。
以上方法不经支持在Godaddy，同样在cpanel 中有效。Godaddy Drupal 子目录映射到主域名，Godaddy 主域名绑定到子目录，Godaddy主域名子目录问题，Godaddy 管理子域名子目录，Godaddy的 Hosting Control Center > Domain Management 域名管理。Godaddy 是世界第一大域名注册商，进军主机领域以后发展迅速，据多家监测机构显示，放置在Godaddy上的网站数量已经越居第一位。]]></description> <content:encoded><![CDATA[<p>Godaddy 是世界第一大域名注册商，进军主机领域以后发展迅速，据多家监测机构显示，放置在Godaddy上的网站数量已经越居第一位。</p><p>Godaddy同时提供linux主机，Windows主机，VPS以及独立主机全线主机产品，各种需求的客户在这里都可以找到适合自己的产品。美国主机评论家多次评为第一名。</p><p>Godaddy同时提供独立IP，SSL证书，帮助客户快速打造自己的电子商务网站。</p><h4>Godaddy 管理子域名子目录</h4><p>进入Godaddy的 Hosting Control Center &gt; Domain Management 域名管理（https://hostingmanager.secureserver.net/DomainManagement2.aspx），见下图可以管理子域名，可以配置子域名到各个目录下。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image15.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="Godaddy的 Hosting Control Center 域名管理 image" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb14.png" border="0" alt="Godaddy的 Hosting Control Center 域名管理 image" width="670" height="302" /></a></p><p>但是其添加子域名时，Subdomain不能添加www或者为空，说明这个域名管理不能管理主域名。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image16.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="Godaddy Adding a subdomain to this hosting image" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb15.png" border="0" alt="Godaddy Adding a subdomain to this hosting image" width="644" height="268" /></a></p><p><strong>注意：</strong>添加域名时，可以选择其文件夹，默认是选择一个和子域名名称一样的文件夹，建议选择或者创建一个新的文件夹。</p><h4>Godaddy主域名子目录问题</h4><p>显然我们无法控制主域名绑定到一个子目录上去。根据Godaddy实现301跳转的思想，我决定使用.htaccess文件实现主域名绑定到子目录上去。</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/godaddy-domain-to-subfolder/">Godaddy 主域名绑定到子目录及管理子域名</a> (336 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/godaddy-domain-to-subfolder/">Permalink</a> | <a href="http://blog.lixiphp.com/godaddy-domain-to-subfolder/#comments">2 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/godaddy-domain-to-subfolder/&amp;title=Godaddy 主域名绑定到子目录及管理子域名">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/cpanel/" rel="tag">Cpanel</a>, <a href="http://blog.lixiphp.com/tags/domain/" rel="tag">domain</a>, <a href="http://blog.lixiphp.com/tags/drupal/" rel="tag">drupal</a>, <a href="http://blog.lixiphp.com/tags/godaddy/" rel="tag">Godaddy</a>, <a href="http://blog.lixiphp.com/tags/htaccess/" rel="tag">htaccess</a>, <a href="http://blog.lixiphp.com/tags/subdomain/" rel="tag">Subdomain</a>, <a href="http://blog.lixiphp.com/tags/subflolder/" rel="tag">subflolder</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/godaddy-domain-to-subfolder/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>PHP程序员-CSS笔记一</title><link>http://blog.lixiphp.com/php-css-html-rounding-corners/</link> <comments>http://blog.lixiphp.com/php-css-html-rounding-corners/#comments</comments> <pubDate>Thu, 21 Oct 2010 05:37:44 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[Float]]></category> <category><![CDATA[html]]></category> <category><![CDATA[IE]]></category> <category><![CDATA[notebook]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Rounding Corners]]></category> <category><![CDATA[safari]]></category><guid isPermaLink="false">http://blog.lixiphp.com/php-css-html-rounding-corners/</guid> <description><![CDATA[PHP程序员-CSS笔记一，转换HTML到CSS，CSS浮动层，CSS圆角。CSS圆角又分为三种技术方法：固定宽高度法、滑动门技术、山顶法、JavaScript技术、JQuery技术。CSS实现字体变粗和倾斜  CSS实现字体下划线(底线) CSS移除表格单元格之间的间隙（cellpadding, cellspacing） IE CSS圆角技术 Firefox（Safari）CSS圆角技术]]></description> <content:encoded><![CDATA[<p>本文主要记录开发过程中遇到的CSS问题与大家一起分享！ 首先说明本人的CSS不是很好，以下是在开发过程中总结出来的。好的，我们将介绍以下几个部分：</p><ul><li>转换HTML到CSS</li><li>CSS浮动层</li><li>CSS圆角</li></ul><h4>转换HTML到CSS</h4><p>你习惯使用HTML作为视觉的格式,并设法想进入CSS吗？但不完全知道如何影响你已经做了很多年的HTML的吗？嗯…</p><ul><li><strong>CSS实现字体变粗和倾斜</strong></li></ul><p>HTML从被创造以来就一直在使用B和I来实现字体变粗和倾斜,事实上它还是仍然存在，他们还没有被废弃直到现在的XHTML 1.1。</p><blockquote><p>代替HTML &lt;b&gt; 标签， 使用： <code>font-weight: bold;<br /> </code>代替HTML &lt;i&gt; 标签， 使用： <code>font-style: italic; </code></p></blockquote><p>然而,值得注意的是,如果你使用粗体或斜体高亮字体的话，你还是应该使用正确的HTML元素,即em和strong。这样屏幕阅读器可以改变他们的读音，在读单词的时候，并有文件更有意义。</p><ul><li><strong>CSS实现字体下划线(底线)</strong></li></ul><p>首先，在网页中带有下划线的字体不是带有链接是一件非常糟糕的事情，即使你认为对一个字体下划线看起来不像网页中其它的链接，也不要做它。一个也没使用不同的链接风格，几乎每个人都有这个想法在刚刚进入一个页面 “底线=链接”。</p><p>所以我不完全知道为什么我这样说，但是CSS是这样实现的：</p><blockquote><p><span style="color: #0000ff;">text-decoration</span>: underline</p></blockquote><p>我想这HTML 的&lt;u&gt;标签 更好&#8230;</p><ul><li><strong>CSS移除表格单元格之间的间隙（cellpadding, cellspacing）</strong></li></ul><p>唯一的一个处理单元格间隙的属性是：border-collapse，支持IE5 +。所以简单地设置为collapse，就像这样：</p><blockquote><p><span style="color: #0000ff;">border-collapse</span>: collapse;</p></blockquote><p>如果你想从网页上删除所有表的所有单元格边距，这样做：</p><div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-style: none; text-align: left; padding: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; width: 100%; font-family: 'Courier New',courier,monospace; direction: ltr; color: black; font-size: 8pt; overflow: visible;"><span style="color: #0000ff;">table</span> {
  <span style="color: #0000ff;">border-collapse</span>: <span style="color: #006080;">collapse;</span>
}</pre></div><h4>CSS浮动层</h4><p>要使一个层浮动，使用CSS的实现方法就是：</p><p>将父级的层 position属性 定义为这样：</p><blockquote><pre><span style="color: #0000ff;">position</span>: <span style="color: #006080;">relative;</span></pre></blockquote><div>需要浮动的层定义为这样：</div><blockquote><pre><span style="color: #0000ff;">position</span>: <span style="color: #006080;">absolute;</span>
<span style="color: #0000ff;">top</span>: <span style="color: #006080;">8px;</span>
<span style="color: #0000ff;">left</span>: <span style="color: #006080;">12px;</span></pre></blockquote><p>这里的top和left属性值可以由你自定义。</p><h4>CSS圆角</h4><ul><li><strong>Firefox（Safari）CSS圆角技术</strong></li></ul><p>在Firefox和Safari浏览器的专有属性圆角效果。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image11.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="Rounded corner property equivalents image" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb10.png" border="0" alt="Rounded corner property equivalents image" width="644" height="274" /></a></p><p>如果在Firefox和Safari中，可以使用这样的代码实现左上角40像素的圆角：</p><div><pre id="codeSnippet" style="border-style: none; text-align: left; padding: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; width: 100%; font-family: 'Courier New',courier,monospace; direction: ltr; color: black; font-size: 8pt; overflow: visible;"><span style="color: #008000;">/* top-left corner */</span>
 <span style="color: #0000ff;">border</span>-<span style="color: #0000ff;">top</span>-<span style="color: #0000ff;">left</span>-radius: <span style="color: #006080;">40px;</span>
 -moz-<span style="color: #0000ff;">border</span>-radius-topleft: <span style="color: #006080;">40px;</span>
 -webkit-<span style="color: #0000ff;">border</span>-<span style="color: #0000ff;">top</span>-<span style="color: #0000ff;">left</span>-radius: <span style="color: #006080;">40px;</span></pre></div><p>想实现更多的圆角就参考上图中的属性。</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/php-css-html-rounding-corners/">PHP程序员-CSS笔记一</a> (151 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/php-css-html-rounding-corners/">Permalink</a> | <a href="http://blog.lixiphp.com/php-css-html-rounding-corners/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/php-css-html-rounding-corners/&amp;title=PHP程序员-CSS笔记一">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/css-desgin-artcile/" rel="tag">CSS</a>, <a href="http://blog.lixiphp.com/tags/firefox/" rel="tag">Firefox</a>, <a href="http://blog.lixiphp.com/tags/float/" rel="tag">Float</a>, <a href="http://blog.lixiphp.com/tags/html/" rel="tag">html</a>, <a href="http://blog.lixiphp.com/tags/ie/" rel="tag">IE</a>, <a href="http://blog.lixiphp.com/tags/notebook/" rel="tag">notebook</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/rounding-corners/" rel="tag">Rounding Corners</a>, <a href="http://blog.lixiphp.com/tags/safari/" rel="tag">safari</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/php-css-html-rounding-corners/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Firefox Web Developer 工具栏使用教程</title><link>http://blog.lixiphp.com/firefox-web-developer-toolbar-tutorial/</link> <comments>http://blog.lixiphp.com/firefox-web-developer-toolbar-tutorial/#comments</comments> <pubDate>Mon, 18 Oct 2010 16:18:24 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[Firefox Extensions]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[Web Design Tools]]></category> <category><![CDATA[Web Developer Toolbar]]></category><guid isPermaLink="false">http://blog.lixiphp.com/firefox-web-developer-toolbar-tutorial/</guid> <description><![CDATA[The Web Developer extension 增加了一个菜单和工具栏到各种Web浏览器。the Firefox Web Developer Toolbar 是最有用的网页设计工具之一。这篇简短的介绍将告诉你一些可以使用方法，当你制作网站时。要使用工具栏你必须要使用免费的Mozilla Firefox浏览器。在您的Firefox浏览器，您可以下载Firefox扩展名为Web Developer Toolbar 的工具。这篇文章主要一步一步教你如何使用 Firefox Web Developer Toolbar，当您安装Web Developer Toolbar，你必须关闭所有的Firefox浏览器窗口并重新启动Firefox浏览器。然后，您会看到Web开发工具栏在Firefox下导航按钮。]]></description> <content:encoded><![CDATA[<p>这篇文章主要一步一步教你如何使用 Firefox Web Developer Toolbar，高手请飘过，适合新手，这是一篇入门级教程，不足之处请多包涵！</p><p>The Web Developer extension 增加了一个菜单和工具栏到各种Web浏览器。the Firefox Web Developer Toolbar 是最有用的网页设计工具之一。这篇简短的介绍将告诉你一些可以使用方法，当你制作网站时。要使用工具栏你必须要使用免费的Mozilla Firefox浏览器。在您的Firefox浏览器，您可以下载Firefox扩展名为Web Developer Toolbar 的工具。</p><h4>Web Developer Toolbar 概述</h4><p>当您安装Web Developer Toolbar，你必须关闭所有的Firefox浏览器窗口并重新启动Firefox浏览器。然后，您会看到Web开发工具栏在Firefox下导航按钮。工具栏的一部分，上面写着“Disable”，“Cookies”，“CSS”，“Forms”，“Images”等等。这篇博文描述的是使用Web Developer Toolbar的1.1.8版本，即使你使用的是不同的版本，但它应该是相似的。在截图我用的Firefox默认主题，Firefox版本是Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10。如果你的版本不同，不用担心，其功能是相同的。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image8.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="Web开发工具栏在Firefox下导航按钮" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb7.png" border="0" alt="Web开发工具栏在Firefox下导航按钮" width="644" height="93" /></a></p><h4>使用 Web Developer Toolbar</h4><p>在您安装Web开发工具栏完成后，您会看到对面的浏览器上方的菜单项从左至右：</p><p><strong>Disable（禁用）:</strong></p><p>这些菜单项可以让您禁用功能在网页上，如缓存，Java，JavaScript，HTML重定向，页面颜色，反向链接，代理甚至更多。在这两个菜单项是特别有用的是禁用从哪里来，它给你增加关于网络隐私权，并禁用缓存，它是有用的当您正在更新网页时，并需要确保您正在查看的是最新的，当你在浏览器中观看它时。</p><p><strong>Cookies:</strong>Cookies菜单让你选择是非常有用的，当你在编程网站使用Cookie时。例如禁用所有cookie，禁止外部网站的Cookie，会话cookie清除，删除域的Cookie，删除路径的Cookie，查看cookie信息，并添加cookie。</p><p><strong>CSS（样式表）:</strong></p><p>此菜单包含了我最喜欢的Web开发工具栏功能：编辑CSS。当你激活这个功能，您可以编辑一个网页中的CSS实时栏，看看当你键入更新，这些网页上就会看到的您的变更。例如，也许你想看什么不同的网站颜色和字体就看你的网站一样。在下面的图片，我迅速检查了这个页面看起来就像一个绿色头背景只需在补充工具栏的CSS编辑。只要关闭边栏，更改将被丢弃。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image9.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="image" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb8.png" border="0" alt="image" width="644" height="179" /></a></p><p>CSS菜单中的另一项有用的功能是禁用方式，允许你删除所有从网页上的CSS。</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/firefox-web-developer-toolbar-tutorial/">Firefox Web Developer 工具栏使用教程</a> (67 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/firefox-web-developer-toolbar-tutorial/">Permalink</a> | <a href="http://blog.lixiphp.com/firefox-web-developer-toolbar-tutorial/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/firefox-web-developer-toolbar-tutorial/&amp;title=Firefox Web Developer 工具栏使用教程">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/css-desgin-artcile/" rel="tag">CSS</a>, <a href="http://blog.lixiphp.com/tags/firefox-extensions/" rel="tag">Firefox Extensions</a>, <a href="http://blog.lixiphp.com/tags/javascript/" rel="tag">JavaScript</a>, <a href="http://blog.lixiphp.com/tags/tutorial/" rel="tag">tutorial</a>, <a href="http://blog.lixiphp.com/tags/web-design-tools/" rel="tag">Web Design Tools</a>, <a href="http://blog.lixiphp.com/tags/web-developer-toolbar/" rel="tag">Web Developer Toolbar</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/firefox-web-developer-toolbar-tutorial/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>window7任务栏的本地连接图标显示叉，但可以上网。</title><link>http://blog.lixiphp.com/win7-troubleshoot-network-problems/</link> <comments>http://blog.lixiphp.com/win7-troubleshoot-network-problems/#comments</comments> <pubDate>Fri, 15 Oct 2010 00:46:57 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[network]]></category> <category><![CDATA[problems]]></category> <category><![CDATA[troubleshoot]]></category> <category><![CDATA[window7]]></category><guid isPermaLink="false">http://blog.lixiphp.com/win7-troubleshoot-network-problems/</guid> <description><![CDATA[Win7任务栏的本地连接图标显示叉，但可以上网。今天刚到公司就发现电脑一打开，我的win7系统任务栏的本地连接图标红叉，开始以为是网线没有插好，发现后面网线连接处灯是亮的，我再打开网络连接中心，显示连接正常，能上网，本人有的是台式机，固定IP上网。关闭窗口后任务栏的本地连接图标 正常显示。至于使用无线网卡的人，我就不得而知了。win7-local-network-display-wrong，win7-troubleshoot-network-problems。]]></description> <content:encoded><![CDATA[<p>今天刚到公司就发现电脑一打开，我的win7系统任务栏的本地连接图标红叉，开始以为是网线没有插好，发现后面网线连接处灯是亮的，我再打开网络连接中心，显示连接正常，能上网，本人有的是台式机，固定IP上网。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image4.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="win7 可以上网，但右下角网络图标上有叉" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb4.png" border="0" alt="win7 可以上网，但右下角网络图标上有叉" width="250" height="43" /></a></p><h4>解决方法</h4><p>右键点击 本地连接图标，选择最上面一个寻找故障问题（故障排解）。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image5.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="右键网络图标选择寻找故障问题" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb5.png" border="0" alt="右键网络图标选择寻找故障问题" width="244" height="64" /></a></p><p>随着就会出现下面一个页面，可以不用管，直接取消就行。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image6.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="win7能上网，但图标红叉。 已解决问题" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb6.png" border="0" alt="win7能上网，但图标红叉。 已解决问题" width="569" height="412" /></a></p><p>关闭窗口后任务栏的本地连接图标 正常显示。至于使用无线网卡的人，我就不得而知了。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image7.png" class="highslide-image" onclick="return hs.expand(this);"></a><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb7-150x43.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-full wp-image-944" title="image_thumb7" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb7-150x43.png" alt="" width="150" height="43" /></a></p><p>网络连接图标恢复正常。</p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/mypc-install-windows7-system/" title="我的个人PC 已经安装Windows7 英文系统">我的个人PC 已经安装Windows7 英文系统</a></li><li><a href="http://blog.lixiphp.com/solve-ie-qq-kankan-network-problem/" title="解决IE及QQ音乐、迅雷看看等软件不能上网的问题">解决IE及QQ音乐、迅雷看看等软件不能上网的问题</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/win7-troubleshoot-network-problems/">Permalink</a> | <a href="http://blog.lixiphp.com/win7-troubleshoot-network-problems/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/win7-troubleshoot-network-problems/&amp;title=window7任务栏的本地连接图标显示叉，但可以上网。">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/network/" rel="tag">network</a>, <a href="http://blog.lixiphp.com/tags/problems/" rel="tag">problems</a>, <a href="http://blog.lixiphp.com/tags/troubleshoot/" rel="tag">troubleshoot</a>, <a href="http://blog.lixiphp.com/tags/window7/" rel="tag">window7</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/win7-troubleshoot-network-problems/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>PHP开发人员必须知道的第三方在线支付方式</title><link>http://blog.lixiphp.com/phper-should-knowed-payment-of-china/</link> <comments>http://blog.lixiphp.com/phper-should-knowed-payment-of-china/#comments</comments> <pubDate>Thu, 14 Oct 2010 06:50:20 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[alipay]]></category> <category><![CDATA[china]]></category> <category><![CDATA[online]]></category> <category><![CDATA[payment]]></category> <category><![CDATA[paypal]]></category> <category><![CDATA[PHP]]></category><guid isPermaLink="false">http://blog.lixiphp.com/phper-should-knowed-payment-of-china/</guid> <description><![CDATA[PHP开发人员必须知道的第三方在线支付方式，对于PHP开发一个项目，如果是一个在线购物的项目，那么开发人员就得具备一些第三方支付方式储备知识。1． 支付宝2． Paypal3． 银行汇款/转帐4． 邮局汇款5． 财付通6． 快钱人民币网关7． YeePay易宝8． 首信易支付9． 网银在线10． 云网支付11． 易捷IPS12． 环迅IPS]]></description> <content:encoded><![CDATA[<p>适用范围：<strong>中国</strong></p><p>对于PHP开发一个项目，如果是一个在线购物的项目，那么开发人员就得具备一些第三方支付方式储备知识。</p><h4>1． 支付宝</h4><p>支付宝网站(www.alipay.com) 是国内先进的网上支付平台。</p><p><a href="../wp-content/uploads/2010/10/%E6%94%AF%E4%BB%98%E5%AE%9D%E5%95%86%E5%AE%B6%E6%9C%8D%E5%8A%A1%E5%88%97%E8%A1%A8.png" class="highslide-image" onclick="return hs.expand(this);"><img title="支付宝商家服务列表" src="../wp-content/uploads/2010/10/%E6%94%AF%E4%BB%98%E5%AE%9D%E5%95%86%E5%AE%B6%E6%9C%8D%E5%8A%A1%E5%88%97%E8%A1%A8.png" alt="" width="558" height="145" /></a></p><p>详细请查看：<a href="https://shanghu.alipay.com/mservice/product/product.htm">支付宝商家服务</a></p><ul><li><strong>时到账收款服务</strong></li></ul><p>应用场景：</p><ul><li>B2C或B2B行业，拥有大量愿意直接付款的老顾客或信任会员的商户。</li><li>点卡、机票、彩票等能实现自动发货，用户付了款能立即获得商品或服务的行业。</li></ul><p>优势：</p><ul><li>无时间、区域限制，跨行、跨省、跨地区，交易资金3秒钟瞬间到账，帮商户有效提升资金回收速度和利用率。</li><li>收付款方便、快捷，成本低廉。</li><li>即时到账快速简单，实时回收货款。</li><li>双接口形式灵活，适用面广。</li></ul><p>费用：</p><p>请自行咨询支付宝，电话：0571-26885188</p><p>即时到账接口示意图：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/即时到账接口示意图.jpg" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-full wp-image-924" title="即时到账接口示意图" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/即时到账接口示意图.jpg" alt="" width="516" height="164" /></a></p><p><a href="https://b.alipay.com/product/bespeak.htm?productCode=4">点击申请</a></p><h4>2． Paypal</h4><p>PayPal 是在线付款解决方案的全球领导者，在全世界有超过七千一百六十万个帐户用户。PayPal 可在 56 个市场以 7 种货币（加元、欧元、英镑、美元、日元、澳元、港元）使用。（网址：<a href="http://www.paypal.com">http://www.paypal.com</a>）</p><p>标准支付演示界面：</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/clip_image008.jpg" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border: 0px;" title="clip_image008" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/clip_image008_thumb.jpg" border="0" alt="clip_image008" width="558" height="188" /></a></p><p>paypal快速结帐：</p><p>需要申请用户名和签名。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/clip_image010.jpg" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border: 0px;" title="clip_image010" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/clip_image010_thumb.jpg" border="0" alt="clip_image010" width="380" height="91" /></a></p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/phper-should-knowed-payment-of-china/">PHP开发人员必须知道的第三方在线支付方式</a> (83 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/phper-should-knowed-payment-of-china/">Permalink</a> | <a href="http://blog.lixiphp.com/phper-should-knowed-payment-of-china/#comments">2 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/phper-should-knowed-payment-of-china/&amp;title=PHP开发人员必须知道的第三方在线支付方式">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/alipay/" rel="tag">alipay</a>, <a href="http://blog.lixiphp.com/tags/china/" rel="tag">china</a>, <a href="http://blog.lixiphp.com/tags/online/" rel="tag">online</a>, <a href="http://blog.lixiphp.com/tags/payment/" rel="tag">payment</a>, <a href="http://blog.lixiphp.com/tags/paypal/" rel="tag">paypal</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/phper-should-knowed-payment-of-china/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>php算法实现二维数组转化为矩阵</title><link>http://blog.lixiphp.com/php-algorithm-array-to-matrix/</link> <comments>http://blog.lixiphp.com/php-algorithm-array-to-matrix/#comments</comments> <pubDate>Mon, 11 Oct 2010 13:15:06 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[columns]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[rows]]></category> <category><![CDATA[算法]]></category><guid isPermaLink="false">http://blog.lixiphp.com/php-algorithm-array-to-matrix/</guid> <description><![CDATA[php-algorithm-array-to-matrix，php实现二维数组转化为矩阵的算法是将一个二维数组转化为一个矩阵，用php算法实现，这是在drupal的grid中碰到的，如果小看php不能做算法的话，代码只能是付出执行效率作为牺牲代价。]]></description> <content:encoded><![CDATA[<p>今天在工作中遇到一个问题，是将一个二维数组转化为一个矩阵，用php算法实现，这是在drupal的grid中碰到的，最终在同事Lake的帮助下完成。</p><h4>问题描述</h4><p>$rows是个二维数组，包含四行三列元素。</p><p>$rows = ([0][0], [0][1], [0][2], [1][0], [1][1], [1][2], [2][0], [2][1], [2][2], [3][0], [3][1], [3][2], )</p><p>需要转化为下图形状的矩阵，</p><p>x|x|x<br /> x|x|x<br /> x|x|x<br /> x|x|x</p><p>我的需求是建立一个这样的数组，</p><p>1 | 5 | 9<br /> 2 | 6 | 10<br /> 3 | 7 | 11<br /> 4 | 8 | 12</p><h4>算法设计</h4><blockquote><p>&lt;?php foreach ($rows as $row_number =&gt; $columns): ?&gt;<br /> &lt;?php $j = -3 ; ?&gt;<br /> &lt;?php foreach ($columns as $column_number =&gt; $item): ?&gt;<br /> &lt;?php $j += 4 ; ?&gt;<br /> &lt;?php print ($row_number + $j); ?&gt;<br /> &lt;?php endforeach; ?&gt;<br /> &lt;?php endforeach; ?&gt;</p></blockquote><p>感兴趣的朋友可以试一试其他矩阵，这是一个简单的算法，如果小看php不能做算法的话，代码只能是付出执行效率作为牺牲代价。</p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/drupal-themeing-template-tips/" title="Drupal theming模板技巧总结第一期[原创]">Drupal theming模板技巧总结第一期[原创]</a></li><li><a href="http://blog.lixiphp.com/work-summary-mysql-drupal-php/" title="工作技巧总结mysql与drupal">工作技巧总结mysql与drupal</a></li><li><a href="http://blog.lixiphp.com/phpcms-drupal-make-video-website/" title="PHP开源CMS-Drupal做视频站点（第1版）[原创]">PHP开源CMS-Drupal做视频站点（第1版）[原创]</a></li><li><a href="http://blog.lixiphp.com/drupal-imagecache-internal-server-error-solution/" title="drupal imagecache Internal Server Error solution">drupal imagecache Internal Server Error solution</a></li><li><a href="http://blog.lixiphp.com/solve-drupal-open_basedir-realpath-restriction/" title="Solve drupal open_basedir restriction realpath problem">Solve drupal open_basedir restriction realpath problem</a></li><li><a href="http://blog.lixiphp.com/php-strip-specific-tags/" title="PHP移除指定HTML标签的方法">PHP移除指定HTML标签的方法</a></li><li><a href="http://blog.lixiphp.com/qq-weibo-open-api/" title="一个艰难的决定-腾讯微博推出开放平台API">一个艰难的决定-腾讯微博推出开放平台API</a></li><li><a href="http://blog.lixiphp.com/ecmall-admin-add-template/" title="ECMall如何在后台添加模板编辑页">ECMall如何在后台添加模板编辑页</a></li><li><a href="http://blog.lixiphp.com/drupal-develop-send-attachment-email/" title="Drupal二次开发之如何发送邮件附件">Drupal二次开发之如何发送邮件附件</a></li><li><a href="http://blog.lixiphp.com/ecshop-develop-movie-system/" title="ECShop二次开发之电影播客系统">ECShop二次开发之电影播客系统</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/php-algorithm-array-to-matrix/">Permalink</a> | <a href="http://blog.lixiphp.com/php-algorithm-array-to-matrix/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/php-algorithm-array-to-matrix/&amp;title=php算法实现二维数组转化为矩阵">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/columns/" rel="tag">columns</a>, <a href="http://blog.lixiphp.com/tags/drupal/" rel="tag">drupal</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/rows/" rel="tag">rows</a>, <a href="http://blog.lixiphp.com/tags/%e7%ae%97%e6%b3%95/" rel="tag">算法</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/php-algorithm-array-to-matrix/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>排名前10的Drupal后台管理主题</title><link>http://blog.lixiphp.com/top-10-drupal-administration-themes/</link> <comments>http://blog.lixiphp.com/top-10-drupal-administration-themes/#comments</comments> <pubDate>Sat, 09 Oct 2010 07:47:12 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[ActiveSite]]></category> <category><![CDATA[admin]]></category> <category><![CDATA[Administration]]></category> <category><![CDATA[Berylizer]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[Eldir]]></category> <category><![CDATA[Fruity]]></category> <category><![CDATA[Polpo]]></category> <category><![CDATA[RootCandy]]></category> <category><![CDATA[Strix]]></category> <category><![CDATA[themes]]></category><guid isPermaLink="false">http://blog.lixiphp.com/top-10-drupal-administration-themes/</guid> <description><![CDATA[排名前10的Drupal后台管理主题，第一位：RootCandy 第二位：Admin 第三位：Seven 第四位：Nerdalistic  第五位：Polpo Admin Theme 第六位：Berylizer   第七位：Strix 第八位：Fruity 第九位：ActiveSite 第十位：Eldir]]></description> <content:encoded><![CDATA[<h5>Drupal Administration themes</h5><h4>第一位：<a href="http://drupal.org/project/rootcandy"><strong>RootCandy</strong></a></h4><p><img title="rootcandy" src="http://mogdesign.eu/blog/wp-content/uploads/2009/10/rootcandy.jpg" alt="rootcandy" width="510" height="150" /><br /> RootCandy是一个三栏布局宽频或固定布局的主题，重点集中在管理部分。</p><ul><li>支持节点/添加/编辑网页</li><li>重新着色，图标，滑动地区</li><li>根据用户角色显示顶部导航</li><li>简单的控制面板</li><li>支持Rootcandy Dark子主题</li></ul><h4>第二位：<a href="http://drupal.org/project/admin"><strong>Admin</strong></a></h4><p><img title="admin" src="http://mogdesign.eu/blog/wp-content/uploads/2009/10/admin.jpg" alt="admin" width="510" height="150" /></p><p>管理模块对标准的Drupal 6管理界面用户界面改进。它实现的一些想法是在Drupal 7的可用性改进探讨。</p><h4>第三位：<a href="http://drupal.org/project/seven"><strong>Seven</strong></a></h4><p><img title="seven" src="http://mogdesign.eu/blog/wp-content/uploads/2009/10/seven.jpg" alt="seven" width="510" height="150" /></p><p>Seven 是一个默认的Drupal 7的管理主题（由Mark博尔顿和莱萨Reichelt设计）的后台。它是的简直，这个主题作出D6兼容为那些想要开始使用它的人。如需有关主题本身的信息，请访问马克和莱萨的Drupal7的网站 在<a href="http://d7ux.org">http://d7ux.org</a>。</p><h4>第四位：<a href="http://drupal.org/project/nerdalistic"><strong>Nerdalistic</strong></a></h4><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/image.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="image" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/image_thumb.png" border="0" alt="image" width="293" height="221" /></a></p><p>将谷歌和WordPress的想法和颜色组合，目的在于一个易于使用和配置的布局。</p><h4><strong>第五位：<a href="http://drupal.org/project/polpo">Polpo Admin Theme</a></strong></h4><p><img title="polpo" src="http://mogdesign.eu/blog/wp-content/uploads/2009/10/polpo.jpg" alt="polpo" width="510" height="150" /><br /> Polpo是为管理任务具体明确，简单明了而设计的，Polpo使用一个内容编辑流动的两列布局兼容大屏幕分辨率。这是通过使用的字体大小，清晰的间距和不同的颜色来辅助一般任务的使用。</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/top-10-drupal-administration-themes/">排名前10的Drupal后台管理主题</a> (22 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/top-10-drupal-administration-themes/">Permalink</a> | <a href="http://blog.lixiphp.com/top-10-drupal-administration-themes/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/top-10-drupal-administration-themes/&amp;title=排名前10的Drupal后台管理主题">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/activesite/" rel="tag">ActiveSite</a>, <a href="http://blog.lixiphp.com/tags/admin/" rel="tag">admin</a>, <a href="http://blog.lixiphp.com/tags/administration/" rel="tag">Administration</a>, <a href="http://blog.lixiphp.com/tags/berylizer/" rel="tag">Berylizer</a>, <a href="http://blog.lixiphp.com/tags/drupal/" rel="tag">drupal</a>, <a href="http://blog.lixiphp.com/tags/eldir/" rel="tag">Eldir</a>, <a href="http://blog.lixiphp.com/tags/fruity/" rel="tag">Fruity</a>, <a href="http://blog.lixiphp.com/tags/polpo/" rel="tag">Polpo</a>, <a href="http://blog.lixiphp.com/tags/rootcandy/" rel="tag">RootCandy</a>, <a href="http://blog.lixiphp.com/tags/strix/" rel="tag">Strix</a>, <a href="http://blog.lixiphp.com/tags/themes/" rel="tag">themes</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/top-10-drupal-administration-themes/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>将首页使用drupal开发，内容仍需完善</title><link>http://blog.lixiphp.com/lixiphp-homepage-powered-by-drupal/</link> <comments>http://blog.lixiphp.com/lixiphp-homepage-powered-by-drupal/#comments</comments> <pubDate>Thu, 07 Oct 2010 12:08:14 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Wo De Life]]></category> <category><![CDATA[cck]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[homepage]]></category> <category><![CDATA[lixiphp]]></category> <category><![CDATA[views]]></category><guid isPermaLink="false">http://blog.lixiphp.com/lixiphp-homepage-powered-by-drupal/</guid> <description><![CDATA[使用的drupal module主要基于：cck和views。感谢Napoler给予的一些帮助，才使得本网站可以展示，然而在内容方面还需要进一步完善。记得曾经很想将首页用drupal来做，后来终于实现。 这里和大家一起分享一下，演示地址：http://www.lixiphp.com/，powered by drupal。]]></description> <content:encoded><![CDATA[<p>记得曾经很想将首页用drupal来做，后来终于实现。</p><p>这里和大家一起分享一下，演示地址：<a title="http://www.lixiphp.com/" href="http://www.lixiphp.com/">http://www.lixiphp.com/</a>，powered by drupal。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/10/LixiPHPExpertPHPExpertatDrupalwordpresszendframeworkcakephpandecommerce.png" class="highslide-image" onclick="return hs.expand(this);"><img style="display: inline; border-width: 0px;" title="Lixi-PHP Expert  PHP Expert at Drupal,wordpress,zendframework,cakephp and ecommerce" src="http://blog.lixiphp.com/wp-content/uploads/2010/10/LixiPHPExpertPHPExpertatDrupalwordpresszendframeworkcakephpandecommerce_thumb.png" border="0" alt="Lixi-PHP Expert  PHP Expert at Drupal,wordpress,zendframework,cakephp and ecommerce" width="694" height="524" /></a></p><p>使用的drupal module主要基于：cck和views。感谢Napoler给予的一些帮助，才使得本网站可以展示，然而在内容方面还需要进一步完善。</p><p>后台使用的主题是Garland，前台在SEO方面还没有过多的处理，但是google对drupal的更新速度快，drupal确实太强大咯！</p><p>希望与各位drupal爱好者共同交流！</p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/phpcms-drupal-make-video-website/" title="PHP开源CMS-Drupal做视频站点（第1版）[原创]">PHP开源CMS-Drupal做视频站点（第1版）[原创]</a></li><li><a href="http://blog.lixiphp.com/drupal-develop-send-attachment-email/" title="Drupal二次开发之如何发送邮件附件">Drupal二次开发之如何发送邮件附件</a></li><li><a href="http://blog.lixiphp.com/drupal-themeing-template-tips/" title="Drupal theming模板技巧总结第一期[原创]">Drupal theming模板技巧总结第一期[原创]</a></li><li><a href="http://blog.lixiphp.com/work-summary-mysql-drupal-php/" title="工作技巧总结mysql与drupal">工作技巧总结mysql与drupal</a></li><li><a href="http://blog.lixiphp.com/godaddy-domain-to-subfolder/" title="Godaddy 主域名绑定到子目录及管理子域名">Godaddy 主域名绑定到子目录及管理子域名</a></li><li><a href="http://blog.lixiphp.com/php-algorithm-array-to-matrix/" title="php算法实现二维数组转化为矩阵">php算法实现二维数组转化为矩阵</a></li><li><a href="http://blog.lixiphp.com/top-10-drupal-administration-themes/" title="排名前10的Drupal后台管理主题">排名前10的Drupal后台管理主题</a></li><li><a href="http://blog.lixiphp.com/drupal-pdf-ebook/" title="Drupal PDF电子书全集">Drupal PDF电子书全集</a></li><li><a href="http://blog.lixiphp.com/drupal-imagecache-internal-server-error-solution/" title="drupal imagecache Internal Server Error solution">drupal imagecache Internal Server Error solution</a></li><li><a href="http://blog.lixiphp.com/solve-drupal-open_basedir-realpath-restriction/" title="Solve drupal open_basedir restriction realpath problem">Solve drupal open_basedir restriction realpath problem</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/lixiphp-homepage-powered-by-drupal/">Permalink</a> | <a href="http://blog.lixiphp.com/lixiphp-homepage-powered-by-drupal/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/lixiphp-homepage-powered-by-drupal/&amp;title=将首页使用drupal开发，内容仍需完善">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/cck/" rel="tag">cck</a>, <a href="http://blog.lixiphp.com/tags/drupal/" rel="tag">drupal</a>, <a href="http://blog.lixiphp.com/tags/homepage/" rel="tag">homepage</a>, <a href="http://blog.lixiphp.com/tags/lixiphp/" rel="tag">lixiphp</a>, <a href="http://blog.lixiphp.com/tags/views/" rel="tag">views</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/lixiphp-homepage-powered-by-drupal/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>thinkphp 模板缓存无法解析 \ 问题</title><link>http://blog.lixiphp.com/thinkphp-view-template-backslash/</link> <comments>http://blog.lixiphp.com/thinkphp-view-template-backslash/#comments</comments> <pubDate>Wed, 29 Sep 2010 05:00:01 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[ThinkPHP]]></category> <category><![CDATA[backslash]]></category> <category><![CDATA[explode]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[symbol]]></category> <category><![CDATA[thinksns]]></category> <category><![CDATA[\r\n]]></category><guid isPermaLink="false">http://blog.lixiphp.com/thinkphp-view-template-backslash/</guid> <description><![CDATA[thinkphp explode(“\r\n”, $field[options]);无需更改thinkphp内置模板。解决thinkphp 模板缓存无法解析 \ 问题。我在textarea中保持回车换行符号分隔的字符串，在显示的时候想把它转好为数组。今天在做thinksns二次开发的时候，发现thinkphp自带的模板技术存在很多解析问题。其自带标签使用嵌套层次过多会导致无法解析。]]></description> <content:encoded><![CDATA[<p>今天在做thinksns二次开发的时候，发现thinkphp自带的模板技术存在很多解析问题。其自带标签使用嵌套层次过多会导致无法解析。</p><p>所以在这里我推荐大家使用原生的php模板开发，就是直接使用&lt;?php ?&gt; 开发，类似于drupal的PHPTemplate.</p><h4>“\” 被过滤问题</h4><p>例如我遇到的一个例子，我在textarea中保持回车换行符号分隔的字符串，在显示的时候想把它转好为数组。</p><p>code1:</p><blockquote><p>&lt;?php<br /> $items = explode(“\r\n”, $field[options]);<br /> foreach($items as $v):<br /> ?&gt;</p></blockquote><p>$field[options] 里的值为：</p><blockquote><p>red<br /> blue<br /> green<br /> purple</p></blockquote><p><strong>注：</strong>存储方式为回车换行分隔到数据库里</p><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/thinkphp-view-template-backslash/">thinkphp 模板缓存无法解析 \ 问题</a> (31 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/thinkphp-view-template-backslash/">Permalink</a> | <a href="http://blog.lixiphp.com/thinkphp-view-template-backslash/#comments">One comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/thinkphp-view-template-backslash/&amp;title=thinkphp 模板缓存无法解析 \ 问题">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/backslash/" rel="tag">backslash</a>, <a href="http://blog.lixiphp.com/tags/explode/" rel="tag">explode</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/symbol/" rel="tag">symbol</a>, <a href="http://blog.lixiphp.com/tags/thinkphp/" rel="tag">ThinkPHP</a>, <a href="http://blog.lixiphp.com/tags/thinksns/" rel="tag">thinksns</a>, <a href="http://blog.lixiphp.com/tags/rn/" rel="tag">\r\n</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/thinkphp-view-template-backslash/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Drupal PDF电子书全集</title><link>http://blog.lixiphp.com/drupal-pdf-ebook/</link> <comments>http://blog.lixiphp.com/drupal-pdf-ebook/#comments</comments> <pubDate>Tue, 28 Sep 2010 16:55:22 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[ebook]]></category> <category><![CDATA[pdf]]></category><guid isPermaLink="false">http://blog.lixiphp.com/?p=878</guid> <description><![CDATA[Building.Online.Communities.With.Drupal,.phpBB,.And.WordPress.pdf Building.powerful.and.robust.websites.with.Drupal.6.pdf Cracking.Drupal.A.Drop.in.the.Bucket.pdf drupal Core_templates_and_suggestions.pdf drupal-6-api.chm  drupal-6-theming-cheat-sheet.pdf Drupal.5.Themes.pdf  Drupal.5.Views.Recipes.pdf Drupal.6.Attachment.Views.Feb.2010.pdf Drupal.6.Content.Administration.Jun.2009.pdf Drupal.6.Panels.Cookbook.Aug.2010.pdf Drupal.6.Panels.Cookbook.Aug.2010.rar Drupal.6.Performance.Tips.Feb.2010.pdf Drupal.6.Search.Engine.Optimization.Sep.2009.pdf Drupal.6.Site.Blueprints.Aug.2009.pdf Drupal.6.Site.Builder.Solutions.pdf Drupal.6.Social.Networking.pdf Drupal.Creating.Blogs,.Forums,.Portals,.And.Community.Websites.pdf Drupal.Ecommerce.with.Ubercart.2.x.Mar.2010.pdf Drupal.for.Education.and.E-Learning.pdf drupal6_api_cheatsheet_0.pdf drupal_6_themes.pdf drupal专业开发指南.pdf Flash.with.Drupal.May.2009.pdf Front.End.Drupal.pdf Learning.Drupal.6.Module.Development.pdf
Leveraging.Drupal.Getting.Your.Site.Done.Right.pdf Packtpub.Choosing.an.Open.Source.CMS.Beginners.Guide.Apr.2009.pdf Pro Drupal Development Second Edition.pdf Pro.Drupal.Development.pdf Sams.Teach.Yourself.Drupal.in.24.Hours.Nov.2009.pdf Selling.Online.with.Drupal.eCommerce.Apr.2008.pdf SymphonyTheme_Document_v0.1.2.pdf Theme_Guide_Drupal_6.pdf TopNotchThemes-basics-guide.pdf Using Drupal.pdf]]></description> <content:encoded><![CDATA[<p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/09/drupal-ebook-pdf.png" class="highslide-image" onclick="return hs.expand(this);"></a>最近正在深入研究drupal，下面的drupal学习资料是在搜集了很多网站后得到。包含了drupal从入门到精通，从主题到模块的开发，英文资料确实很强大，其中有一本为国人翻译的 drupal专业开发指南，在很多国内网站上都可以看到，在这里不妨推荐各位看原版的drupal书籍，确实值得花很多时间去研究。</p><p><a href="http://blog.lixiphp.com/wp-content/uploads/2010/09/drupal-ebook-pdf.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-883" title="drupal ebook pdf" src="http://blog.lixiphp.com/wp-content/uploads/2010/09/drupal-ebook-pdf-620x89.png" alt="" width="620" height="89" /></a></p><h4>Drupal PDF Ebook</h4><p>Building.Online.Communities.With.Drupal,.phpBB,.And.WordPress.pdf<br /> Building.powerful.and.robust.websites.with.Drupal.6.pdf<br /> Cracking.Drupal.A.Drop.in.the.Bucket.pdf<br /> drupal Core_templates_and_suggestions.pdf<br /> drupal-6-api.chm<br /> drupal-6-theming-cheat-sheet.pdf<br /> Drupal.5.Themes.pdf<br /> Drupal.5.Views.Recipes.pdf<br /> Drupal.6.Attachment.Views.Feb.2010.pdf<br /> Drupal.6.Content.Administration.Jun.2009.pdf<br /> Drupal.6.Javascript.And.Jquery.pdf<br /> Drupal.6.Panels.Cookbook.Aug.2010.pdf<br /> Drupal.6.Panels.Cookbook.Aug.2010.rar<br /> Drupal.6.Performance.Tips.Feb.2010.pdf<br /> Drupal.6.Search.Engine.Optimization.Sep.2009.pdf<br /> Drupal.6.Site.Blueprints.Aug.2009.pdf<br /> Drupal.6.Site.Builder.Solutions.pdf<br /> Drupal.6.Social.Networking.pdf<br /> Drupal.Creating.Blogs,.Forums,.Portals,.And.Community.Websites.pdf<br /> Drupal.Ecommerce.with.Ubercart.2.x.Mar.2010.pdf<br /> Drupal.for.Education.and.E-Learning.pdf<br /> drupal6_api_cheatsheet_0.pdf<br /> drupal_6_themes.pdf<br /> drupal专业开发指南.pdf<br /> Flash.with.Drupal.May.2009.pdf<br /> Front.End.Drupal.pdf<br /> Learning.Drupal.6.Module.Development.pdf<br /> Leveraging.Drupal.Getting.Your.Site.Done.Right.pdf<br /> Packtpub.Choosing.an.Open.Source.CMS.Beginners.Guide.Apr.2009.pdf<br /> Pro Drupal Development Second Edition.pdf<br /> Pro.Drupal.Development.pdf<br /> Sams.Teach.Yourself.Drupal.in.24.Hours.Nov.2009.pdf<br /> Selling.Online.with.Drupal.eCommerce.Apr.2008.pdf<br /> SymphonyTheme_Document_v0.1.2.pdf<br /> Theme_Guide_Drupal_6.pdf<br /> TopNotchThemes-basics-guide.pdf<br /> Using Drupal.pdf</p><p>以上是我目前正在研究drupal的学习资料，均为电子资料，希望热爱drupal的朋友一起交流。</p><p>由于大家都在找 Drupal.6.Attachment.Views 这本书，所以共享出来。</p><p><strong>附加：</strong><a href="http://u.115.com/file/f7775e8379# Drupal.6.Attachment.Views.Feb.2010.pdf">Drupal 6 Attachment Views 下载</a> ，提取码：<em>ewl99fit</em>，有效期31天，如果过期留下电子邮件。</p><div id="_mcePaste" class="mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;">﻿</div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/english-php-ebook-website-recommend/" title="外文PHP编程技术书籍网站推荐">外文PHP编程技术书籍网站推荐</a></li><li><a href="http://blog.lixiphp.com/multiple-browser-platform-testing/" title="Multiple browser and platform testing">Multiple browser and platform testing</a></li><li><a href="http://blog.lixiphp.com/drupal-develop-send-attachment-email/" title="Drupal二次开发之如何发送邮件附件">Drupal二次开发之如何发送邮件附件</a></li><li><a href="http://blog.lixiphp.com/drupal-themeing-template-tips/" title="Drupal theming模板技巧总结第一期[原创]">Drupal theming模板技巧总结第一期[原创]</a></li><li><a href="http://blog.lixiphp.com/microsoft-project-mpp-to-pdf/" title="Microsoft Project mpp to pdf 转换工具">Microsoft Project mpp to pdf 转换工具</a></li><li><a href="http://blog.lixiphp.com/work-summary-mysql-drupal-php/" title="工作技巧总结mysql与drupal">工作技巧总结mysql与drupal</a></li><li><a href="http://blog.lixiphp.com/phpcms-drupal-make-video-website/" title="PHP开源CMS-Drupal做视频站点（第1版）[原创]">PHP开源CMS-Drupal做视频站点（第1版）[原创]</a></li><li><a href="http://blog.lixiphp.com/godaddy-domain-to-subfolder/" title="Godaddy 主域名绑定到子目录及管理子域名">Godaddy 主域名绑定到子目录及管理子域名</a></li><li><a href="http://blog.lixiphp.com/php-algorithm-array-to-matrix/" title="php算法实现二维数组转化为矩阵">php算法实现二维数组转化为矩阵</a></li><li><a href="http://blog.lixiphp.com/top-10-drupal-administration-themes/" title="排名前10的Drupal后台管理主题">排名前10的Drupal后台管理主题</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/drupal-pdf-ebook/">Permalink</a> | <a href="http://blog.lixiphp.com/drupal-pdf-ebook/#comments">22 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/drupal-pdf-ebook/&amp;title=Drupal PDF电子书全集">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/drupal/" rel="tag">drupal</a>, <a href="http://blog.lixiphp.com/tags/ebook/" rel="tag">ebook</a>, <a href="http://blog.lixiphp.com/tags/pdf/" rel="tag">pdf</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/drupal-pdf-ebook/feed/</wfw:commentRss> <slash:comments>22</slash:comments> </item> <item><title>drupal imagecache Internal Server Error solution</title><link>http://blog.lixiphp.com/drupal-imagecache-internal-server-error-solution/</link> <comments>http://blog.lixiphp.com/drupal-imagecache-internal-server-error-solution/#comments</comments> <pubDate>Wed, 15 Sep 2010 16:10:34 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[clean urls]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[htaccess]]></category> <category><![CDATA[imagecahe]]></category><guid isPermaLink="false">http://blog.lixiphp.com/drupal-imagecache-internal-server-error-solution/</guid> <description><![CDATA[The imagecache module is able to serve different versions of uploaded images.I must exactly tell you some drupal modules is based on clean urls, like ImageCahe, for example. If your clean urls is disable, you drupal project must will has Internal Server Error. As I know , Clean urls play a fatal role in drupal, otherwise you will meet a huge trouble. So, this means that your .htaccess based dir is based on your sub-domain. Check you drupal adminstration panel.]]></description> <content:encoded><![CDATA[<p>The imagecache module is able to serve different versions of uploaded images. It does this in an ingenious way, making it hard to diagnose once something goes wrong. The following may help you.</p><h4>How does imagecache work?</h4><p>The answer is Enabling Clean URLs in Drupal.</p><h4>how to enable your clean urls in drupal?</h4><p>actually, if my purchase domain is www.lixiphp.com, but my drupal install in /demo directory, so clean urls is availabe http://www.lixiphp.com/demo, meanwhile, I bind a sub domain to the demo/ sub-directory, which is http://demo.lixiphp.com. Unfortunately, it is unavailable clean urls for this-domain. With this problem, I will teach you how to set it available in sub-domain, http://demo.lixiphp.com.</p><p>Firstly, finding the .htaccess file in the installation root path.</p><p>edit the .htaccess file at the 107 rows</p><blockquote><p># uncomment the following line:<br /> RewriteBase /</p></blockquote><p>So, this means that your .htaccess based dir is based on your sub-domain. Check you drupal adminstration panel.</p><p>Then enable your sub-domain Clean Urls, Congratulation!</p><h4>Why you must enable you Clean Urls?</h4><p>I must exactly tell you some drupal modules is based on clean urls, like ImageCahe, for example. If your clean urls is disable, you drupal project must will has Internal Server Error. As I know , Clean urls play a fatal role in drupal, otherwise you will meet a huge trouble.</p><p>If you do not know how to enable the Clean urls, Please reply me and let me know.</p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/drupal-themeing-template-tips/" title="Drupal theming模板技巧总结第一期[原创]">Drupal theming模板技巧总结第一期[原创]</a></li><li><a href="http://blog.lixiphp.com/work-summary-mysql-drupal-php/" title="工作技巧总结mysql与drupal">工作技巧总结mysql与drupal</a></li><li><a href="http://blog.lixiphp.com/phpcms-drupal-make-video-website/" title="PHP开源CMS-Drupal做视频站点（第1版）[原创]">PHP开源CMS-Drupal做视频站点（第1版）[原创]</a></li><li><a href="http://blog.lixiphp.com/godaddy-domain-to-subfolder/" title="Godaddy 主域名绑定到子目录及管理子域名">Godaddy 主域名绑定到子目录及管理子域名</a></li><li><a href="http://blog.lixiphp.com/php-algorithm-array-to-matrix/" title="php算法实现二维数组转化为矩阵">php算法实现二维数组转化为矩阵</a></li><li><a href="http://blog.lixiphp.com/solve-drupal-open_basedir-realpath-restriction/" title="Solve drupal open_basedir restriction realpath problem">Solve drupal open_basedir restriction realpath problem</a></li><li><a href="http://blog.lixiphp.com/php-strip-specific-tags/" title="PHP移除指定HTML标签的方法">PHP移除指定HTML标签的方法</a></li><li><a href="http://blog.lixiphp.com/qq-weibo-open-api/" title="一个艰难的决定-腾讯微博推出开放平台API">一个艰难的决定-腾讯微博推出开放平台API</a></li><li><a href="http://blog.lixiphp.com/ecmall-admin-add-template/" title="ECMall如何在后台添加模板编辑页">ECMall如何在后台添加模板编辑页</a></li><li><a href="http://blog.lixiphp.com/drupal-develop-send-attachment-email/" title="Drupal二次开发之如何发送邮件附件">Drupal二次开发之如何发送邮件附件</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/drupal-imagecache-internal-server-error-solution/">Permalink</a> | <a href="http://blog.lixiphp.com/drupal-imagecache-internal-server-error-solution/#comments">No comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/drupal-imagecache-internal-server-error-solution/&amp;title=drupal imagecache Internal Server Error solution">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/clean-urls/" rel="tag">clean urls</a>, <a href="http://blog.lixiphp.com/tags/drupal/" rel="tag">drupal</a>, <a href="http://blog.lixiphp.com/tags/htaccess/" rel="tag">htaccess</a>, <a href="http://blog.lixiphp.com/tags/imagecahe/" rel="tag">imagecahe</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/drupal-imagecache-internal-server-error-solution/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Farseer &#8211; Nginx for Windows 快速配置包(傻瓜安装包) 配置修正</title><link>http://blog.lixiphp.com/farseer-nginx-windows-bug-modify/</link> <comments>http://blog.lixiphp.com/farseer-nginx-windows-bug-modify/#comments</comments> <pubDate>Tue, 14 Sep 2010 03:43:02 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[extension]]></category> <category><![CDATA[Farseer]]></category> <category><![CDATA[Nginx]]></category> <category><![CDATA[Windows7]]></category><guid isPermaLink="false">http://blog.lixiphp.com/farseer-nginx-windows-bug-modify/</guid> <description><![CDATA[Nginx 的确是 ix 系统下非常优秀的 HTTP 服务器，但开发人员而言搭建 Windows 平台的 Nginx + PHP 环境的确非常的繁琐而且容易出错。官方把路径搞错了，ext不在conf目录下。配置修改Nginx (D:\Farseer\conf\nginx.conf)测试环境 phpinfo.php。 PHP (D:\Farseer\conf\php.ini)由于 nginx 的问题，请不要将 $FARSEER 解压缩到包含有中文的目录中运行。]]></description> <content:encoded><![CDATA[<p>来自Farseer &#8211; Nginx for Windows 快速配置包的官方 在此感激 Farseer：http://code.google.com/p/gracecode/wiki/Farseer<p>Nginx 的确是 <tt>*</tt>ix 系统下非常优秀的 HTTP 服务器，但开发人员而言搭建 Windows 平台的 Nginx + PHP 环境的确非常的繁琐而且容易出错。</p><p>如果您有上述的问题，那么这个包能够帮得上您的忙。使用这名为 Farseer 的软件包，能够让您在一分钟内完成 Nginx + PHP for Windows 平台的安装。</p><h4><a name="一分钟安装">一分钟安装</a></h4><ol><li>解压缩安装包，并放在合适的地方，例如本人解压缩到 E:\Farseer\ （后面称这个目录为 $FARSEER）</li><li>配置 Nginx 的 DOCUMENT_ROOT 路径，打开 $FARSEER\conf\nginx.conf 文件。找到相应的配置行，修改您需要的路径，例如 E:\htdocs<pre>set $htdocs e:/htdocs; # 在这里设定 HTTP 服务器根目录</pre></li><li>好了，这样就可以启动 Nginx 系统了，运行 farseer.exe 即可！</li></ol><h4>farseer.exe 文件</h4><p><img src="http://pic.yupoo.com/feelinglucky/0774677f6f58/fs51z2qd.jpg" /></p><p>farseer.exe 是个 AutoIt3 脚本，用于方便控制 Farseer 服务的启动、停止、以及重新启动。</p><p>运行 farseer.exe 即可启动当前目录下的 Nginx 以及 PHP 服务，退出则停止服务。</p><p>程序运行在系统托盘中，右键鼠标即可弹出对应的菜单选项，方便操作。</p><h4><a name="配置文件">配置文件</a></h4><ol><li>$FARSEER/conf/nginx.conf nginx 配置文件</li><li>$FARSEER/conf/php.ini php 配置文件</li></ol><h4><a name="已知问题">已知问题</a></h4><ul><li>由于 nginx 的问题，请不要将 $FARSEER 解压缩到包含有中文的目录中运行</li></ul><h4>意见反馈</h4><p>如果您有意见或者建议，欢迎您联系我</p><ul><li>Email: 明城&lt;i.feelinglucky#gmail.com&gt;</li><li>Blog: <a href="http://www.gracecode.com/">http://www.gracecode.com/</a></li></ul><p>本程序在 Windows XP SP3 下测试运行通过，欢迎提供其他 Windows 平台的使用情况。</p><h5>Farseer on <tt>*</tt>ix :^)</h5><p><img src="http://pic.yupoo.com/feelinglucky/091937801e1b/medium.jpg" /></p><p>虽然 Farseer 设定为 Windows 平台下的开发工具，但能折腾的开发人员证明在 Wine 的帮助下能够在 Linux 下运行（感谢 @sleetdrop 兄）。</p><h4>更新历史</h4><pre>[+]new feature&#160; [*]improvement&#160; [!]change&#160; [x]bug fix

[x] 2009-05-27&#160;&#160;&#160; 修复 PHP 目录指向为 extension_dir= .\ext 

[!] 2009-05-26&#160;&#160;&#160; 移动 php.ini 到 conf 目录，增加 AutoIt3 脚本，方便控制 Nginx 服务

[*] 2009-05-26&#160;&#160;&#160; DOCUMENT_ROOT 配置现在写在一处即可

[!] 2009-05-26&#160;&#160;&#160; 初始化版本，使用 nginx/0.7.59 &amp; PHP/5.29-2 构建</pre><pre><strong><em><u><font size="5">官方把路径搞错了，ext不在conf目录下。</font></u></em></strong></pre><p>(...)<br/>Read the rest of <a href="http://blog.lixiphp.com/farseer-nginx-windows-bug-modify/">Farseer &#8211; Nginx for Windows 快速配置包(傻瓜安装包) 配置修正</a> (109 words)</p><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/farseer-nginx-windows-bug-modify/">Permalink</a> | <a href="http://blog.lixiphp.com/farseer-nginx-windows-bug-modify/#comments">One comment</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/farseer-nginx-windows-bug-modify/&amp;title=Farseer &#8211; Nginx for Windows 快速配置包(傻瓜安装包) 配置修正">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/extension/" rel="tag">extension</a>, <a href="http://blog.lixiphp.com/tags/farseer/" rel="tag">Farseer</a>, <a href="http://blog.lixiphp.com/tags/nginx/" rel="tag">Nginx</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/windows7/" rel="tag">Windows7</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/farseer-nginx-windows-bug-modify/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>PHP开发人员常用 Cheat Sheet 下载</title><link>http://blog.lixiphp.com/php-cheat-sheet-download/</link> <comments>http://blog.lixiphp.com/php-cheat-sheet-download/#comments</comments> <pubDate>Mon, 13 Sep 2010 07:05:25 +0000</pubDate> <dc:creator>lixiphp</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[cheat]]></category> <category><![CDATA[download]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[sheet]]></category><guid isPermaLink="false">http://blog.lixiphp.com/php-cheat-sheet-download/</guid> <description><![CDATA[Cheat Sheet : All Cheat Sheets in one page，Cheat Sheet中文翻译为：小抄，备忘录。 PHP开发人员常用 Cheat Sheet 下载。The Manual.su's project. All cheat sheets, round-ups, quick reference cards, quick reference guides and quick reference sheets in one page. The only one you need.]]></description> <content:encoded><![CDATA[<p>Cheat Sheet : All Cheat Sheets in one page，Cheat Sheet中文翻译为：小抄，备忘录。</p><p><strong>官方网站：<a title="http://www.cheat-sheets.org/" href="http://www.cheat-sheets.org/">http://www.cheat-sheets.org/</a></strong></p><p>php_cheat_sheet：<a title="http://www.cheat-sheets.org/saved-copy/php_cheat_sheet.pdf" href="http://www.cheat-sheets.org/saved-copy/php_cheat_sheet.pdf">http://www.cheat-sheets.org/saved-copy/php_cheat_sheet.pdf</a></p><p>mysql_cheat_sheet：<a title="http://www.cheat-sheets.org/saved-copy/mysql_cheat_sheet.pdf" href="http://www.cheat-sheets.org/saved-copy/mysql_cheat_sheet.pdf">http://www.cheat-sheets.org/saved-copy/mysql_cheat_sheet.pdf</a></p><p>Apache mod_rewrite_cheat_sheet：<a title="http://www.cheat-sheets.org/saved-copy/mod_rewrite_cheat_sheet.pdf" href="http://www.cheat-sheets.org/saved-copy/mod_rewrite_cheat_sheet.pdf">http://www.cheat-sheets.org/saved-copy/mod_rewrite_cheat_sheet.pdf</a></p><p>Vim：<a title="http://www.cheat-sheets.org/saved-copy/vim-cheatsheet.png" href="http://www.cheat-sheets.org/saved-copy/vim-cheatsheet.png" class="highslide-image" onclick="return hs.expand(this);">http://www.cheat-sheets.org/saved-copy/vim-cheatsheet.png</a></p><p>css_cheat_sheet：<a title="http://www.cheat-sheets.org/saved-copy/css_cheat_sheet.pdf" href="http://www.cheat-sheets.org/saved-copy/css_cheat_sheet.pdf">http://www.cheat-sheets.org/saved-copy/css_cheat_sheet.pdf</a></p><p>Linux Command Reference：<a title="http://www.cheat-sheets.org/saved-copy/fwunixref.pdf" href="http://www.cheat-sheets.org/saved-copy/fwunixref.pdf">http://www.cheat-sheets.org/saved-copy/fwunixref.pdf</a></p><p>jquery12_colorcharge：<a title="http://www.cheat-sheets.org/saved-copy/jquery12_colorcharge_bw.pdf" href="http://www.cheat-sheets.org/saved-copy/jquery12_colorcharge_bw.pdf">http://www.cheat-sheets.org/saved-copy/jquery12_colorcharge_bw.pdf</a></p><p>jQuery.1.3.Visual.Cheat.Sheet：<a title="http://www.cheat-sheets.org/saved-copy/jQuery.1.3.Visual.Cheat.Sheet.by.WOORK.pdf" href="http://www.cheat-sheets.org/saved-copy/jQuery.1.3.Visual.Cheat.Sheet.by.WOORK.pdf">http://www.cheat-sheets.org/saved-copy/jQuery.1.3.Visual.Cheat.Sheet.by.WOORK.pdf</a></p><p>drupal-6-theming-cheat-sheet：<a title="http://www.cheat-sheets.org/saved-copy/drupal-6-theming-cheat-sheet.pdf" href="http://www.cheat-sheets.org/saved-copy/drupal-6-theming-cheat-sheet.pdf">http://www.cheat-sheets.org/saved-copy/drupal-6-theming-cheat-sheet.pdf</a></p><p>Jquery-Cheat-Sheet-1.2：<a title="http://www.cheat-sheets.org/saved-copy/Jquery-Cheat-Sheet-1.2.pdf" href="http://www.cheat-sheets.org/saved-copy/Jquery-Cheat-Sheet-1.2.pdf">http://www.cheat-sheets.org/saved-copy/Jquery-Cheat-Sheet-1.2.pdf</a></p><p>我喜欢下载PDF格式的，如果你想要图片格式的，请到官方网站上去下载。欢迎转载！</p><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.lixiphp.com/php-strip-specific-tags/" title="PHP移除指定HTML标签的方法">PHP移除指定HTML标签的方法</a></li><li><a href="http://blog.lixiphp.com/qq-weibo-open-api/" title="一个艰难的决定-腾讯微博推出开放平台API">一个艰难的决定-腾讯微博推出开放平台API</a></li><li><a href="http://blog.lixiphp.com/ecmall-admin-add-template/" title="ECMall如何在后台添加模板编辑页">ECMall如何在后台添加模板编辑页</a></li><li><a href="http://blog.lixiphp.com/ecshop-develop-movie-system/" title="ECShop二次开发之电影播客系统">ECShop二次开发之电影播客系统</a></li><li><a href="http://blog.lixiphp.com/wordpress-develop-layout-theme/" title="WordPress二次开发之如何布局？如何做主题？">WordPress二次开发之如何布局？如何做主题？</a></li><li><a href="http://blog.lixiphp.com/xcart-translate-step-variable/" title="xcart二次开发之三自定义多语言变量">xcart二次开发之三自定义多语言变量</a></li><li><a href="http://blog.lixiphp.com/how-to-xcart-develop-translate-multi-mall/" title="xcart二次开发之二如何操作实现多语言商城">xcart二次开发之二如何操作实现多语言商城</a></li><li><a href="http://blog.lixiphp.com/xcart-mutilanguage-packs/" title="XCART二次开发之实现多语言站点">XCART二次开发之实现多语言站点</a></li><li><a href="http://blog.lixiphp.com/drupal-themeing-template-tips/" title="Drupal theming模板技巧总结第一期[原创]">Drupal theming模板技巧总结第一期[原创]</a></li><li><a href="http://blog.lixiphp.com/work-summary-mysql-drupal-php/" title="工作技巧总结mysql与drupal">工作技巧总结mysql与drupal</a></li></ul><hr /><p><small>&copy; lixiphp for <a href="http://blog.lixiphp.com">LixiPHP - 致力于PHP高级编程!</a>, 2010. | <a href="http://blog.lixiphp.com/php-cheat-sheet-download/">Permalink</a> | <a href="http://blog.lixiphp.com/php-cheat-sheet-download/#comments">2 comments</a> |
Add to <a href="http://del.icio.us/post?url=http://blog.lixiphp.com/php-cheat-sheet-download/&amp;title=PHP开发人员常用 Cheat Sheet 下载">del.icio.us</a> <br/> Post tags: <a href="http://blog.lixiphp.com/tags/cheat/" rel="tag">cheat</a>, <a href="http://blog.lixiphp.com/tags/download/" rel="tag">download</a>, <a href="http://blog.lixiphp.com/tags/php-article/" rel="tag">PHP</a>, <a href="http://blog.lixiphp.com/tags/sheet/" rel="tag">sheet</a><br/> </small></p><p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from <a href='http://planetozh.com/blog/'>Ozh</a></small></p> ]]></content:encoded> <wfw:commentRss>http://blog.lixiphp.com/php-cheat-sheet-download/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
