Only Search Button – UserPro Forums https://forum.userproplugin.com/forums/topic/only-search-button/feed/ Thu, 02 May 2024 23:28:57 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/only-search-button/#post-42761 <![CDATA[Only Search Button]]> https://forum.userproplugin.com/forums/topic/only-search-button/#post-42761 Sat, 20 Sep 2014 22:14:12 +0000 AL What is the shortcode to enter only the search button ? I want to put it on the web , on the first page .

I donĀ“t want to leave any user , only the search button on the homepage to search .

I await your response. Thank you!

Alberto

]]>
https://forum.userproplugin.com/forums/topic/only-search-button/#post-43173 <![CDATA[Reply To: Only Search Button]]> https://forum.userproplugin.com/forums/topic/only-search-button/#post-43173 Sat, 04 Oct 2014 02:24:12 +0000 AL SOLUTION: [userpro template=memberlist turn_off_initial_results=1]

]]>
https://forum.userproplugin.com/forums/topic/only-search-button/#post-44680 <![CDATA[Reply To: Only Search Button]]> https://forum.userproplugin.com/forums/topic/only-search-button/#post-44680 Wed, 03 Dec 2014 16:15:28 +0000 Mad Max it is the right way, evenif, as I can see in the code, the value turn_off_initial_results is never read: the code check only if the parameter exists, so setting it to 0 or 1 leads to the same result.

To fix the code change line 2661 of userpro/funciotns/api.php from

if (isset($args['turn_off_initial_results']) && ( !isset($_GET['searchuser']) && !isset($_GET['emd-search']))) {

to

if (isset($args['turn_off_initial_results']) && $args['turn_off_initial_results'] == 1 && ( !isset($_GET['searchuser']) && !isset($_GET['emd-search']))) {

Hope the author fix the code in a future release.

]]>