Archive for March, 2007

Page 1 of 212»

翻译:Wordpress主题制作教程#2:模版文件与模版

原文作者Small Potato

翻译Leon

模版文件与模版是我的Wordpress主题系列教程的第二节课。如果你还没有读过第一课,现在就停下来去学习它吧,否则,你会不理解这节课中会用到的一些术语。

既然我们已经了解了规则和术语,这节课中将会提到的的模版文件、模版、以及页面结构对我们就会相当熟悉。

一件应该记住的事就是你的Blog的每个页面都是由多个模版文件组成的。例如首页的结构如下:

index.gif Read the rest of this entry »

只用一个数据库装多个Wordpress

如果你的空间服务商只提供一个mysql数据库,但是还想装两个甚至更多个wordpress?

如果出于经济考虑,你想和朋友共用一个mysql数据库,而建立不同的wordpress?

如果你在A公司买的php空间,在B公司买的mysql,如果搭建起wordpress?

今天在研究wordpress时,发现上面问题都可以在wp-config.php中圆满解决。

// ** MySQL settings ** //
define('DB_NAME', 'wordpress'); // The name of the database
define('DB_USER', 'username'); // Your MySQL username
define('DB_PASSWORD', 'password'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

/* That's all, stop editing! Happy blogging. */

define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>
Read the rest of this entry »

翻译:Wordpress主题制作教程#1:介绍

原文作者Small Potato

翻译Leon

本文是我关于Wordpress主题制作系列教程的第一课。我不会马上教给你所有的东西,因为那会使你头大的。我将展示给你的并不是一份参考,就是说我会一步一步、一点一点的教你。如果你想要一份关于Wordpress主题的完整的参考,请阅读Wordpress文档,设计和层,要么,就学习我的教程吧。

本节课包括:

  • 基本规则
  • 术语
  • 分层

基本规则:

翻译:Wordpress主题制作教程

说明:从本文开始,Leon 决定着手翻译Small Potato的WP Theme Lesson系列文章。翻译原则是忠实原文,不加任何个人修饰。

原文链接http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh

以下是正文翻译 :

从零开始制作一个WordPress的主题并不是一件难事,我会带你一起完成它。

制作Wordpress主题的教程在以前也有人写过,并且Wordpress的网站也提供了一系列相关介绍。但是,如果你看不懂那些晦涩的术语,那些教程和介绍真的对你有帮助吗?就连我在读Wordpress网站提供的帮助的时候都感到头大。

工具——在我们下一步开始之前,您需要准备好:

  • 在您的电脑上安装Wordpress。按照“在本地XP中安装WordPress”一文提供的方法装好WP。如果因为某些原因您不能将WP装到您的电脑中,不要担心,把WordPress安装到您的网站上也可。
  • 记事本或者其他文本编辑工具。我使用的是记事本。
  • SmartFTP——如果您准备在线测试您的主题,我建议您下载并安装SmartFTP或者其他FTP工具以便将您的主题进行上传。
  • 书签工具XHTML验证CSS验证.你需要这些工具来对制作的主题文件进行标准化验证。当你需要找出并修复错误的时候,他们同样十分有用。

完全教程列表

Read the rest of this entry »

海豚的WordPress Theme教程

作为学习之用,原文海豚微笑的背后http://www.kdolphin.com/238

这篇和接下来几篇可以看作是制作KD02这个模版的一些心得和总结,其中大有可能存在谬误或错漏之处,权作参考。不过话说回来,看完后自己弄个可以看看的模版还是没问题的。
这篇内容很简单,只是介绍一下需要的工具和WordPress模版的基本结构文件。
工具:

  • 一个有代码高亮功能的编辑器,Windows推荐EditplusCrimson Editor,这两个比较小巧,而且后者是免费的。Linux我就不具体推荐了,估计大家都有自己顺手的。
  • FireFox + WebDeveloper,这个组合我提过很多次了,具体可以看一下链接里的介绍。
  • Internet Explorer,这个谁都有吧,做完了模版还是需要放到这里来看看的,我们不能回避占有量第一的事实,即使它并不标准。

文件:

  • 404.php
    404出错信息,当访问者输入了一个不存在的地址就会看到这个页面,可以在这里写一些有用的提示,或者直接给个404 error。
  • archive.php Read the rest of this entry »

Poor Performance!

Last night Leon took the face to face interview at the Network Application Center of HUST’s Students’ Affairs Office.

Seeking for excitement, poor performance!

My Counselors has helped a lot before the interview. But unforturnately, I failed in answering any of the three simple questions the interview offical asked to me! I just don’t know what to answer, just because I have no idea of that!

While in fact, I just need something exciting to sitmulate myself. I did not mean to seize that opportunate.

And I lose as expected, I guess.

But thank you all the same, I think I have got what I really need. After the interview, I thinked a lot myself. My knowledge, my passion, my life, and myself.

Leon will always be remembering that night, on which I lose as expected. And thanks to that night, I understand myself more, much more.

Thanks a lot!

在deviantART注册了

一个相当优秀的图片共享网站,那些CG都做的很漂亮,也很精致。在下面贴两张LOST的图片。CHARLIE from LOST

强迫自己使用Cterm

ctermlogo.gif  Telnet根本不像想象中的那么简单,与web方式相比,上手大概要很费时间了,可是,基于某些原因,我很想学会telnet,起码是多少要了解一些,所以决定近期内,强迫自己使用Cterm,丢弃web方式,因为,一旦产生懒惰心理,就永远也接触不了telnet。

Page 1 of 212»
  • 全文搜索

  • 按月存档

  • 请猛点这里

    标签云

  • 最新评论

    • 百毒博客: 早就该出国了,现在国内不适合网站...
    • tt: 这个我最近才捣鼓的东西,你一年前已...
    • 钻戒: 来晚了。。。...
    • tastypear: 求源码真相 囧r...
    • admin: speed调到200可以了...
    • admin: 用了你的swf,谢谢,不过总觉得tag运动...
    • 罗什麽: 我们友情一下吧?~我注意你很久了。...
    • 小武: 这是最完美的,太感谢了...
    • 黎明破晓: 你有实力搬家,我们想搬家走不了啊...
    • sio: 博主!还是你这个靠谱!崇拜啊...
  • 纵横坐标