Title: Plug hack?
Last modified: August 18, 2016

---

# Plug hack?

 *  [Ayla](https://wordpress.org/support/users/ayla/)
 * (@ayla)
 * [22 years ago](https://wordpress.org/support/topic/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)

1 [2](https://wordpress.org/support/topic/plug-hack/page/2/?output_format=md) [→](https://wordpress.org/support/topic/plug-hack/page/2/?output_format=md)

 *  [Sushubh](https://wordpress.org/support/users/sushubh/)
 * (@sushubh)
 * [22 years ago](https://wordpress.org/support/topic/plug-hack/#post-41653)
 * define plug? am i missing a point here?
 *  Thread Starter [Ayla](https://wordpress.org/support/users/ayla/)
 * (@ayla)
 * [22 years ago](https://wordpress.org/support/topic/plug-hack/#post-41654)
 * sorry, link the people who comment on my site.
 *  [Sushubh](https://wordpress.org/support/users/sushubh/)
 * (@sushubh)
 * [22 years ago](https://wordpress.org/support/topic/plug-hack/#post-41656)
 * u want to approve all the comments that people put on ur site?
 *  [skybly](https://wordpress.org/support/users/skybly/)
 * (@skybly)
 * [22 years ago](https://wordpress.org/support/topic/plug-hack/#post-41657)
 * I think you’re looking for the [Comment Plugger](http://wiki.wordpress.org/index.php/Comment%20Plugger)
   🙂
 *  [Sushubh](https://wordpress.org/support/users/sushubh/)
 * (@sushubh)
 * [22 years ago](https://wordpress.org/support/topic/plug-hack/#post-41658)
 * darn, i feel dumb…
 *  Thread Starter [Ayla](https://wordpress.org/support/users/ayla/)
 * (@ayla)
 * [22 years ago](https://wordpress.org/support/topic/plug-hack/#post-41666)
 * Naw, I didn’t describe it well.
    Thanks for the link Skybly, I’ll check it out.
 *  Thread Starter [Ayla](https://wordpress.org/support/users/ayla/)
 * (@ayla)
 * [22 years ago](https://wordpress.org/support/topic/plug-hack/#post-41691)
 * 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..?
 *  Thread Starter [Ayla](https://wordpress.org/support/users/ayla/)
 * (@ayla)
 * [22 years ago](https://wordpress.org/support/topic/plug-hack/#post-41698)
 * 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?
 *  [ludvig87](https://wordpress.org/support/users/ludvig87/)
 * (@ludvig87)
 * [22 years ago](https://wordpress.org/support/topic/plug-hack/#post-42316)
 * 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.'](https://wordpress.org/support/topic/plug-hack/"&apos;.$commenter-?output_format=md)';}}}
   if (is_array($output)) { echo implode($sep, $output); } else { echo $none; } }
   It works…. Im using it.. Though I have problems now…
 *  [tl922](https://wordpress.org/support/users/tl922/)
 * (@tl922)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/plug-hack/#post-42414)
 * 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)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/plug-hack/#post-42415)
 * Please search for “headers already sent” or “whitespace issue”
 *  Anonymous
 * [21 years, 9 months ago](https://wordpress.org/support/topic/plug-hack/#post-42416)
 * 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.
 *  Anonymous
 * [21 years, 9 months ago](https://wordpress.org/support/topic/plug-hack/#post-42417)
 * got it thanks folks
 *  [juliecookies](https://wordpress.org/support/users/juliecookies/)
 * (@juliecookies)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/plug-hack/#post-42438)
 * 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?
 *  [ourlovesong](https://wordpress.org/support/users/ourlovesong/)
 * (@ourlovesong)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/plug-hack/#post-42456)
 * 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)

1 [2](https://wordpress.org/support/topic/plug-hack/page/2/?output_format=md) [→](https://wordpress.org/support/topic/plug-hack/page/2/?output_format=md)

The topic ‘Plug hack?’ is closed to new replies.

 * 20 replies
 * 12 participants
 * Last reply from: [sopheropherez](https://wordpress.org/support/users/sopheropherez/)
 * Last activity: [20 years, 10 months ago](https://wordpress.org/support/topic/plug-hack/page/2/#post-42472)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
