This was just discussed, but for the life of me, I can't remember where. Maybe here, in another story, or probably on IRC or on one of the slash mailing lists.
Anyway, I think the thing you need to do, if my memory is working correctly, is change the var 'm2_userpercentage' to '1' or something larger.
The description of the var: "UID must be below this percentage of the total userbase to metamoderate"
Try it and see if the frequency that users are offered metamod's increases or not, and post back here your results.
#HERE IS THE RELEVANT CODE I THINK WITH SOME COMMENTS ADDED IN TO SHOW WHAT THE IMPORTANT VARIABLES ARE
sub checkForMetaModerator {
my($self, $user) = @_; #SO HERE ARE THE IMPORTANT FACTORS
#USER IS WILLING TO MODERATE
return unless $user->{willing};
#USER IS NOT ANON
return if $user->{is_anon} || $user->{rtbl};
#USER HAS POSITIVE KARMA GREATER THAN 0
return if $user->{karma} < 0;
#USER HAS NOT METAMODERATED TODAY
my($d) = $self->sqlSelect('to_days(now()) - to_days(lastmm)',
'users_info', "uid = '$user->{uid}'");
return unless $d;
my($tuid) = $self->sqlSelect('max(uid)', 'users_count');
# USER ID IS LESS THAN HIGHEST USER ID MULTIPLIED
# BY THE m2_userpercentage var
return if $user->{uid} >
$tuid * $self->getVar('m2_userpercentage', 'value');
return 1; # OK to M2 }
So, if you have 100 users and they all have positive karma and all are willing
if your m2_userpercentage is.5
100 *.5 = 50 so any user under id # 50 will get metamod
This was just discussed (Score:2)
Anyway, I think the thing you need to do, if my memory is working correctly, is change the var 'm2_userpercentage' to '1' or something larger.
The description of the var: "UID must be below this percentage of the total userbase to metamoderate"
Try it and see if the frequency that users are offered metamod's increases or not, and post back here your results.
lottadot [lottadot.com]
Re:This was just discussed (Score:1)
Re:This was just discussed (Score:1)
Parent
Re:This was just discussed (Score:1)
metamod is only given to users that have karma greater than 0
so if you check the users_info db table you can check how many of your users have karma more than 0
if most of your users still have 0 karma then manually increase their karma via mysql command line.
Might not work, but worth a try i guess...
Re:This was just discussed (Score:1)
and some more thoughts (Score:1)
sub checkForMetaModerator {
my($self, $user) = @_;
#SO HERE ARE THE IMPORTANT FACTORS
#USER IS WILLING TO MODERATE
return unless $user->{willing};
#USER IS NOT ANON
return if $user->{is_anon} || $user->{rtbl};
#USER HAS POSITIVE KARMA GREATER THAN 0
return if $user->{karma} < 0;
#USER HAS NOT METAMODERATED TODAY
my($d) = $self->sqlSelect('to_days(now()) - to_days(lastmm)',
'users_info', "uid = '$user->{uid}'");
return unless $d;
my($tuid) = $self->sqlSelect('max(uid)', 'users_count');
# USER ID IS LESS THAN HIGHEST USER ID MULTIPLIED
# BY THE m2_userpercentage var
return if $user->{uid} >
$tuid * $self->getVar('m2_userpercentage', 'value');
return 1; # OK to M2
}
So, if you have 100 users and they all have positive karma and all are willing
if your m2_userpercentage is
100 *
so any user under id # 50 will get metamod
if your m2_userpercentage is 1
100 * 1 = 100
so no users will get metamod
So...
if m2_userpercentage is 0
100 * 0 = 0
so every user other than anon would get metamod
I THINK....
egads I made some mistakes there (Score:1)
if m2_percentage is 0
then no one gets metamod as no one is lower than 0 but anon
blah. sorry