Wordpress 2.5.1 Released
written by Anthony Dinh
Wordpress 2.5.1 is now available for download. It includes a number of bug fixes, performance enhancements and one critical security patch which is highly recommended, especially if your blog has open registration enabled.

The entire release boasts over 70 fixes, here are some highlights:
Don’t leave your blog vulnerable and susceptible to these security holes, download and upgrade your installation today! Before you do anything, don’t be foolish, remember to backup your installation files and MySQL database. For more details and documentation, you can read the full story here.
** Find this post useful or entertaining? Then please consider subscribing to my full RSS feed or have new posts sent directly to your to email. **
Archive Index Page, How do I Make One?
written by Anthony Dinh
Your blog has been up and running for awhile and your posts are growing by the day, so now you would like to create an archives page to neatly list your previous posts. Here’s a quick tutorial on how you can create an archive index like mine at http://www.diariesofablogger.com/archives. It nicely lists your previous posts by category, by month and the most recent N posts of your choice as shown below.

If you are using a free template that you found at one of the infinite Wordpress resource sites, then you may already have the template in your wp-content/themes/yourtheme folder, so check there first. If it doesn’t already exist, here’s how you can create one.
1. make a copy of your index.php page and save it as archives.php
2. prepend the following code to the top of your newly created file
<?php
/*
Template Name: Archive Index Template
*/
?>
3. replace everything in between the existing “while loop” code with the following code (the loop starts with
<?php while(have_posts()) : the_post(); ?> and ends with <?php endwhile; ?>)
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h4>by Categories</h4>
<ul>
<?php list_cats(0, ”, ‘name’, ‘asc’, ”, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”) ?>
</ul>
<h4>by Month</h4>
<ul>
<?php wp_get_archives(’type=monthly’); ?>
</ul>
<?php endwhile; else: ?><?php endif; ?>
This will list all posts by category and by month. Here’s a breakdown of the list_cats arguments that can be passed in the querystring:
<?php list_cats(optional, ‘all’, ’sort_column’,
’sort_order’, ‘file’, list, optiondates,
optioncount, hide_empty, use_desc_for_title,
children, child_of, ‘Categories’, recurse,
‘feed’, ‘feed_img’, ‘exclude’,
hierarchical); ?>
If you wish to list the N most recent posts, then replace the loop with
<?php while(have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<ul>
<?php
$myposts = get_posts(’numberposts=100&offset=0′);
foreach($myposts as $post) :
?>
<li><?php the_time(’m.d.y’) ?> | <a href=”<?php the_permalink(); ?>”><? php the_title(); ?></a></li>
<? php endforeach; ?>
</ul>
<?php endwhile; ?>
You can change the numberposts=100 and offset=0 variables to anything you’d like.
4. upload archives.php to wp-content/themes/yourtheme folder
5. create your archive index page from the admin panel->write->page
- give your new page a suitable name like Archive Index
- leave the page content area blank
- in the Page Template section, select the Archive Index Template from the drop-down list, and save your changes
- you should now see a link to your archive index in your pages list along the top of your page, or the pages widget in your sidebar. alternatively, you can access your archives page at http://yourdomain.com/index.php?pagename=archive-index and verify that it’s working correctly
That’s it! Now that wasn’t so hard was it?
** Find this post useful or entertaining? Then please consider subscribing to my full RSS feed or have new posts sent directly to your to email. **
Wordpress 2.5 Installation
written by Anthony Dinh
Hello all! I just finished installing Wordpress 2.5 today which took about 5 minutes. Installation consisted of 6 quick and easy steps, even a novice could do it. If you follow the steps below, you shouldn’t have any problems at all.
Before you begin, make sure that you have the following:
Tools
- access to your web server (via shell or FTP)
- a text editor
- an FTP program
System Requirements
- PHP version 4.3 or greater
- MySQL version 4.0 or greater
Installation
1. download and unzip the WordPress package Download
2. create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it
3. rename the wp-config-sample.php file to wp-config.php
4. open wp-config.php in your favorite text editor and fill in your database details
5. place the WordPress files in the desired location on your web server:
- if you want to integrate WordPress into the root of your domain (e.g. http://yourdomain.com), move or upload all contents of the unzipped WordPress directory but excluding the directory itself) into the root directory of your web server.
- if you want to have your WordPress installation in its own subdirectory on your web site (e.g. http://yourdomain.com/blog), rename the directory wordpress to the name you’d like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress installation in a subdirectory called “blog”, you should rename the directory called “wordpress” to “blog” and upload it to the root directory of your web server.
6. run the WordPress installation script by accessing http://yourdomain.com/wp-admin/install.php in your favorite web browser
If this is all greek to you, don’t worry, you can refer to the detailed installation instructions here.
Currently, DiariesOfABlogger.com is hosted on IX Web Hosting, and I couldn’t be happier with the service. Both Linux and Windows platforms are supported, so you may pick the one you’re most comfortable with. Three levels of service are offered, so there’s one to suit everyone’s needs (Unlimited Pro, Business Plan, Elite Plan). I purchased the mid-level Business Plan package and prepaid for 2 years, so the monthly fee came to $6.45, but you can get a free domain and hosting for as little as $4.95/month. The Business Plan includes:
Also, the following base features are included in each of the plans as a standard.
| Email Resources (Accounts) | 5,000 | |
| Catch-All Email Addresses |
| POP3 | ||
| IMAP | ||
| Webmail | ||
| Email Forwards | ||
| Mailbox Aliases | ||
| Email Auto-Responders | ||
| Mailing Lists | ||
| Total Mailbox Quota | 5 GB |
| Scripting |
| PHP v5 - NEW |
| Perl | ||
| CGI with FastCGI support (only with Windows plans) | ||
| CGI | ||
| CGI-BIN | ||
| ASP / ASP.NET v2.0 (only with Windows plans) - NEW | ||
| Cold Fusion v7 MX (only with Windows plans) - NEW | ||
| Javascript/DHTML | ||
| Server Side Includes (SSI) | ||
| Override .htaccess Support (only with Linux plans) |
| Databases |
| MYSQL | 100 |
| PostgreSQL | 100 | |
| Microsoft SQL 2005 (only with Windows plans) - NEW | 100 | |
| ODBC/DSN (only with Windows plans) | ||
| phpMyAdmin | ||
| phpPgAdmin | ||
| Total SQL Databases Quota | 5 GB |
** Find this post useful or entertaining? Then please consider subscribing to my full RSS feed or have new posts sent directly to your to email. **









