Archive for the ‘网站建设’ Category.

WordPress真的很省心

使用WP做自己的Blog有一段时间了,可以说是越用越爱。无论界面还是操作都突出了“简洁”的特点,这一定是精心设计和千锤百炼的结果。如果你正在犹豫用什么软件构建你的Blog,用WP肯定是没错的。

Print view for any web page with firefox web developer plugin

Not all websites have links to “printable version” like wikipedia. Although many websites have stunning  look, it is really ugly when you try to print them. Some parts of the pages will be missing or the format is totally a mess. Instead of waiting the website owner realize this and prepare printer friendly pages for you, you can try to use the “web developer” firefox plugin to solve this problem. Just install the plugin,  then on the web page you would like to print, right click your mouse and find the menus shown in the following picture, choose display CSS only for printer. The web page will become fluid and ready to be printed. Continue reading ‘Print view for any web page with firefox web developer plugin’ »

WordPress中的自定义字段

google一下子可以找到成吨的介绍文章。例如:这里

Continue reading ‘WordPress中的自定义字段’ »

WordPress plugin: Contact form 7

It’s easy to use and powerful. You can build a complex form in minutes. However, it took me some time to understand the “Mail” function on the form building page. In fact it is used to define the format and contents of email that sent to the form owner once somebody submits it. The keywords used in the mail template are the same as defined in the above form design. You can also add additional help texts into the email contents to clearly inform you what the exact information is. For example, I built a form with two check boxes, by default only the text of the checked box(es) will be inserted in the email. It’s hard to know their meaning.

Continue reading ‘WordPress plugin: Contact form 7’ »

ReCAPTCHA技术

不得不说这是一个很好很有用的创意!

CAPTCHAs是一种恼人的技术,据资料统计,全球用户每天要完成1亿次 CAPTCHA 测试。ReCAPTCHA是 Carnegie Mellon 大学启动的一个项目,目的是借助 CATPTCHA 技术将那些残旧图书数字化,据估计,该技术每天可以完成160本书。

该项目目前已经在40000家网站上部署了 ReCAPTCHA 技术,ReCAPTCHA 的基本原理是,对光学字符识别(OCR)软件来说,它们的辨识能力是有限的,尤其是那些印刷不清晰的旧书或残书,而人类可以凭借自己的阅读经验,轻松识别 那些 OCR 无法识别的文字。对这样的文字,人类的识别成功率可以达到99%,而OCR软件只能达到80%。
Continue reading ‘ReCAPTCHA技术’ »

Drupal升级步骤简易说明


在进行升级之前, 您应该首先确认以下内容:

* 您的系统版本应该等于或大于 Drupal 在http://drupal.org/requirements站点所规定的最低要求.
* 您应该为所有相关的数据资料做好备份(#1).
* 自定义的和第三方 modules 已经过兼容性检查(#11).
* 自定义的和第三方 themes 已经过兼容性检查(#11).
* 您至少已经通篇阅读过本文档一次.

Continue reading ‘Drupal升级步骤简易说明’ »

Drupal multisite服务器上添加新站点

Drupal multisite机制太优秀了,同一个服务器上建立多个网站易如反掌。这对一个国际化的公司网站来说很有用,因为多种语言的网站可以运行在一套代码之下,一次升级,所有网站全部更新。对于一般的网站也很有用,例如不同的停靠域名或者子域名都可以有独自的网站内容和数据库,也可以共享数据。

添加步骤:

Continue reading ‘Drupal multisite服务器上添加新站点’ »

Drupal网站升级操作步骤

这是一个备忘帖。每次看到Drupal放出新的release时候都有升级的冲动。虽然一再告诫自己,升级是有风险地,也不一定有必要啊,是不是还有模块不能适应新版本啊?等等等等顾虑。不过升级还是在所难免的,如果错过了好几个重要版本,搞不好都不支持老版本了。下面列出了Drupal网站的升级步骤(来自Drupal台湾tky的帖子):

Continue reading ‘Drupal网站升级操作步骤’ »

OsCommerce installation and Multilanguage support

Install OsCommerce in cPanel is a piece of cake. However, only several western languages are shipped with the release package. Once install some eastern language package, such as Chinese, one my encounter character display problem. The source pack uses iso-8859-1 (latin1) charset while connecting to the database, which is compatible with all the western languages. The Chinese language pack on the official site is in GB2321 encoding, and it is quite old, developed in 2006. In addition, the database itself also uses some encoding method, which is utf8 in my case. Therefore, three charsets are used by the source, the language pack and the database. God! You must be extremely lucky if you have no trouble with these.

Continue reading ‘OsCommerce installation and Multilanguage support’ »

用Drupal的multisite机制重新部署网站

Drupal社区十分强大且活跃,使得本人不在考虑使用其他的CMS建立网站了。

由于前期的几个网站都是用drupal单独创建的,因此更新维护起来比较麻烦,因此考虑把几个网站重新部署,共用一个代码库。这里不得不提到Drupal支持的multisite机制简直就是太cool了。(其实Drupal在CMS设计理念上的创新还有很多,不是一般的CMS可比的)

Multisite就是很多网站被部署在一个Drupal代码库下,但是站点相对独立。只要改动或升级这份代码库,所有的网站功能都会改变,极大的节省了维护成本,同时还能满足各个站点独特的要求。

安装多站点大概分为两种:一种是在一个网站下全新建立几个新的独立站点;另一种情况是将已有的几个站点合并到一个Drupal系统中。很显然,本人需要做的是第二种情况。

Continue reading ‘用Drupal的multisite机制重新部署网站’ »