boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Automatic Plugger

 
Post new topic   Reply to topic    boardom Forum Index -> Hacks
View previous topic :: View next topic  
Author Message
TaintedPunk27



Joined: 14 Sep 2003
Posts: 5

PostPosted: Sun Oct 19, 2003 2:43 am    Post subject: Automatic Plugger Reply with quote

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
View user's profile Send private message
moose



Joined: 04 May 2003
Posts: 196
Location: Winnipeg Canada

PostPosted: Sun Oct 19, 2003 2:55 am    Post subject: Re: Automatic Plugger Reply with quote

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
View user's profile Send private message Visit poster's website
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Sun Oct 19, 2003 2:59 am    Post subject: Reply with quote

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
View user's profile Send private message
TaintedPunk27



Joined: 14 Sep 2003
Posts: 5

PostPosted: Sun Oct 19, 2003 5:05 pm    Post subject: Re: Automatic Plugger Reply with quote

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
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Sun Oct 19, 2003 6:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
moose



Joined: 04 May 2003
Posts: 196
Location: Winnipeg Canada

PostPosted: Mon Oct 20, 2003 1:44 am    Post subject: Reply with quote

yeah, I don't think Dodo is working on it anymore, but I can't be sure.
Back to top
View user's profile Send private message Visit poster's website
phreak



Joined: 13 Oct 2002
Posts: 7
Location: philippines

PostPosted: Wed Nov 05, 2003 9:25 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
lilphil480



Joined: 30 Nov 2002
Posts: 19

PostPosted: Wed Nov 05, 2003 1:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Christina



Joined: 11 Nov 2002
Posts: 5
Location: in your pants

PostPosted: Thu Nov 06, 2003 3:51 am    Post subject: Reply with quote

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. Smile

[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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Hacks All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group