Switch blocks on search results page

Hi,

Can anyone tell me how I can switch the search and people page blocks around. When someone enters a search in the search bar ( the main search bar located on the top left of every page ) the result displays the members at the bottom of the page. I would like the members to be displayed at the top of the page. I've attached a photo below.

Thanks in advance. 

Page block problem.jpg · 119.9K · 315 views
Quote · 9 Feb 2015

Hello 

Hi,

Can anyone tell me how I can switch the search and people page blocks around. When someone enters a search in the search bar ( the main search bar located on the top left of every page ) the result displays the members at the bottom of the page. I would like the members to be displayed at the top of the page. I've attached a photo below.

Thanks in advance. 

You need to do a simple custom modification in PHP code. Edit searchKeyword.php file and find the following row of code

$_page_cont[$_ni]['page_main_code'] = $sForm . $sSearchArea;

then replace it with this one

$_page_cont[$_ni]['page_main_code'] = $sSearchArea . $sForm;

That's all.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 9 Feb 2015

Thank you AntonLV that worked perfectly ( exactly what I wanted ) Smile 

Quote · 10 Feb 2015

Hello 

Thank you AntonLV that worked perfectly ( exactly what I wanted ) Smile 

You are welcome! :) 

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 10 Feb 2015

ah nice, was also wondering how to do this... now I know and it's working, thanks AntonLV =D   

 

Hello 

Hi,

Can anyone tell me how I can switch the search and people page blocks around. When someone enters a search in the search bar ( the main search bar located on the top left of every page ) the result displays the members at the bottom of the page. I would like the members to be displayed at the top of the page. I've attached a photo below.

Thanks in advance. 

You need to do a simple custom modification in PHP code. Edit searchKeyword.php file and find the following row of code

$_page_cont[$_ni]['page_main_code'] = $sForm . $sSearchArea;

then replace it with this one

$_page_cont[$_ni]['page_main_code'] = $sSearchArea . $sForm;

That's all.

 

Quote · 5 Feb 2017
 
 
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.