REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recount points?

I have set it so there is a 150 character min and I recounted all forum points and people even get points for posts under 150 characters.

How do I get it so it resets so they only get the points for posts over 150 characters?
Open ./admin/myps.php

PHP Code:
                $meslength += strlen($message); 

Add Above
PHP Code:
                if(my_strlen($message) < intval($mybb->settings['myps_minchar']))

After you've changed it and uploaded the file; do a recount.
Note: Untested;
There should probably be those if statements above a lot of the recount variables, since I noticed long ago that the recount doesn't take into account many of the exceptions and minimum settings. For example the groups that aren't supposed to be able to earn MYPS. They will during a recount.
Yeah it will totally be rewritten for mybb 1.4. There will be a lot of optimizing. It's hard to write code you know will need to be redone for 1.4.

Possibly Related Threads...
Thread Author Replies Views Last Post
  MYPS (a mybb points system) labrocca 223 142,301 Dec 02, 2008, 03:49 AM
Last Post: nhoss2
  Points per user group fsd 5 4,177 May 17, 2008, 01:41 PM
Last Post: ts0ll
  Edit "points" Formatting mikeyz54 0 2,101 May 06, 2008, 08:42 AM
Last Post: mikeyz54
  Points for Products Shooter 2 2,742 Nov 26, 2007, 05:35 PM
Last Post: labrocca
  Center the " Points: 0 (Edit)" incadudeF 14 6,713 Sep 27, 2007, 07:03 PM
Last Post: dolun_ay

Forum Jump:

Users browsing this thread: 1 Guest(s)