Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bnovotny

    (@bnovotny)

    The math starts on line 479 of the user-registration-aide-registrationForm.php file. I tried to keep it simple enough, however the random numbers sometimes come up weird. You can modify the numbers and functions there. For the repeating decimal, it should be classified that it can be rounded up to the nearest first decimal, so 1.333 would be 1.3 and such.

    If you want you can remove the division section altogether to avoid the problem with decimals, just change the variable $o = rand(1,4); to $o = $rand(1,3); seeing as 4 would create a division problem as the operator (+, -. * & /) are also random.

    Plugin Author bnovotny

    (@bnovotny)

    By the way I am working on an update now and will add something so that you can adjust that from the admin menu for the next release instead of hacking the code, and will see about simplifying it some more. Thanks for the input by the way, appreciate it.

    Thread Starter livninctry

    (@livninctry)

    Thank you for the quick response…

    Plugin Author bnovotny

    (@bnovotny)

    I added the options to adjust which math operators to use and made the random numbers smaller in the latest update so I would like mark this as resolved if that is okay.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Math Question’ is closed to new replies.