View previous topic :: View next topic |
Author |
Message |
TaintedPunk27
Joined: 14 Sep 2003 Posts: 5
|
Posted: Sun Oct 19, 2003 2:43 am Post subject: Automatic Plugger |
|
|
Is there a hack that automatically plugs commentors that I could download from somewhere? I have the hack by dodo installed but you have to manually enter the commentors. |
|
Back to top |
|
 |
moose
Joined: 04 May 2003 Posts: 196 Location: Winnipeg Canada
|
Posted: Sun Oct 19, 2003 2:55 am Post subject: Re: Automatic Plugger |
|
|
TaintedPunk27 wrote: | Is there a hack that automatically plugs commentors that I could download from somewhere? I have the hack by dodo installed but you have to manually enter the commentors. |
no you don't. you installed dodo's comments plugger right? then you don't. |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Sun Oct 19, 2003 2:59 am Post subject: |
|
|
Is it that hard to copy & paste?
Since there's already a great hack for plugging commenters, I doubt many will jump at the chance to make it automated. _________________ No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there. |
|
Back to top |
|
 |
TaintedPunk27
Joined: 14 Sep 2003 Posts: 5
|
Posted: Sun Oct 19, 2003 5:05 pm Post subject: Re: Automatic Plugger |
|
|
moose wrote: | TaintedPunk27 wrote: | Is there a hack that automatically plugs commentors that I could download from somewhere? I have the hack by dodo installed but you have to manually enter the commentors. |
no you don't. you installed dodo's comments plugger right? then you don't. |
You don't have to do it by hand then? You have to enter it all in the comment plugger window though. I want one that just names the commenters automatically. |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Sun Oct 19, 2003 6:51 pm Post subject: |
|
|
Have you ever used it? All you have to do is open the b2commenter.plugger.php page and copy & paste the names into an entry or whatever.
The hack does the HTML for you, and sorts them alphabetically if you want, and all you do is copy & paste. It probably won't make it to the automated stage. _________________ No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there. |
|
Back to top |
|
 |
moose
Joined: 04 May 2003 Posts: 196 Location: Winnipeg Canada
|
Posted: Mon Oct 20, 2003 1:44 am Post subject: |
|
|
yeah, I don't think Dodo is working on it anymore, but I can't be sure. |
|
Back to top |
|
 |
phreak
Joined: 13 Oct 2002 Posts: 7 Location: philippines
|
Posted: Wed Nov 05, 2003 9:25 am Post subject: |
|
|
What can you say about my autoplugs?
Check out my site http://acidic.xyboi.org
I got this code from the b2stats and modified it. Here it is:
Quote: |
<?
$query = "SELECT ID, comment_author, comment_author_url, comment_date FROM $tableposts, $tablecomments WHERE $tableposts.ID=$tablecomments.comment_post_ID ORDER BY $tablecomments.comment_date DESC LIMIT 5";
$result = mysql_query($query);
while ($data = mysql_fetch_row($result)) {
echo "<a href=\"$data[2]\" target=\"_blank\">$data[1]</a>\n";
}
?>
|
Just copy and paste the code directly to where you want the autoplugs to be placed on your b2 blog. Just change number 5 to the desired number of commenters to be autoplugged!
You can also alter the echo string to change your <html>. Just be careful! _________________ pH 2 is still acidic.
What if God was one of us?
I am a superman. |
|
Back to top |
|
 |
lilphil480
Joined: 30 Nov 2002 Posts: 19
|
Posted: Wed Nov 05, 2003 1:09 pm Post subject: |
|
|
phreak, your code only plugs the most recent commenters, I was looking at some older enrtys and the same exact plugs were listed below each one. _________________ It has so many choices! |
|
Back to top |
|
 |
Christina
Joined: 11 Nov 2002 Posts: 5 Location: in your pants
|
Posted: Thu Nov 06, 2003 3:51 am Post subject: |
|
|
I only have a hack for it on Wordpress. It shows all of the previous commenters (entry before), but it can be easily changed to the current commenters by changing ($id - 1) to just $id. I haven't used b2 in a year, so I am unfamiliar with its code. I guess you can get the main idea from the code below though.
[php:1:edb18a0fc2]function comment_plugger() {
global $wpdb, $tablecomments, $id;
$request = 'SELECT DISTINCT comment_author_url, comment_author FROM '.$tablecomments;
$request .= ' WHERE comment_post_ID='.($id - 1).' AND comment_author != \'\' AND comment_author_url != \'\'';
$request .= ' ORDER BY comment_author ASC';
$commenters = $wpdb->get_results($request);
if ($commenters) {
foreach ($commenters as $commenter) {
$output[] = '<a href="'.$commenter->comment_author_url.'" title="'.$commenter->comment_author.'">'.$commenter->comment_author.'</a>';
}
echo '<p>Previous Commenters: ';
echo implode(', ', $output);
echo '</p>';
}
}[/php:1:edb18a0fc2] _________________ PHP is almost as sexy as me! |
|
Back to top |
|
 |
|