Install post-view plus plugin in WordPress

Two modification in  Themes of Twentyeleven, which used by this blog:

List most top 10 articles of blog,  add following into the index.php

<?php if (function_exists(‘get_most_viewed’)): ?>
<ul>
<?php get_most_viewed(); ?>
</ul>
<?php endif; ?>

View count for each article,   add following code into content.php

<span>
<?php if(function_exists(‘the_views’)) { the_views(); } ?>
</span>
<span class=”sep”> | </span>

Hide Godaddy AD in the front of wordpress

Add the following code into wp-includesgeneral-template.php:

function wp_footer() {
    /*
    Hide AD
    echo ‘<style>#conash3D0 {display:none}</style>’;
    */
    $lang = explode(‘,’,strtolower($_SERVER[‘HTTP_ACCEPT_LANGUAGE’]));
  if($lang[0]==’zh-cn’) { echo ‘<style>#conash3D0 {display:none}</style>’; }
  unset($lang);

    do_action(‘wp_footer’);
}

 

http://429006.com/article/technology/2132.htm

Setup WordPress AT Godaddy Free Space

  1. Create linux free space at godaddy
  2. Lunch the controller of free space
  3. Add the specified domain for free space.    eg:     host.zhenglei.net
  4. Create FTP User for Free Space
  5. Creat mysql database for woodspace,and record the info from edit/viewer
  6. Delete all default in free space
  7. Download latest wordpress from http://wordpress.org/, unzip/untar, and ftp all contents to the root of free space
  8. Launch the installation from web site:  http://host.zhenglei.net/wp-admin/install.php
  9. Finish the step 2 of installation