70n1
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
I have working the search with this modification.
Check that you have not made ??a mistake by changing the search.php code (ie, if you left some brace unlocked, etc. ..)You need a default page for File Browser:
The search widget need to set a default page in WP-Filebase -> Settings -> File Browser
Do you set this?
Change this:
if(empty($s)) { $s = empty($wp_query->query_vars['s']) ? (empty($_GET['s']) ? null : stripslashes($_GET['s'])) : $wp_query->query_vars['s']; if(empty($s)) return null; }
to…
if(empty($s)) { $s = empty($wp_query->query_vars['s']) ? (empty($_GET['s']) ? null : stripslashes($_GET['s'])) : $wp_query->query_vars['s']; if(empty($s)) { $s = empty($wp_query->query_vars['wpfb_s']) ? (empty($_GET['wpfb_s']) ? null : stripslashes($_GET['wpfb_s'])) : $wp_query->query_vars['wpfb_s']; } if(empty($s)) return null; }
I have fixed this…
In the file wp-content/plugins/wp-filebase/classes/Search.php
In the function SearchWhereSql, before the line:
if(empty($s)) return null;
Add this line:
.... if(empty($s)) { $s = empty($wp_query->query_vars['wpfb_s']) ? (empty($_GET['wpfb_s']) ? null : stripslashes($_GET['wpfb_s'])) : $wp_query->query_vars['wpfb_s']; } if(empty($s)) return null;
Note: the search widtget need to set a default page in WP-Filebase -> Settings -> File Browser
Viewing 4 replies - 1 through 4 (of 4 total)