Viewing 2 replies - 1 through 2 (of 2 total)
  • kristin

    (@kristin)

    can you post the code for the comment hack

    Thread Starter prettysenshi

    (@prettysenshi)

    I posted this at the very bottom of fuctions.php
    function comment_plugger($show = 0, $limit = 0, $sep = ‘, ‘, $none = ‘ none’) {
    global $wpdb, $tablecomments, $id;
    $cid = ($show) ? ($id – 1) : $id;
    $request = “SELECT DISTINCT comment_author_url, comment_author FROM $tablecomments”;
    $request .= ” WHERE comment_post_ID=’$cid’ AND comment_author <> ” AND comment_author_url <> ””;
    $request .= ‘ ORDER BY comment_author ASC’;
    $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.’‘;
    }
    }
    }
    if (is_array($output)) {
    echo implode($sep, $output);
    } else {
    echo $none;
    }
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comment Problem’ is closed to new replies.