This is weird. With all searches on our site the results only show 10 results, even if it should be showing 500 or whatever. Also, when clicking on 'Adv' to initiate an advanced search it shows just the first 10 members who joined the site
So first question, how do I expand the results from 10...?
Second problem is that when you try to toggle the 'Order by:' filter (by 'none', 'registration date' or 'last activity') the page redirects to member #1 which is me.
Any ideas?! |
I have the same problem, would be nice to get an answer to this :-( |
/templates/base/scripts/BxBaseProfileView.php
around line 840 find this code
$sResults = $sTopFilter = ''; if ($iCountProfiles) { //collect pagination $iCurrentPage = isset( $_GET['page'] ) ? (int)$_GET['page'] : 1; $iResultsPerPage = isset( $_GET['res_per_page'] ) ? (int)$_GET['res_per_page'] : 10;
if( $iCurrentPage < 1 ) $iCurrentPage = 1; if( $iResultsPerPage < 1 ) $iResultsPerPage = 10;
|
Great prolaznik - many thanks! That has solved the problem of only ten users per search showing up.
Second problem though - when selecting either of the 'Order by:' options the page redirects to Member #1's profile!! Any ideas?
|
Great prolaznik - many thanks! That has solved the problem of only ten users per search showing up.
Second problem though - when selecting either of the 'Order by:' options the page redirects to Member #1's profile!! Any ideas?
yes make a quick forum search i already posted a fix for that as well :)
|
Great prolaznik - many thanks! That has solved the problem of only ten users per search showing up.
Second problem though - when selecting either of the 'Order by:' options the page redirects to Member #1's profile!! Any ideas?
yes make a quick forum search i already posted a fix for that as well :)
Oh that's good news, thanks! I'm struggling to find the correct search terms to discover the post though!
|
|
prolaznik saves the day again - I have no idea how you come up with the solutions to these things, all credit to you. Thanks again.
|
Hey,
How about changing the default amounts for viewing "online" people?
Right now the default is to show "10" with the option of showing 15, 20, or 25 per page.
But I would like to change it to show "14" with the option of showing 21, 28, 35 per page.
Why?
Because right now I'm showing 7 members per row. I know I could adjust my margins to make it 8 like in uni template, but this still wouldn't make sense.
If it's showing 8 members per line (row), and the default is to show "10" online members, than what you get is a row of 8 and 2 below.
This is very strange.
No Signature at this time. |
Hey,
How about changing the default amounts for viewing "online" people?
Right now the default is to show "10" with the option of showing 15, 20, or 25 per page.
But I would like to change it to show "14" with the option of showing 21, 28, 35 per page.
Why?
Because right now I'm showing 7 members per row. I know I could adjust my margins to make it 8 like in uni template, but this still wouldn't make sense.
If it's showing 8 members per line (row), and the default is to show "10" online members, than what you get is a row of 8 and 2 below.
This is very strange.
in your case you would need to make few changes
step 1
/templates/base/scripts/BxBaseProfileView.php
around line 840 find this code
$sResults = $sTopFilter = ''; if ($iCountProfiles) { //collect pagination $iCurrentPage = isset( $_GET['page'] ) ? (int)$_GET['page'] : 1; $iResultsPerPage = isset( $_GET['res_per_page'] ) ? (int)$_GET['res_per_page'] : 14;
if( $iCurrentPage < 1 ) $iCurrentPage = 1; if( $iResultsPerPage < 1 ) $iResultsPerPage = 14;
step 2
/public_html/inc/classes/ BxDolPaginate.php
define('BX_DOL_PAGINATE_PER_PAGE_STEP', 5); define('BX_DOL_PAGINATE_PER_PAGE_INTERVAL', 3); define('BX_DOL_PAGINATE_PER_PAGE_INTERVAL_MIN', 3); define('BX_DOL_PAGINATE_PER_PAGE_DEFAULT', 10); define('BX_DOL_PAGINATE_RANGE', 3);
change to
define('BX_DOL_PAGINATE_PER_PAGE_STEP', 7); define('BX_DOL_PAGINATE_PER_PAGE_INTERVAL', 3); define('BX_DOL_PAGINATE_PER_PAGE_INTERVAL_MIN', 3); define('BX_DOL_PAGINATE_PER_PAGE_DEFAULT', 14); define('BX_DOL_PAGINATE_RANGE', 3);
that would be it p.s i already made the changes to your site hope you don't mind ;)
 i know it looks good thank you heheh
|
prolaznik
Wow! Thank you soooooo much. This is awesome! You are an absolute genius!
No Signature at this time. |
Sorry, but its not a good solution... and its a very big problem
With your solution, you can display only one page with results... 100 for example...
If you click on second page, nothing appeared...
ralalala...
|