CountPosts v 1.0 - WordPress Plugin


Latest Version: CountPost 2.0
CountPosts V 2.0 a for latest WordPress versions from 2.5 to 2.6.2
Now it don’t count post from all users with user-level 8, (admin permissions), so it will not count visits from whole admin team, not just one admin person like older version

CountPosts V 1.1 Beta for WP 1.5

CountPosts V 1.1 Beta for WP 2.0

CountPosts is plugin for WordPress Blog. It’s very easy to install and use.

This plugin count visits on your blog, but not when u are log-in as admin. Also count visits for every post separated, and u know in every moment how many people read your posts. U can see what is the most read post in your blog. Also when u read your posts, CountPost won’t count your visits.

CountPost make u list of the most read post, with hits for every post separated.

Installation:

1) Add CountPost.php in Plugin folder
2) In Plugins section, click on the activate button for CountPost plugin
3) Add

  1. <?php HitThisPost(‘Hits for this post:’, ); ?>;

in index.php or single.php (It depending of your Theme you using) somewhere before comments or where ever you like. First and second attribute can be changed.
4) Add

  1. <?php mainCounter(‘Visits: : ‘, ‘ .’); ?>

in sidebar.php First attribute is print before visits number, and second is after visits number
5) Add

  1. <?php TopHitsList(); ?>

somewhere when u want to show top list of read posts.

Using TopHitsList(); function

  1. <?php function TopHitsList($beforeRead = ‘ (’, $afterRead = ‘ ).’, $top = 5, $beforeAll = ‘<ul>’, $beforeLink =‘<li>’,
  2. $afterLink = ‘</li>’);
  1.  
  2. <?php
  3. function TopHitsList($beforeRead = ‘ (’, $afterRead = ‘ ).’, $top = 5, $beforeAll = ‘<ul>’, $beforeLink =‘<li>’,$afterLink = ‘</li>’);
  4.  
  5.  
  6. /*$beforeAll - print before all.
  7. $afterAll - print after all.
  8. $beforeLink - print before post link.
  9. $beforeRead - print after post link and before hits.
  10. $afterRead - print after hits.
  11. $afterLink - print after $afterRead*/
  12. ?>
  13.  

Sample of using TopHitsList() function

  1.  
  2. <?php
  3. //in unnumbered list
  4. TopHitsList(‘ Read  ’,‘  times.’, $top = 5,  ‘<ul>’, ‘<li>’, ‘</li>’, ‘</ul>’);
  5.  
  6. //in numbered list
  7.  
  8. TopHitsList(‘ Read  ’,‘  times.’, $top = 5,  ‘<ol>’, ‘<li>’, ‘</li>’, ‘</ol>’);?>

Output will be something like this:
POST NAME1 Read 12 times.
POST NAME2 Read 34 times.

Older version problems:

  • Version 1.0 don’t work if your blog use Revrite Rule. Now it works even if your link structure looks like this : www.yourblog.com/blog/2006/04/04/sample-post/
  • When activate some other plugin, you had error: WordPress database error: [Duplicate column name ‘post_hits’] . This error wasn’t making any problems, but it was annoying.

Download Latest version:
Download CountPost for WordPress 1.5

Download CountPost for WordPress 2.0

Update 5. April 2006
New version 1.1 Beta is hire. I fixed some bugs in 1.0 version:

If u have any problems, suggestions for this plugin contact me.

LošeMože da prođeSolidnoOkFenomenalno (72 votes, average: 4.11 out of 5)
Loading ... Loading ...