More than 25 items per page

How can i put more than 25 members per page on the search profiles page ( search.php?show=match )

Quote · 6 Feb 2013

Does someone know?

Quote · 7 Feb 2013

It can be passed from the URL using the "per_page" variable or if you want to just edit the code open search.php and find this:

 

        $aPaginate = array(

            'page_url' => $sBaseUri . $sTopLinksUri . '&page={page}&per_page={per_page}&sort={sorting}',

            'info' => true,

            'page_links' => true,

            'per_page' => isset($_REQUEST['per_page']) ? (int)$_REQUEST['per_page'] : 25,

            'sorting' => $sSort,

            'count' => count($aProfiles),

            'page' => isset($_REQUEST['page']) ? (int)$_REQUEST['page'] : 1,

            'page_reloader' => true,

            'per_page_changer' => true

        );

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 7 Feb 2013

Thanks! It worked :)

And where can i adjust the number of matches per page ( now 10 matches per page ) when you search profiles with the search form?

Quote · 7 Feb 2013

You're welcome! About the matches, open /inc/classes/BxDolSearch.php and look for this:

 

    function setPaginate ()

    {

        $this->aCurrent['paginate']['perPage'] = (isset($_GET['per_page']) && (int)$_GET['per_page'] != 0) ? (int)$_GET['per_page'] : $this->aCurrent['paginate']['perPage'];

        if (empty($this->aCurrent['paginate']['perPage']))

            $this->aCurrent['paginate']['perPage'] = 10;

 

        $this->aCurrent['paginate']['page'] = isset($this->aCurrent['paginate']['forcePage'])

            ? (int)$this->aCurrent['paginate']['forcePage']

            : (empty($_GET['page']) ? 1 : (int)$_GET['page']);

 

        if ($this->aCurrent['paginate']['page'] < 1)

            $this->aCurrent['paginate']['page'] = 1;

    }

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 7 Feb 2013

I changed that but i don't see any changes :(

Quote · 7 Feb 2013

Hmmm, can you show me the URL that is being displayed for that search?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 7 Feb 2013

/search.php?search_mode=adv&csrf_token=%2FY%3F99b%3F9N2mzk%2FUFFY%21w&City=amsterdam

Quote · 7 Feb 2013

I'm looking at the code but it looks like that search should default to the 25 items we changed the other number to. Is it possible only 10 members meet that criteria?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 7 Feb 2013

No because i have 4 more pages... So it's somewhere in a code set to 10 persons :(

Quote · 7 Feb 2013

Does anyone know how to do this?

Quote · 9 Feb 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.