Wednesday, September 24, 2008

WordPress Installation

After fighting with WordPress 2.6.2 for about 2 hours.
Because it displayed only blank page after pressing 'Install'.
Searching in Goooogle, and found this website
http://trac.wordpress.org/ticket/7724
Oh shit!!! It's WordPress's bug. Installation works well after bug solving.
Yeahhh!!! Now I have my own blog!

Then disabled Post Revision function, or the database will be filled up with many garbage posts.
Added this command into file wp-config.php
// Disable Post Revisions
// To delete existing revisions, use this SQL query:
// DELETE FROM wp_posts WHERE post_type = 'revision';
define('WP_POST_REVISIONS', false);
define('AUTOSAVE_INTERVAL', 86400);

Then installed Wordpress PDA & iPhone 1.2.6 plug-in for access from mobile phone.
These 3 agents were also added.
PPC, WindowsCE, Mobile

And activated Akismet 2.1.8 plug-in (built-in) to block spams.

And installed Related Entries 2.04 plug-in from this website
http://www.basicstep.net/wordpress/related-posts-plugin/
But the table can't be modified to be FULLTEXT.
So I Goooogled (again). And found that the wp_posts table needs to be changed to MyISAM.

Next, Thai localization. I choose this website
http://sourceforge.net/projects/wordpressthai/
Followed the installation from this website
http://www.wordthai.com/index.php?topic=12.0

Then installed Language Switcher and 2.6 patch for multilingual support. (Only 2 languages are enought)
And added some Quick Buttons into file /wp-includes/js/quicktags.js

Added language link into file /wp-content/themes/.../single.php (insert after <?php get_header(); ?>)
<?php
$old_url = str_replace('&langswitch_lang='.$langswitch_lang_pref, '', $_SERVER["QUERY_STRING"]);
$old_url = str_replace('langswitch_lang='.$langswitch_lang_pref, '', $old_url);
if (!empty($old_url)) $old_url .= '&';
print '<div align=right>Language : <a href="?'.$old_url.'langswitch_lang=th">ไทย</a> | <a href="?'.$old_url.'langswitch_lang=en">English</a> &nbsp; &nbsp; &nbsp; </div>';
?>

And enabled some modules.
Also installed Dashboard Widget Manager 1.3.1 plug-in to manage Dashboard.
Added StyleSheet into file /wp-content/themes/.../style.css
table.code {
border-style: solid;
border-width: 1px;
border-color: #a0d0a0;
background-color: #f0f0f0;
font-family: courier;
text-align: left;
padding: 0.1em 0.5em;
}

To use static page as a front page:
http://turbochargedcms.com/2006/11/building-a-true-home-page-into-your-wordpress-blog/

Then installed StatPressCN.

No comments: