翻译:Wordpress主题制作教程#2:模版文件与模版
原文作者:Small Potato
翻译:Leon
模版文件与模版是我的Wordpress主题系列教程的第二节课。如果你还没有读过第一课,现在就停下来去学习它吧,否则,你会不理解这节课中会用到的一些术语。
既然我们已经了解了规则和术语,这节课中将会提到的的模版文件、模版、以及页面结构对我们就会相当熟悉。
一件应该记住的事就是你的Blog的每个页面都是由多个模版文件组成的。例如首页的结构如下:
原文作者:Small Potato
翻译:Leon
模版文件与模版是我的Wordpress主题系列教程的第二节课。如果你还没有读过第一课,现在就停下来去学习它吧,否则,你会不理解这节课中会用到的一些术语。
既然我们已经了解了规则和术语,这节课中将会提到的的模版文件、模版、以及页面结构对我们就会相当熟悉。
一件应该记住的事就是你的Blog的每个页面都是由多个模版文件组成的。例如首页的结构如下:
如果你的空间服务商只提供一个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 »
原文作者:Small Potato
翻译:Leon
本文是我关于Wordpress主题制作系列教程的第一课。我不会马上教给你所有的东西,因为那会使你头大的。我将展示给你的并不是一份参考,就是说我会一步一步、一点一点的教你。如果你想要一份关于Wordpress主题的完整的参考,请阅读Wordpress文档,设计和层,要么,就学习我的教程吧。
Read the rest of this entry »
说明:从本文开始,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网站提供的帮助的时候都感到头大。
工具——在我们下一步开始之前,您需要准备好:
作为学习之用,原文海豚微笑的背后http://www.kdolphin.com/238:
这篇和接下来几篇可以看作是制作KD02这个模版的一些心得和总结,其中大有可能存在谬误或错漏之处,权作参考。不过话说回来,看完后自己弄个可以看看的模版还是没问题的。
这篇内容很简单,只是介绍一下需要的工具和WordPress模版的基本结构文件。
工具:
文件:
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!
Telnet根本不像想象中的那么简单,与web方式相比,上手大概要很费时间了,可是,基于某些原因,我很想学会telnet,起码是多少要了解一些,所以决定近期内,强迫自己使用Cterm,丢弃web方式,因为,一旦产生懒惰心理,就永远也接触不了telnet。
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.