Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Re: [backdream] [NEW] Karma Plugin (well newish)

Quote Reply
Re: [backdream] [NEW] Karma Plugin (well newish) In reply to
I modify user.pm to solve it:

change :

$user->{user_title} ||= generate_user_title($user->{user_posts});

to :

my $karma = $DB->table('Post')->select( { user_id_fk => $user->{user_id} }, 'SUM(post_karma)' )->fetchrow;
$user->{user_title} ||= generate_user_title($karma + $user->{user_posts});

It can work , But does there a simple way or not to modify user.pm?

Last edited by:

backdream: Sep 2, 2002, 6:53 PM
Subject Author Views Date
Thread Post deleted by Paul Paul 12528 Aug 31, 2002, 12:44 PM
Thread Re: [Paul] [NEW] Karma Plugin (well newish)
backdream 12303 Aug 31, 2002, 9:19 PM
Thread Re: [backdream] [NEW] Karma Plugin (well newish)
Paul 12312 Sep 1, 2002, 2:39 AM
Post Re: [Paul] [NEW] Karma Plugin (well newish)
backdream 12283 Sep 1, 2002, 5:02 PM
Thread Re: [Paul] [NEW] Karma Plugin (well newish)
Paul 12289 Sep 2, 2002, 4:20 AM
Thread Re: [Paul] [NEW] Karma Plugin (well newish)
backdream 12297 Sep 2, 2002, 6:22 PM
Post Re: [backdream] [NEW] Karma Plugin (well newish)
backdream 12248 Sep 2, 2002, 6:52 PM
Post Re: [Paul] [NEW] Karma Plugin (well newish)
backdream 12271 Sep 3, 2002, 5:13 PM
Thread Re: [Paul] [NEW] Karma Plugin (well newish)
backdream 12250 Sep 4, 2002, 1:31 AM
Post Re: [backdream] [NEW] Karma Plugin (well newish)
backdream 12185 Sep 10, 2002, 5:11 PM
Thread Re: [Paul] [NEW] Karma Plugin (well newish)
Jag 12169 Sep 21, 2002, 4:51 AM
Thread Re: [Jag] [NEW] Karma Plugin (well newish)
hoefti 12101 Sep 21, 2002, 5:44 AM
Post Re: [hoefti] [NEW] Karma Plugin (well newish)
Jag 12136 Sep 21, 2002, 9:12 AM
Thread Re: [Jag] [NEW] Karma Plugin (well newish)
Paul 12184 Sep 21, 2002, 9:33 AM
Thread Re: [Paul] [NEW] Karma Plugin (well newish)
Jag 12172 Sep 21, 2002, 10:36 AM
Thread Re: [Jag] [NEW] Karma Plugin (well newish)
Paul 12129 Sep 21, 2002, 11:32 AM
Post Re: [Paul] [NEW] Karma Plugin (well newish)
shiner 12076 Oct 8, 2002, 1:07 PM
Thread Re: [Paul] [NEW] Karma Plugin (well newish)
shiner 12079 Oct 9, 2002, 8:44 AM
Thread Re: [shiner] [NEW] Karma Plugin (well newish)
Jag 12052 Oct 9, 2002, 9:37 AM
Post Re: [Jag] [NEW] Karma Plugin (well newish)
shiner 12009 Oct 9, 2002, 2:24 PM