I am using another plugin that requires readers to be logged in. (I'm using WordPress as an internal wiki collaboration tool). I was having problems getting the database to populate, but I finally got it to work, so I thought I'd post my solutions.
First, I had to include
<? wp_head(); ?> in the theme file header.php before the
Secondly, this plugin is designed to record only page views of non-logged-in users (and for fair enough reasons, though it makes the plugin completely inept for my purposes). So a little code editing was in order:
First, make the update fire on different hook (namely one that doesn't require non-logged-in status) Change code on line 54 of wordpress-popular-posts.php
add_action('wp_ajax_nopriv_wpp_update', array(&$this, 'wpp_ajax_update'));
add_action('wp_ajax_wpp_update', array(&$this, 'wpp_ajax_update'));
Second, remove the requirement in wpp_ajax_update() that the user be logged out. So on line 337 of the same file, change the conditional
if (! wp_verify_nonce($nonce, 'wpp-token') && !is_user_logged_in() ) die("Oops!");
if (! wp_verify_nonce($nonce, 'wpp-token') ) die("Oops!");
Just wanted to share! Great plugin.