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

Products: Gossamer Forum: Development, Plugins and Globals: Re: [backdream] [NEW] Karma Plugin (well newish): Edit Log

Here is the list of edits for this post
Re: [backdream] [NEW] Karma Plugin (well newish)
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

Edit Log: