Stories
Slash Boxes
Comments

Slash Open Source Project

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.
  • 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.

    --
    lottadot [lottadot.com]
    • I'd actually set this to "1.0" a while ago, to no effect. I just set it to 100 to see if that makes a difference...
      • by froomkin (2074) on Monday November 18 2002, @09:33PM (#5431) Journal
        So far, nada...
        • here's a thought:

          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...
        • #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

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