I have the top commenter plug in installed in the footer and it is working okay but I am having some issues with the comment count resetting after the month ends. The code is: <?php if(function_exists('ns_show_top_commentators')) { ?> <li> <h2>Top Commentators</h2> <ul><?php ns_show_top_commentators(); ?></ul> </li> <?php } ?> The tag to reset the comments is reset (’hourly’, ‘daily’, ‘weekly’, ‘monthly’, ‘yearly’, ‘#’, ‘all’). I tried changing it to: <?php if(function_exists('ns_show_top_commentators')) { ?> <li> <h2>Top Commentators</h2> <ul><?php ns_show_top_commentators(reset monthly); ?></ul> </li> <?php } ?> When I do that it breaks the code. What is the right way to use the reset comments?
you dont need to put that reset monthly, show_top_commentator.php, it should say $ns_options = array( "reset" => "monthly", //reset hourly, daily, weekly, monthly, yearly, all OR # (eg 30 days) and no more on that <ul><?php ns_show_top_commentators(); ?></ul>
Ahh I see so it should be <?php if(function_exists('ns_show_top_commentators')) { ?> <li> <h2>Top Commentators</h2> <ul><?php ns_show_top_commentators(monthly); ?></ul> </li> <?php } ?>
no, it should be <?php if(function_exists('ns_show_top_commentators')) { ?> <li> <h2>Top Commentators</h2> <ul><?php ns_show_top_commentators(); ?></ul> </li> <?php } ?> because you already declare monthly on the show_top_commentator.php