Support » Plugins » Plug hack?

  • I’m curious if there is a hack for plugs? Like on my blog I plug ppl who comment and it’s kinda annoying sometimes..so just curious if there is one for wp?

Viewing 15 replies - 1 through 15 (of 20 total)
  • define plug? am i missing a point here?

    sorry, link the people who comment on my site.

    u want to approve all the comments that people put on ur site?

    I think you’re looking for the Comment Plugger 🙂

    darn, i feel dumb…

    Naw, I didn’t describe it well.
    Thanks for the link Skybly, I’ll check it out.

    Ok, question? I can’t get it to work? I put the info into my-hack files and the other thing..I just get an error at the top of my page..?

    Nm. I got it to work..but, is there any way to get them to plug comments from the previous entry instead of the current entry?

    Replace the code you already have with this one:
    function comment_plugger($show = 1, $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;
    }
    }

    It works…. Im using it.. Though I have problems now…

    I’m also looking for this code, I used the one above ^^ and it worked, but when I go to /wp-admin it says
    Warning: Cannot modify header information – headers already sent by (output started at /home/eflorese/public_html/blog/my-hacks.php:3) in /home/eflorese/public_html/blog/wp-admin/auth.php on line 37
    Warning: Cannot modify header information – headers already sent by (output started at /home/eflorese/public_html/blog/my-hacks.php:3) in /home/eflorese/public_html/blog/wp-admin/auth.php on line 38
    Warning: Cannot modify header information – headers already sent by (output started at /home/eflorese/public_html/blog/my-hacks.php:3) in /home/eflorese/public_html/blog/wp-admin/auth.php on line 39
    Warning: Cannot modify header information – headers already sent by (output started at /home/eflorese/public_html/blog/my-hacks.php:3) in /home/eflorese/public_html/blog/wp-admin/auth.php on line 40
    Warning: Cannot modify header information – headers already sent by (output started at /home/eflorese/public_html/blog/my-hacks.php:3) in /home/eflorese/public_html/blog/wp-admin/auth.php on line 45
    Any suggestions?

    Mark (podz)

    (@podz)

    Support Maven

    Please search for “headers already sent” or “whitespace issue”

    sorry im totally new to wordpress. i dont get it. I followed the step by step instruction in activating and creating the hack file, and the instruction here to get the commentor plugin running. Now after placing the <?php comment_plugger(); ?> right after the the line in your index.php that contains the call to the comments_popup_link function call, what shall i do next? Why is it that my commenters are not plugged? Also, how would i fix my page in such a way that the plug will appear at the bottom of my blog/entry?
    Please help.

    got it thanks folks

    But this comment plug hack only plugs the last __ comments. What if I want to plug the people who commented on the last entry, is there a way to do this?

    I get this error:

    Fatal error: Call to undefined function: comment_plugger() in /home/iheartu/public_html/wordpress/index.php on line 48

    What should I do?

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Plug hack?’ is closed to new replies.