• Resolved doniboy

    Not real familiar with WP yet, so alert me of any problems.
    Download
    wp_comment_leaders
    Tag
    <?php get_comment_leaders(); ?>
    Arguments Definition:

    1. A number that limits the amount of records that are to be shown. (default’s ‘5’)
    2. A string that excludes certain names from appearing in the list. Separate multiple names with a comma.
    3. A number: pads the visitor’s total comment count with zeros.
    4. A string to display before the record.
    5. A string to display after the record. (default is a line break ‘
      ‘)
    6. Example
      <?php get_comment_leaders( 10, "admin_name, spammer_name", 3, '

    7. ', '
    8. '); ?>

Viewing 9 replies - 31 through 39 (of 39 total)
  • Thread Starter Anonymous

    Thanks good job.

    Excellent. And so easy to add. Thank you! 🙂

    Daisyhead, you would be correct. I don’t believe in popupwindows, so for me it isn’t a problem.
    As for your second query. Sure, you might need to go into the code, and add what ever HTML you want around it (like list itels (li tags) or line breaks (br tags).
    TG

    I’ve tried tweaking the code to make my output look like this:

    Jess – 184 total
    last commented: (date of last comment)
    on entry: (entry title last commented on w/link to entry)

    But when I start messing with it, it throws errors. Can anyone cheat for me and post what the actual code would look like to get my output to look like what’s above? Pwetty pwease??
    Thanks,
    Daisyhead

    I just tried both links in this thread for this script/plugin. Neither one worked. I wanted to add this to my blog. I was gonna try to come up with it myself, but if it’s already been done, then there’s no need to reinvent the wheel.
    If anyone can point me to the updated script/plugin, I’d be eternally greatful.

    Thread Starter Anonymous

    Hi,
    Pardon my ignorance, but is this a plugin or do I need to make a my-hacks.php file?
    Sorry for my lack of knowledge…
    Thanks.

    Yes, I’m wondering if this is a hack file or a plugin to be used for 1.2. It seems like a hack file. Will this be made into a plugin?

    Thread Starter Anonymous

    ditto to what debwire said 🙂

Viewing 9 replies - 31 through 39 (of 39 total)

The topic ‘Comment Leader Hack’ is closed to new replies.