From c7fa4903d10d12aa6ca7e1af287be2e91b916b41 Mon Sep 17 00:00:00 2001
From: saxmatt
Date: Fri, 2 Jan 2004 23:15:27 +0000
Subject: [PATCH] Texty edits. Move template stuff to online.
git-svn-id: http://svn.automattic.com/wordpress/trunk@691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
readme.html | 524 +++-------------------------------------------------
1 file changed, 21 insertions(+), 503 deletions(-)
diff --git a/readme.html b/readme.html
index e785a57923..4a108eaadd 100644
--- a/readme.html
+++ b/readme.html
@@ -66,7 +66,7 @@
-1.0
+Version 1.0
Weblog / News Publishing Tool
Requirements - Installation - Template(s) - Query String Usage - XML-RPC (Blogging APIs) - Post Via Email - Notes
Requirements:
@@ -76,23 +76,24 @@
... and a link to http://wordpress.org on your site.
The link will help promote WordPress and is its only mean of promotion.
-WordPress is built from b2, which comes from Michel V. We wouldn't be here without him, so why don't you grab him something from his wishlist? You can also support the WordPress developers.
+WordPress is the official continuation of b2, which comes from Michel V. The work has been continued by the WordPress developers. If you would like to support WordPress, please consider donating.
This document is currently beta stage, we'll be updating it extensively as WordPress matures. There is also online documentation under development, as well as a wiki.
Installation:
New users: 5-minute install.
- Unzip the package in an empty directory.
- Upload everything. This release is designed to sit in your root folder; i.e, the folder where your WordPress-powered page will reside.
- - The weblogs.com cache file needs to be writable by the web server. CHMOD 666 the
weblogs.com.changes.cache
file.
-- Point your browser to wp-admin/install-config.php. This will create a configuration file for your installation. You'll need to know your database name, username, password, and host name.
- - Alternately, you may open wp-config-sample.php in a text editor and insert your database name, username, password, and host name as indicated in the comments. (Comments are lines that start with
/*
or //
.) Save this file as wp-config.php, and upload it.
- - Launch /wpfolder/wp-admin/install.php in your browser. This should setup the MySQL database for your blog. Note the password given to you. If there is an error, double check your wp-config.php file, and try again. If it fails again, please go to the support forums and make a post with all the information about the failure (error messages, etc), and your setup (the PHP and MySQL versions on your server, and the browser you were using).
- - During step 2 of the installation, make sure you enter a fully-qualified domain name for your blog url. For example: http://www.yoursite.com/wordpress . Make sure there is no trailing slash at the end of the url.
- - The install script should then send you to the login page. Sign in with the username "admin" and the password generated during the installation. Then click on the item 'My Profile', and change the password. The login page may also be accessed by going to /wpfolder/wp-login.php. Note: you need javascript enabled to launch the profile popup window.
+ - (Optional) If you're going to use it, the weblogs.com cache file needs to be writable by the web server. CHMOD 666 the
weblogs.com.changes.cache
file.
+ -
+
Point your browser to wp-admin/install-config.php. This will create a configuration file for your installation. You'll need to know your database name, username, password, and host name.
+ Alternately, you may open wp-config-sample.php in a text editor and insert your database name, username, password, and host name as indicated in the comments. (Comments are lines that start with /*
or //
.) Save this file as wp-config.php, and upload it.
+
+ - Launch /wp-admin/install.php in your browser. This should setup the MySQL database for your blog. Note the password given to you. If there is an error, double check your wp-config.php file, and try again. If it fails again, please go to the support forums and make a post with all the information about the failure (error messages, etc), and your setup (the PHP and MySQL versions on your server, and the browser you were using).
+ - The install script should then send you to the login page. Sign in with the username "admin" and the password generated during the installation. Then click on the item 'My Profile', and change the password. The login page may also be accessed by going to wp-login.php.
Some notes:
- - Whenever you want to post something, just open a browser and go to wp-login.php to log in and post.
+ - Whenever you want to post something, just open a browser and go to wp-login.php to log in and post.
- You can also use a bookmarklet and/or a sidebar (IE5+/NS6+) to post.
- You can also post through the Blogger, MetaWeblog, and MovableType APIs, click here for more info.
- By default, your site's blog is located at index.php, which is an elaborate .CSS-based template. There is a non-.CSS template you can also use, called wp.php. You can rename either of these files as any other name you fancy (provided it bears the php extension or is interpreted as a php file by your server).
@@ -102,13 +103,13 @@
- Back up your database before you do anything.
- If you haven't already, we strongly suggest that you BACK UP your database.
- Have you BACKED UP your database? Yeah? GREAT!
- - If you don't know how to do this, this script can help.
-
+ - If you don't know how to do this, this script may help.
+
-Upgrading from WordPress v0.7x to v1.0:
+Upgrading from any previous WordPress to v1.0:
- Backup your database. Yes, you. Right now.
- - Point your browser to /wp-admin/upgrade.php.
+ - Point your browser to /wp-admin/upgrade.php.
- You wanted more, perhaps? That's it!
Note on upgrading to v1.0:
@@ -126,502 +127,20 @@
WordPress issues should be discussed in our support forums.
-Upgrading to WordPress v1.0 from Textpattern, GreyMatter, & Blogger
+Upgrading to WordPress v1.0 from Movable Type, Textpattern, GreyMatter, & Blogger
- Did we mention BACKING UP your database first?
- Each of these tools has an import script available. They are all located in the wp-admin directory, and must first be configured with your database information before they are executed.
- Detailed importing instructions are given during the execution of the import script.
-
- Textpattern: run wp-admin/import-textpattern.php.
-- GreyMatter: run wp-admin/import-greymatter.php.
-- Blogger: run wp-admin/import-blogger.php.
+- Textpattern: run wp-admin/import-textpattern.php.
+- GreyMatter: run wp-admin/import-greymatter.php.
+- Blogger: run wp-admin/import-blogger.php.
+- Movable Type: run wp-admin/import-mt.php.
-Templates:
+Templates:
+For information about WordPress templates, please see our online documentation on them.
First notes:
-
- - Enclosed is an example of a template, in the file wp.php. You can rename this file to "index.php"or something else (WordPress 1.0 has a default index.php, which is an elaborate CSS-based template).
- - You can have any number of template files, since all they do is extract the posts from the database.
- - The pseudo-template for the comments is in wp-comments.php. You needn't rename this file, but you can edit it.
- - The only thing to remember is that it's not actually a template, but a PHP file that you're manipulating. So when you see "don't delete this line", you know you mustn't, unless you want to have a broken page.
- - Required lines are: the first lines that call wp-blog-header.php, the lines with the "while" statement, and the ones with just "}" (it ends the while loop).
- - Between the "while" line and the "}", is the template for your posts.
-
-Notes about parameters:
-
- - Some template tags can accept optional parameters between the parentheses ().
- - To add a parameter to a tag, enclose it between quotes and put it between the ().
- Example: <?php my_tag('my parameter'); ?>
- - You may have to put several parameters, for that you separate them with commas.
- Example: <?php my_tag("first param", "second param"); ?>
- - The order of parameters is important. If a function accepts 2 parameters and you only want to set the second one, you still have to provide the first one, and so on for any number of parameters.
- Example: <?php my_tag("", "second param"); ?>
- - Some template tags, like the_date(), display something only in certain conditions. They generally accept parameters to display something before and after them only when they display something.
- Example: <?php the_title("<h1>", "</h1>"); ?>
would display <h1>title of the post</h1> only if the post has a title
-
-Template tags:
-
-
-Blog data tag:
-- <?php bloginfo() ?>
-This tag is out of the WordPress loop.
-It outputs info about your weblog.
-Parameters:
-
- - string: can be 'name' to display the name of your weblog (you set it in the options page), 'url', 'description', 'admin_email', 'rss_url' to display the URL of your wp-rss2.php file, 'pingback_url' to display the URL of your xmlrpc.php file
- (default string is 'name')
-
-
-
-
-
- Date and Time tags:
-
-- <?php the_date() ?>
-The date of the post. example: 03.07.01 (default is dd.mm.yy).
-The date is displayed only on new days. For example, if you write 10 posts on the same day, the date is displayed only once.
-Parameters:
-
- - format string (default: "d.m.y")
- - string to display before the date (default is blank)
- - string to display after the date (default is blank)
-
-
-Note about the_date(): If you want all your posts to bear the date, you'll have to use the_time() instead, with a date format string. For example, to have all your posts show as "25.12.2001 @ 8:04:50 AM" you'll have the_time("d.m.Y @ g:i:s A"). You can also repeat this template tag 2 times with 2 different formats: the_time("d.m.Y") for the date, and then later the_time("g:i:s A") for the time of the day.
-
-- <?php the_time() ?>
-The time of the post. Example: 18:37:00 (default is hh:mm:ss)
-Parameters:
-
- - format string (default: "H:i:s")
-
-
-
-Note: You can change the way the date & time are displayed in the Options page.
-Once you understand the format strings for the date & time (explained in the Options page), you can change the display right on the template: for example, you can change the_date("d.m.Y") to have dates like 25.12.2001, or the_time("B") to have Swatch Internet Time.
-If you change the display of the date on the template, changing it from the options page won't have any effect.
-
-
-Deprecated date/time tags:
-
-- <?php the_weekday() ?>
-This displays the day of the week when the post was made. It works like the_time(), in that it would appear at every post. Weekdays can be obtained with a custom date format string in the_time() or the_date(), but for non-english weekdays you have to edit day-month-trans.php
-Note: this tag is OBSOLETE, as the_time() and the_date() now use weekdays/months from day-month-trans.php
-
-- <?php the_weekday_date() ?>
-Like the_weekday(), but works like the_date(), in that it will appear only on new days.
-Note: this tag is OBSOLETE, the_time() and the_date() now use weekdays/months from day-month-trans.php
-Parameters:
-
- - string to display before the weekday_date (default is blank)
- - string to display after the weekday_date (default is blank)
-
-
-
-
-
-
-
-
-
-Author tags:
-- <?php the_author() ?>
-The author of the post.
-Depending on the user's profile settings, it can display whether their nickname, login name, first name, last name, both first& last name, or last & first name. See below for more author-related template tags.
-
-Want more about the author of the post? Here goes:
-
-<?php the_author_email() ?>- the author's email.
-<?php the_author_url() ?> - the author's url.
-><?php the_author_icq() ?> - the author's ICQ number.
-<?php the_author_aim() ?> - the author's AIM handle.
-<?php the_author_yim() ?> - the author's Yahoo Messenger handle.
-<?php the_author_msn() ?> - the author's MSN Messenger handle.
-<?php the_author_posts() ?> - the author's post count.
-<?php the_author_login() ?> - the author's login name in WordPress. If you want some static data about the author, this is what you're searching for. You can, for example, associate a picture with an author, like this: <img src="pictures/<?php the_author_login() ?>.jpg" border="0">
-<?php the_author_ID() ?> - the author's ID number in WordPress. This number is automatically set when the user registers: to see the ID of an user, go to the Team page. This is static data too, so you can use it like the_author_login() in associating stuff with authors.
-
-
-
-Category tags:
-- <?php the_category() ?>
-The name of the category the post belongs to. You can add categories, and rename them if needed. The default category is 'General'; you can rename it too.
-
-- <?php the_category_ID() ?>
-The ID (number) of the category the post belongs to. This is static data that you can use; for example, to associate a category to an image, or a css style.
-
-- <?php get_links_list() ?>
-This tag is out of the WordPress loop.
-It will output a list of all links defined in the Links Manager, listed by category, with category headings, using the settings in the Links Manager to control the display and sorting of links within the categories. It outputs this data as a nested HTML unordered list. That sounds more complicated that it really is.
-Parameters:
-
- - a string to determine category sort order (e.g. 'name', 'updated', 'id')
-
-
-
-
-- <?php dropdown_cats() ?>
-This tag is out of the WordPress loop.
-It will display a list of <option name="x">category-name</option>, where x is the number of the category and category-name is the name of it.
-Parameters:
-
- - 0 or 1, depending if you want to have an option to display all categories (default is 1)
- - text to display for the option to show all categories (default is "All")
- - sort by: possible values are 'name' and 'ID' (default is 'ID')
- - sorting order: possible values are 'asc' for ascending or 'desc' for descending (default is 'asc')
- - 0 or 1. 1 means display the date of the last post in each category (default is 0)
- - 0 or 1. 1 means display a count of posts in each category (default is 0)
- - 0 or 1. 1 means hide empty categories (default is 1)
-
-
-
-You can use it like this:
-
-<form action="<?php echo $PHP_SELF ?>" method="get">
-<?php dropdown_cats() ?>
-<input type="submit" name="submit" value="view" />
-</form>
-
-- <?php list_cats() ?>
-This tag is out of the WordPress loop.
-It will display a list of the categories, with links to them.
-Parameters:
-
- - 0 or 1. 1 means display an extra 'all' category (default is 1)
- - text to display for the option to show all categories (default is 'All')
- - sort by: possible values are 'name' and 'ID' (default is 'ID')
- - sorting order: possible values are 'asc' for ascending or 'desc' for descending (default is 'asc')
- - filename, in case you want to display the categories' posts in another template (default is current template)
- - 0 or 1. 1 means generate the items inside <li> tags, to build an HTML list. 0 means to just follow each link with a <br /> tag. (default is 1)
- - 0 or 1. 1 means display the date of the last post in each category (default is 0)
- - 0 or 1. 1 means display a count of posts in each category (default is 0)
- - 0 or 1. 1 means hide empty categories (default is 1)
-
-
-
-
-
-
-<?php single_cat_title() ?>
-This tag is out of the WordPress loop.
-It outputs the title of the category when you load the page with ?cat= (see 'Usage' section for explanation). When the weblog page is loaded without ?cat=, this tag doesn't display anything. Generally, you could use it like this:
- <title><?php bloginfo('name') ?><?php single_cat_title() ?></title>
-Parameters:
-
- - prefix string that will appear before the category's title (default is ' :: ')
-
-
-
-
-
-
-
-Permalink tags:
-
-- <?php permalink_anchor() ?>
-This will display <a name="..."></a>, replacing "..." with the ID or the title of the post in the database.
-
-Parameters:
-
- - string for kind of anchor: either 'id' that displays '50', or 'title' that displays 'title_of_post_50' (default is 'id')
-
-
-
-- <?php permalink_link() ?>
-This will display the name of the file followed by #ID to link to the post, in the month archive if archive-mode is "monthly".
-Note: This tag does not display the link. For that, you've got to type <a href="<?php permalink_link() ?>">text of the link</a>.
-Parameters:
-
- - file name, in case you want to link the archive to a different template (default is the current template)
- - string for kind of link: either 'id' that appends '#50' to the link, or 'title' that appends '#title_of_post_50' (default is 'id')
-
-
-
-
-- <?php permalink_single() ?>
-This will display the name of the file followed by #ID to link to the entire post (the linked page will also show the extended text on that post if it is an extended entry, and the comments).
-Note: This tag does not display the link. For this you've got to type <a href="<?php permalink_single() ?>">text of the link</a>.
-Parameters:
-
- - file name, in case you want to use a different template for single posts (default is the current template)
-
-
-
-
-
-
-Comments, Trackback, and Pingback tags:
-
-- <?php comments_popup_script() ?>
-This will include the javascript that is required to open comments, trackback and pingback in popup windows.
-You should put this tag before the </head> tag in your template.
-Parameters:
-
- - width (default is 400)
- - height (default is 400)
- - file name, in case you want to use a different template for comments (default is wp-comments-popup.php)
-
-
-
-
-- <?php comments_popup_link() ?>
-This will display the link to open comments in a popup window, with the number of comments.
-To edit the popup window's template, edit the file wp-comments-popup.php. (It's the default one for comments popup).
-
-
-Parameters:
-
- - string for comment-less posts (default is "no comments")
- - string for posts with one comment (default is "1 comment")
- - string for posts with 2 or more comments (default is "% comments")
- Note here that the sign "%" is then replaced by the number of comments.
- - string for CSS class, so you can have a styled link with class="" (default is empty, no CSS class applied)
-
-
-
-
-- <?php comments_link() ?>
- This is a bit like permalink_link. It will display an URL to the comments page, but again you'll have to create the link tag.
-
-Note:
-The same tags exist for TrackBack and Pingback, respectively named 'trackback_link()' and 'pingback_link()'. They take the same parameters.
-
-Parameters:
-
- - file name, in case you want to use a different template for comments (default is the current template)
-
-
-
-
-- <?php comments_number() ?>
-This displays the number of comments that have been posted on this post. Example: "5 comments".
-
-
-Parameters:
-
- - string for comment-less posts (default is "no comments")
- - string for posts with one comment (default is "1 comment")
- - string for posts with 2 or more comments (default is "% comments")
- Note here that the sign "%" is then replaced by the number of comments.
-
-
-
-Example: <?php comments_number("no comment","1 comment","% comments") ?>
-
-This tag differs from v0.5's tag because in v0.5 and prior, it would only display a number, not a text with it, so you could have terrible things like "1 comments" (doh !)
-
-Necessary: <?php include("wp-comments.php") ?>
-you'll put this line where you want the comments to be placed on your page.
-typically, under the post itself. don't worry, the comments only appear if the page is called in the comments mode. (like this: url?c=1)
-
-
-Tags that go in wp-comments.php: (these are easy too)
-
-- <?php comment_author() ?>
-- <?php comment_author_email() ?>
- displays the e-mail address, but not the link
-- <?php comment_author_url() ?>
- displays the url, but not the link
-
-- <?php comment_author_email_link() ?>
- displays a link to the comment's author's e-mail
-- <?php comment_author_url_link() ?>
- displays a link to the comment's author's website
-Parameters for
comment_author_email_link() and
comment_author_url_link():
-
- - string for the link (default: "email"/"url" depending on the tag)
- - string to display before the link (default is " - ")
- - string to display after the link (default is blank)
-
-
-
-- <?php comment_author_IP() ?>
- displays the IP of the comment's author
-- <?php comment_text() ?>
- - the content of the comment.
-
- <?php comment_date() ?>
- unlike the_date(), this tag appears on every comment
-- <?php comment_time() ?>
-
-Time the comment was posted.
-Parameters for
comment_date() and
comment_time():
-
- - format string (default is "d.m.y"/"H:i:s" depending on the tag)
-
-
-
-- <?php trackback_rdf() ?>
-This will include the RDF data that can be used by some weblog tools to locate your posts' trackback URLs.
-You should put this tag after the <?php the_content() ?> tag in your template, or just before the end of the loop.
-
-- <?php trackback_url() ?>
-This tag is out of the WordPress TrackBacks loop.
-It will output the URL to TrackBack the post that other people can copy and use in WordPress's posting interface to trackback this post.
- In wp-comments.php, like in the main template file, please keep the first PHP lines, the "while" lines, and the "}" lines.
-You can modify the form, but do not remove "<?php echo ... ?>" and all the name="..." attributes.
-
-
-Archives tag:
-
-- <?php get_archives() ?>
This will include your archived posts.
-Parameters for
get_archives():
-
- - archivetype: 'postbypost', 'daily', 'weekly', or 'monthly' (default is to use the archive_mode setting from the admin interface)
- - limit: how many archive links to display (default is to show all)
- - format:
-
- - 'html': create as <li> items for an HTML list (default)
- - 'option': create option values for a <select> dropdown menu
- - 'link': create <link> elements for the <head> section of a page
- - 'custom': use before and after values to format links
-
-
- - before: text to prepend to link
- - after: text to append to link
- - 0 or 1: 1 means to display link counts
-
-
-
-
-
-Calendar tag:
-- <?php get_calendar(); ?>
This will display the calendar.
-
Query String Usage:
WordPress relies a lot on the query string. These variables passed with the URL (note: to pass variables in the querystring, preceed the first variable name with a '?' question mark and every other variables with a '&' sign.)
Most of the time you won't have to do anything about it, but if you want to know how it works, it's here:
@@ -720,7 +239,6 @@ Extended entries in the Support Forums?
- If you can code in PHP, you'll see the structure of WordPress is flexible enough to allow for more functions and sections to be added.