Jump to content

Welcome to Fundayforum

Welcome to Fundayforum

Take the free tour and meet people! 😍

Things are going to change

Things are going to change

This year you must stay, you deserve it.

When you think things go wrong

When you think things go wrong

There is always someone who will give you a hand.

Where are you going tonight?

Where are you going tonight?

Some day we'll go back there, our secret place.

Do you remember those moments?

Do you remember those moments?

This is going to get sweet!

I really feel younger.

I really feel younger.

Maybe I'll give it a little taste.

Oh pretty mama, you're the best!

Oh pretty mama, you're the best!

I do not think I'll ever forget it, thanks.

Sign in to follow this  
ADMIN

IPS4-Tutorial How to fix the Awards on Donation

Rate this topic

Recommended Posts

So after doing a little research after discovering this issue I discovered that in IPBS 4.1 a file as been removed which was causing this error we all been getting and after 2 hours of playing around with there code I discovered a temp fix.


So if any of you guys/girls being getting this fatal script error 
Example:

 


D0DSduX.png


Here's how to fix it. 

First of all you will want to go to where all your of your files are located and then go to this directory 

 Applications>> Donate >> Sources >> Reward >> Reward.php 

And then search for this line of code

 

$form->add( new IPS\Helpers\Form\NumberRange( 'reward_amount_range', $this->rid ? array( 'start' => $this->amount_range1, 'end' => $this->amount_range2 ) : array( 'start' => 0, 'end' => 100 ), FALSE, array( 'start' => array( 'decimals' => 2 ), 'end' => array( 'decimals' => 2 ) ) ) );

 

and then replace that line with this code 

 

        $form->add( new IPSHelpersFormCustom( 'reward_amount_range', $this->rid ? array( 'start' => $this->amount_range1, 'end' => $this->amount_range2 ) : array( 'start' => 0, 'end' => 100 ), FALSE, array( 'getHtml' => function( $element )  		{  			return "<input type='text' value='{$element->value['start']}' name='reward_amount_range[start]' min='0' class='ipsField_short'> - <input type='text' value='{$element->value['end']}' name='reward_amount_range[end]' min='0' class='ipsField_short'>";  		} ), NULL, NULL, NULL, 'reward_amount_range' ) );

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Forum Statistics

    1,975
    Total Topics
    8,202
    Total Posts
×