New User Experience

Finally nazham.com released with a new theme. I kinda hate the old theme, just that I have no time to make any changes. The name of this new theme can be found at the footer of this site. Below are some of the changes:

  • The site are more focused on content.
  • It only display excerpts on the main page and rss feeds, instead of the whole content.
  • Clean minimalist look.

Tell me what you think.

Solve Operation Timed Out Error When Upgrading WordPress

WordPress 2.7 comes with a built-in automatic upgrade utilities, inside the control panel. Recently, WordPress has just released version 2.7.1. I would like to upgrade it automatically, to save me the hassle of downloading, ftp-ing or installing it manually.
However, many times have I experienced “Operation Timed Out” followed by “Installation Failed” when doing so. Below are the error I’m talking about (or something similar):

Downloading update from http://wordpress.org/wordpress-2.7.1.zip

Download failed.: Operation timed out after 30000 milliseconds with 351500 bytes received

Installation Failed

Below is what I did to resolve the error:

1. Go to your WordPress installation directory on your website.
2. Go to /wp-admin/includes/ folder.
3. Open/edit the file.php . Or you can download the file to your local computer for editing.
4. Look for the line;
$response = wp_remote_get($url, array(’timeout’ => 30));
and replace it with;
$response = wp_remote_get($url, array(’timeout’ => 120));

5. Save the file, or upload back the file. Be sure to backup the original file.
6. Try the “Automatic Upgrade” once again.

Your upgrade should be working fine now, without the “Operation Timed Out” error. You didn’t hear this from me, it’s from a reference Download failed.: Operation timed out after 30 seconds.

– WordPress: Code is Poetry

Creating an Author Page for your Blog (WordPress)

Nazham.com have multiple authors. Wouldn’t it be great if it can display a little info on the authors, along with their list of posts? I’ve created the page for a while for this site,  now just to share with the viewers. Here’s how I did it.

1. Create an author.php page. The page can simply be done by copying your existing archives.php page, and renamed it to author.php
2. Sample code below. Change the layout as you like to match with your blog’s theme.

<!--content-->
<div id="content">

	<!--left-col-->
	<div id="left-col">
	  <div class="post">

	  <!-- This sets the $curauth variable -->
	  <?php
	  if(isset($_GET['author_name'])) :
	  $curauth = get_userdatabylogin($author_name);
	  else :
	  $curauth = get_userdata(intval($author));
	  endif;
	  ?>

	  <h3>About: <?php echo $curauth->display_name; ?></h3>

	  <p><strong>Website:</strong>
          <a href="<?php echo $curauth->user_url; ?>">
	  <?php echo $curauth->user_url; ?></a></p>

	  <p><strong>Profile:</strong>
          <?php echo $curauth->user_description; ?></p>

	  <h3>Posts by <?php echo $curauth->display_name; ?>:</h3>
	  <ul>
	    <!– The Loop –>
	    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
		<li>
			<em><?php the_time('M jS, Y') ?></em>
                        <a href="<?php the_permalink() ?>" rel="bookmark"
                        title="Permanent Link: <?php the_title(); ?>">
			<?php the_title(); ?></a>
		</li>
	  <?php endwhile; else: ?>
		<p><?php _e('No posts by this author.'); ?></p>
	  <?php endif; ?>
	  <!– End Loop –>
	  </ul>
	  </div>
	</div>
</div>
<!--content-end-->

The code above will display the author’s name, website, profile and the author’s posts.

3. To create the author’s link (maybe somewhere at the post title of your index page), simply put the code below:
<?php the_author_posts_link(); ?>

Resource:
1. How To: Adding An Author Page To Your WordPress Blog
2. WordPress Author Templates

WordPress 2.7 “Coltrane” Available Now

Following my previous post, WordPress 2.7 Coming Tomorrow, which meant to WordPress.com users, the self-hosted version is available NOW. WordPress 2.7 “Coltrane”, is available on WordPress.org site. When you logged in to your WordPress control panel, you will be prompt with a “WordPress 2.7 is available!” notification.

Wordpress 2.7
Wordpress 2.7

Enjoy your new WordPress release ! 🙂

WordPress 2.7 coming tomorrow

According to DownloadSquad and WordPress.com, WordPress 2.7 is coming out tomorrow.

As promised, here is the advance notice that WordPress 2.7 is coming to WordPress.com, and will go live on Thursday, December 4, 2008 at 8pm Eastern Time.

That’s 9 a.m. in Kuala Lumpur!

WordPress 2.7 represents a huge shift away from earlier versions of WordPress – at least in the administration area. Most of the changes will be visible to bloggers, but not blog readers. But the changes in the admin area are huge. First, the navigation menus have all been moved to the left side of the screen, giving you more room at the top of the page. The submenus are all also collapsible, which allows you to navigate the administration interface without reloading the page as often.

A screenshot from RC1:

Wordpress 2.7
Wordpress 2.7

I just can’t wait to load it when it comes out.