Lester Chan develop a greate WordPress plugin - WP-PostViews, can enable user to display how many times a post/page had been viewed. It’s base on PHP. But if you active WP-Cache plugin, you will found that  WP-PostViews not working. So I develop a new javascript version of WP-PostViews, that can work fine with WP-Cache or WP Super Cache plugin.

Installation / Configuration Instructions:

1. Install normal version of WP-PostViews 1.20.

2. Upload postviews.php to your WordPress plugin directory(wp-content\plugins\postviews).

3. Upload wp-counter.php to your WordPress root directory.

4. Activate the WP-PostViews plugin.

Download Latest:

Click here to download the latest version of WP-PostViews JavaScript Version plugin.

Related posts


Comments

15 Responses to “WordPress Plugin: WP-PostViews JavaScript Edition”

  1. bramzero on December 26th, 2007 7:05 pm

    Hi, thanks for sharing this. Not exactly what i needed, but with little modification it works with my wordpress site which using wp-cache. Thanks again. =]

  2. garcon on February 5th, 2008 4:51 pm

    The plugin fix the under estimation of the views, but it count every single display from the same visitor. meaning that if I refresh the page 5 times it adds 5 views, if I go to the homepage it adds a view for EACH post !!! anyway to fix that easily ?

    Thanks for that plugin :)

  3. Jabba on February 11th, 2008 9:42 am

    Hi, I tried it and it doesn’t work for me. I’m using Wordpress 2.3.2 fixed (2.3.3 bugfix)

  4. Jabba on February 11th, 2008 10:05 am

    The problem is that lots of posts went back to “1 view” and it doesn’t change anymore, so I restored the original plugin.

  5. William Long on February 13th, 2008 5:16 am

    Do you follow the Installation / Configuration Instructions ? I install it ok.

  6. Old Dog on February 29th, 2008 6:38 pm

    HI,
    I haven’t used wordpress yet[near future] but i found your site very interesting and has given me food for thought.So I’m taking not of your domain for future reference,
    Thank you O,D.

    p.s.-I’m only using blogger as a test site to run a few ideas and run some tests, but I intend to link to my new site later[traffic].

  7. Michael Aulia on March 11th, 2008 9:16 pm

    It comes up with bunch of errors :(

    (invalid path to the required files? My blog is in a subdirectory)

  8. Michael Aulia on March 12th, 2008 3:52 pm

    The error message is:

    Warning: main(wp-config.php) [function.main]: failed to open stream: No such file or directory in /PATH_TO_MY_FOLDER/wp-content/plugins/wp-counter.php on line 11

    Warning: main() [function.include]: Failed opening ‘wp-config.php’ for inclusion (include_path=’.:/usr/lib/php’) in /PATH_TO_MY_FOLDER/wp-content/plugins/wp-counter.php on line 11

    Warning: main(wp-includes/wp-db.php) [function.main]: failed to open stream: No such file or directory in /PATH_TO_MY_FOLDER/wp-content/plugins/wp-counter.php on line 12

    Warning: main() [function.include]: Failed opening ‘wp-includes/wp-db.php’ for inclusion (include_path=’.:/usr/lib/php’) in /PATH_TO_MY_FOLDER/wp-content/plugins/wp-counter.php on line 12

    document.write (’ 1 views ‘)

  9. William Long on March 26th, 2008 5:04 am

    You should put wp-counter.php to your WordPress root directory.

  10. Rosyidi on April 20th, 2008 2:41 pm

    Thaks it’s great. But it’s not work on page :((
    And on some post there is always show “1 views”.
    I’ve already put wp-counter.php on my Wordpress root directory.

  11. Rosyidi on April 20th, 2008 4:37 pm

    I’ve uninstall your plugin.
    Thanks for sharing.
    Now, I restored the original plugin.

  12. Kfz Versicherung on October 5th, 2008 2:42 am

    I have bookmarked this informativ site. Thanks Kfz Versicherung

  13. fan on October 7th, 2008 8:45 am

    seems interesting enough
    i can not wait to try it