WordPress.org

Ready to get started?Download WordPress

Forums

Removing my url in the auto commenters plug (1 post)

  1. Truth
    Member
    Posted 9 years ago #

    I've recently installed the threaded comments, so when I replied to a comment, I got plugged too and if I replied 3 times, there will be 3 of the same links. Is there a way to prevent the auto commenters plug from plugging me?

    The auto commenters code in my-hacks.php

    <?php

    /* Auto commentor plug */

    function comment_plugger($before = '', $limit = 100, $sep = ', ') {
    global $wpdb, $tablecomments, $id;
    $request = "SELECT comment_author, comment_author_url, MAX(comment_ID) as comment_ID FROM $tablecomments";
    $request .= " WHERE comment_post_ID='$id' AND comment_approved = '1' GROUP BY comment_author, comment_author_url ORDER BY comment_ID DESC";
    $request .= ($limit > 0) ? " LIMIT $limit" : '';
    $commenters = $wpdb->get_results($request);

    if ($commenters) {
    $output = '';
    foreach ($commenters as $commenter) {
    if (!empty($commenter->comment_author_url)) {
    $output[] = 'comment_author_url . '" title="' . $commenter->comment_author . '">' . $commenter->comment_author . '';
    }
    else {
    $output[] = $commenter->comment_author;
    }
    }

    if (is_array($output)) {
    echo $before.implode($sep, $output);
    }
    } else {
    echo "None.";
    }
    }

    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.