Archive for the ‘Plugin’ Category

Regular Readers Plugin for WordPress

05.29.2008 by Denis - 0 Comment
Posted in Plugin

Regular Readers Plugin can help you to check if current reader of your blog is a regular reader or not. And it can disply the following information in the footer of your WordPress blog:

  • How many times the reader has visited your blog,
  • and when did he visit your blog last time

After the plugin is uploaded and actived, you can add the following function in your template to display different information to regular reader and fresh reader:

<?php
if(is_regular()){
    //display something to regular reader
}else{
    //display something to fresh reader
}
?>

The plugin is base on these two fatar to determine the regular reader: the times reader has visited your blog, the time period between last time and now. So you can edit the two parameters in the begin of the plugin:$regular_time$regular_interval

Download: regular_readers.zip

Where did they go from here? Mod

05.27.2008 by Denis - 1 Comment
Posted in Plugin

Where did they go from here? is a awesome plugin. It generats a list of posts that readers who read the current post also read. But there is a small bug in the plugin. It records the Pages. I don’t think it is a good idea. Because every page in blog have the static Pages’ links. There will be lots of Page links added to the lists generated.

I have made a small modification to the plugin so that it only records posts. Automatic inserting the list before comment form is also disabled. You need to add the function show_where_they_go() in the single.php file of your WordPress Theme.

Installation of this plugin is very simple. You only need to upload the plugin to your WordPress plugin directory and active it. If the visitor history has not been shown after installation, please check if footer.php file of your theme has the function <?php wp_footer(); ?>

Download the plugin: Where did they go from here

AideRSS WordPress Plugin

05.26.2008 by Denis - 2 Comments
Posted in Plugin

AideRSS is a service that helps you to prioritize news feeds based on the amount of social activity around them. Using an algorithm called PostRank, which tracks the number of comments, Digg votes, del.icio.us bookmarks and more, it will process any feed you enter and spit out feeds of All Posts, Good Posts, Great Posts, Best Posts and the Top 20.

AideRSS has released API and PHP Class. Base on the PHP Class, I created a simple WordPress plugin which can display the top posts in the specified time period.

After the plugin is uploaded and actived, you can add the following function in your template:

<ol>
	aide_get_top_posts('month',10);
</ol>

There are two parameters for the function:
period=[day|week|month|year|auto|length in seconds] : The period to return posts from.
num=[1-30] : The number of posts to return.

Dowload: wp-aiderss.zip

Advanced Post Image Plugin

04.23.2008 by Denis - 2 Comments
Posted in Plugin

This is the second plugin I’ve developed. It isn’t as popular as the WordPress Related Posts plugin, but it has been downloaded over a thousand times.

The Advanced Post Images plugin can generate thumbnails of the first image of the latest (number is set by user) posts and then links back to the them.

Installation and Usage

  1. Upload the advanced-post-image.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php get_post_image_list(); ?> in your templates
  4. Create the folder thumb under the directory wp-content/uploads/ (set to 777)

If you want to control the number of thumbnails and the thumb image’s width and height, you can use the following four parameters in the function <?php get_post_image_list(); ?>

$image_number = 10 // the image number, default is 10
$thumb_width = 50 // the thumb image’s width, default is 50px
$thumb_height = 50 // the thumb image’s height, default is 50px
$type = recent // the list’s type, “recent” displays latest post’s image while “random” display random post’s image

You can use the ul.post-image-list CSS selector to style the images list.

Download: Advanced Post Image Plugin

Demo

To see the plugin in action, click over to HoneyPiggy and scroll to the bottom. All those little images you see link to blog posts.