Monday, December 17, 2007

WordPress Plugin: WP-PostViews JavaScript Edition

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.

13 comments:

  1. 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. =]

    ReplyDelete
  2. 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 :)

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

    ReplyDelete
  4. The problem is that lots of posts went back to "1 view" and it doesn't change anymore, so I restored the original plugin.

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

    ReplyDelete
  6. 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].

    ReplyDelete
  7. It comes up with bunch of errors :(

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

    ReplyDelete
  8. 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 ')

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

    ReplyDelete
  10. 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.

    ReplyDelete
  11. I've uninstall your plugin.
    Thanks for sharing.
    Now, I restored the original plugin.

    ReplyDelete
  12. I have bookmarked this informativ site. Thanks Kfz Versicherung

    ReplyDelete
  13. seems interesting enough
    i can not wait to try it

    ReplyDelete