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

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?
#2
Open ./admin/myps.php

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

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

After you've changed it and uploaded the file; do a recount.
Note: Untested;
#3
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.
#4
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 128,207 Dec 02, 2008, 03:49 AM
Last Post: nhoss2
  Points per user group fsd 5 3,686 May 17, 2008, 01:41 PM
Last Post: ts0ll
  Edit "points" Formatting mikeyz54 0 1,974 May 06, 2008, 08:42 AM
Last Post: mikeyz54
  Points for Products Shooter 2 2,490 Nov 26, 2007, 05:35 PM
Last Post: labrocca
  Center the " Points: 0 (Edit)" incadudeF 14 5,887 Sep 27, 2007, 07:03 PM
Last Post: dolun_ay

Forum Jump:


Users browsing this thread: 1 Guest(s)