Top commenter plug in help

Discussion in 'Blogging' started by budc, Feb 1, 2008.

  1. #1
    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?
     
    budc, Feb 1, 2008 IP
  2. mann3r

    mann3r Peon

    Messages:
    1,416
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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>
     
    mann3r, Feb 1, 2008 IP
  3. budc

    budc Peon

    Messages:
    166
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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 } ?>
     
    budc, Feb 1, 2008 IP
  4. mann3r

    mann3r Peon

    Messages:
    1,416
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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
     
    mann3r, Feb 1, 2008 IP