上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 30 下一页
摘要: 1. Enable these module : Content type translation, Content type translation2. Edit the content type which you want to change the languageFor example, here we modify the "Pages" content type. a. In the... 阅读全文
posted @ 2010-09-01 10:50 DavidHHuan 阅读(387) 评论(0) 推荐(0)
摘要: 将所有没有加入svn的文件都加入svn版本控制[代码]删除所有没有加入svn版本控制的文件[代码]Linux下批量删除.svn文件[代码] 阅读全文
posted @ 2010-08-30 19:59 DavidHHuan 阅读(301) 评论(0) 推荐(0)
摘要: after I modified the 404 page redirection in admin/settings/error-reporting , when I view a page which doesn't exist, that will correctly redirect to the node what I set, but some blocks disappear.The... 阅读全文
posted @ 2010-08-27 16:53 DavidHHuan 阅读(309) 评论(0) 推荐(0)
摘要: 1. Create a file named "StringHelper.php", and locate it in protected/components , and insert the code as below:代码2. Demo[代码]Have fun with Yii! :) 阅读全文
posted @ 2010-08-23 23:26 DavidHHuan 阅读(365) 评论(0) 推荐(0)
摘要: There may be another good way to create and get the thumb image in Yii, here is my method to do it.1. You have to install this extension, "phpthumb", please search this extension in this website. 2. C... 阅读全文
posted @ 2010-08-23 22:30 DavidHHuan 阅读(466) 评论(0) 推荐(0)
摘要: Just test the code as below:代码Have fun! 阅读全文
posted @ 2010-08-23 14:16 DavidHHuan 阅读(400) 评论(0) 推荐(0)
摘要: When I runed a 32M database file in phpmyadmin, I got this error in the screen.[代码]There is a good way to fix this problem. Open the my.cnf file in the mysql install path. (Because I install the lampp... 阅读全文
posted @ 2010-08-19 15:43 DavidHHuan 阅读(867) 评论(0) 推荐(0)
摘要: html code:代码js code:代码 阅读全文
posted @ 2010-08-17 19:14 DavidHHuan 阅读(343) 评论(0) 推荐(0)
摘要: 事实上,javascript是不能像PHP,Java那样定义函数参数的默认值的,比如说像下面的例子,是不对的。[代码]调用test(10),test(10, 20)时会以下错误:缺少对象不过javascript提供了另一种方法来处理。使用 arguments 实参数组[代码] 阅读全文
posted @ 2010-08-15 15:39 DavidHHuan 阅读(611) 评论(0) 推荐(0)
摘要: That is just my method to create the ajax module. Here I will build a module "myajax" and locate it in sites/all/modules/1. Create the .info file, insert the content as below.[代码]2. Create the .module... 阅读全文
posted @ 2010-08-14 23:00 DavidHHuan 阅读(344) 评论(0) 推荐(0)
摘要: 1. Install captcha2. Go to admin/user/captcha3. Check "Add CAPTCHA administration links to forms"4. Go to your webform node (just view it, do not edit)5. Expand the "CAPTCHA" fieldset at the bottom of... 阅读全文
posted @ 2010-08-13 14:14 DavidHHuan 阅读(298) 评论(0) 推荐(0)
摘要: Creating radio buttons, checkboxes, and select lists is a little tricky in Webform, since they're all part of the "select" component type. To create these types, follow the instructions below for the ... 阅读全文
posted @ 2010-08-12 19:10 DavidHHuan 阅读(393) 评论(0) 推荐(0)
摘要: So what we need, just run the command below.[代码] 阅读全文
posted @ 2010-08-12 13:30 DavidHHuan 阅读(406) 评论(0) 推荐(0)
摘要: 1. Set the hosts file.Open /etc/hosts file, add the code as below for example:# drupal127.0.0.1 drupal2.39.lan.gz127.0.0.1 *.drupal2.39.lan.gz2. Set the Virtual Hosts in ApacheOpen /opt/lampp/etc/http... 阅读全文
posted @ 2010-08-05 17:31 DavidHHuan 阅读(1943) 评论(0) 推荐(0)
摘要: When installing Drupal 6.17, I got some errors as below: [代码]It seems that there is not a good way to resolve this via google.com, but that I have a an method.Add a "@" before the ereg(), the code of ... 阅读全文
posted @ 2010-07-22 13:59 DavidHHuan 阅读(293) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 30 下一页