Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

can't donate newpoints (error: wrong parameter)
#1

I keep getting this error when trying to donate newpoints:

[Image: arimavts.png]

The plugin worked fine before. I don't know since when this error first appeared.
#2

Please do some search, it's been posted numerous times.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#3

(02-28-2014, 12:59 AM)Pirata Nervo Wrote: Please do some search, it's been posted numerous times.

I can't find it! All I see is hundreds of threads where you write "Please do some search, it's been posted numerous times."

1. http://forums.mybb-plugins.com/Thread-Pl...rror--4470
2. http://forums.mybb-plugins.com/Thread-Im...ints-Error
3. http://forums.mybb-plugins.com/Thread-pr...-newpoints

etc.
#4

E.g. http://forums.mybb-plugins.com/Thread-Ne...ber_format
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#5

(02-28-2014, 02:07 AM)Pirata Nervo Wrote: E.g. http://forums.mybb-plugins.com/Thread-Ne...ber_format

This didn't solve the problem. Sad
#6

Can you please post line of code that you changed?
Jovan J.
MyBB Software Developer
#7

(02-28-2014, 05:35 AM)Jovan Wrote: Can you please post line of code that you changed?

I didn't change any specific line of code. I actually just uploaded the clean NewPoints 1.9.9 folder and re-activated the plugin.

The lines in question currently look like this:

inc/plugins/newpoints.php line 447-452
PHP Code:
function newpoints_format_points($points)
{
    global 
$mybb;
    
    return 
$mybb->settings['newpoints_main_curprefix'].number_format((float)$pointsintval($mybb->settings['newpoints_main_decimal'])).$mybb->settings['newpoints_main_cursuffix'];


Or am I supposed to edit /newpoints.php as the error states? I'm a bit confused. Undecided
#8

Please post line 225 of /newpoints.php
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#9

(02-28-2014, 11:57 PM)Pirata Nervo Wrote: Please post line 225 of /newpoints.php

PHP Code:
    $amount round(floatval($mybb->input['amount']), $mybb->settings['newpoints_main_decimal']); 
#10

(11-16-2012, 05:21 AM)Pirata Nervo Wrote: Add (float) before the parameter one.
Jovan J.
MyBB Software Developer




Users browsing this thread: 1 Guest(s)