Jump to content
DevFuse Forums
  • Widget limit


    Michael
    • Fixed IP.Board Version: IP.Board 4.6.x

    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.


    User Feedback

    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.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

    Pending = We are still working on this report.

    Fixed = The issue has been fixed and the resolution will be available in the next version.

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

×
×
  • Create New...