Increase widget limit in case user wants to show more top x users.
Open applications/basicpoints/widgets/pointsTopPoints.php
Find:
$form->add( new \IPS\Helpers\Form\Number( 'pointsTopPoints_limit', isset( $this->configuration['pointsTopPoints_limit'] ) ? $this->configuration['pointsTopPoints_limit'] : 5, TRUE, array( 'max' => 20 ) ) );
Replace With:
$form->add( new \IPS\Helpers\Form\Number( 'pointsTopPoints_limit', isset( $this->configuration['pointsTopPoints_limit'] ) ? $this->configuration['pointsTopPoints_limit'] : 5, TRUE, array( 'max' => 50 ) ) );
Save.
Open applications/basicpoints/modules/front/basicpoints/ajax.php
Find:
$limit = \intval( ( isset( \IPS\Request::i()->limit ) and \IPS\Request::i()->limit <= 20 ) ? \IPS\Request::i()->limit : 5 );
Replace With:
$limit = \intval( ( isset( \IPS\Request::i()->limit ) and \IPS\Request::i()->limit <= 50 ) ? \IPS\Request::i()->limit : 5 );
Save.
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.