How can i put more than 25 members per page on the search profiles page ( search.php?show=match )
How can i put more than 25 members per page on the search profiles page ( search.php?show=match ) |
Does someone know? |
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 |
Thanks! It worked :) |
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 |
I changed that but i don't see any changes :( |
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 |
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 |
No because i have 4 more pages... So it's somewhere in a code set to 10 persons :( |
Does anyone know how to do this? |