Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
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
SOLUTION: [userpro template=memberlist turn_off_initial_results=1]
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.
You must be logged in to reply to this topic.