Archive for the ‘WordPress’ Category

WordPress’s perfect implementation in studio site: Ovisualize

10.06.2008 by Denis - 0 Comment
Posted in WordPress

I always consider a good choice to use WordPress at the CMS or studio sites. Because WordPress is very simple, it can realize the effects we want. We have been so familiar with WordPress – very friendly to users and search engines. These characters are incarnated into my recent product ‘Ovisualize‘. I would discuss some key points on implementing WordPress in this studio below. Wish to bring in some lights or suggestions when using WordPress to build the CMS sites.

Ovisualize index page

Ovisualize index page

The index pages of ordinary blog list the latest logs, whenas on studio sites it comes the introduction. Therefore we make it happen by adopting WordPress Page. For ‘how to’ details, please refer to this post: 5 simple steps to build CMS by using WordPress.

Index page of Ovisualize case

Index page of Ovisualize case

We generally use WordPress post to realize the pages with much renewal, such as studio cases or products. From above picture we know, the case requires a post thumbnail. We can make it by using custom fields. Read this document in details: Use custom fields to display post thumbnail.

Ovisualize case sample

Ovisualize case sample

The Sample page in Ovisualize displays a brief introduction to this product, and then there are a large case screencut and the list of similar cases. The large case screencut also applies custom fields. For the list of similar cases, I realized it by making some small changes on my pervious plug-in ‘WordPress Related Posts‘. I may add this function into future release.

Okay, that’s all for now. If anything unclear, please drop me message. If you have project related to this, also contact me(email/msn:denishua@hotmail.com). The quality is guaranteed, fair trade.

One WordPress installation, multiple blogs 1

09.19.2008 by Denis - 0 Comment
Posted in WordPress

For different database:

1. Point all domains to the same WordPress root directory.

2. Add the following code at beginning of wp-config.php:

$hostname = $_SERVER['HTTP_HOST'];
 
switch ($hostname) {
case "fairyfish.com":
    $db = "db1";
    break;
case "denis.fairyfish.com":
    $db = "db2";
    break;
}
 
// ** MySQL settings ** //
define('DB_NAME', $db);    // The name of the database

WordPress as a Group Twitter

08.29.2008 by Denis - 0 Comment
Posted in WordPress

XMPPHP is the successor to Class.Jabber.PHP. I use the class to setup a Gtalk bot and integrat it with WordPress, which turns WordPress into a group twitter.

  1. Change your WordPress’s setting: Anyone can register and New User Default Role is Author. These settings can be tweaked in Setting => Genenal of WordPress admin panel.
  2. Download the Prologue WordPress theme and install it.
  3. Download the Gtalk bot code file: xmpphp.zip
  4. Modify the wp-xmpphp.php file. Change the $gtalk_account and $gtalk_password according to your Gtalk bot account and password.
  5. Upload them to WordPress root directory. Make sure the wp-xmpphp.php and wp-config.php are placed in the same directory.
  6. Visit http://your-blog/wp-xampphp.php in your browser once to start the bot
  7. Use the cron job to run the following job: wget http://your-blog/wp-xampphp.php every 10 minutes.

During the test, this php GTalk bot occupied a lot of server resource.

Enable Memcached for your WordPress

07.14.2008 by Denis - 7 Comments
Posted in WordPress

What is Memcached?

( via Memcahced ) memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Danga Interactive developed memcached to enhance the speed of LiveJournal.com, a site which was already doing 20 million+ dynamic page views per day for 1 million users with a bunch of webservers and a bunch of database servers. memcached dropped the database load to almost nothing, yielding faster page load times for users, better resource utilization, and faster access to the databases on a memcache miss.

How to Enable Memcached for your WordPress

1. In order to use memcache, you must compile PHP with Memcache support by using the –enable-memcache[=DIR] option. You can check if your server has memcache enabled with the PHP function phpinfo(). For more infomation about memcache module in PHP, please refer: PHP: Memcached Manual

2. Download the memcached WordPress plugin, you can download the plugin via SVN tools, the SVN URL is http://svn.wp-plugins.org/memcached/trunk/

3. Copy the two files object-cache.php and memcached-client.php to the directory wp-content ( not the plugin directory ) in your server.