About nine months ago I asked a question about the initial results screen (
www.function90.com/support/joom-profile-...-initial-search.html
).
I said that when a user selected to search, all the members in our site were displayed before any search criteria were specified. I'd asked if there was a way to prevent the initial list and allow the user to specify search criteria first. You replied I could do it with a template override adding the following code in the copy of site.profile.search.result.php file:
<?php if(empty($data->searchConditions)):?>
Your Message
<?php return '';?>
<?php endif;?>
The code I inserted was
<?php if(empty($data->searchConditions)):?>
<h4><?php echo JText::_('FIND A SURVEYOR');?></h4>
<h5><?php echo JText::_('Start by selecting attributes from the left column.');?></h5>
<h5><?php echo JText::_('Multiple selections are allowed.');?></h5>
<?php return '';?>
<?php endif;?>
As instructed, I added it right after
defined('_JEXEC') or die;
?>
I didn't realize it until just now, but while it appears to work correctly the user can only see part of the list meeting the search criteria. The initial screen appears blank, as desired. The user specifies some search criteria and a member list is shown. Clicking the "Load more results..." button doesn't show more results. Instead, it repeats my message at the bottom of the list and the button disappears. I know there are more results that are not shown because if I reorder the list, I get different member names.
How can I resolve this issue?