Changeset 2360355
- Timestamp:
- 08/13/2020 04:59:06 PM (6 years ago)
- Location:
- wp-autosearch
- Files:
-
- 5 edited
-
tags/readme.txt (modified) (4 diffs)
-
trunk/functions.php (modified) (6 diffs)
-
trunk/helper/options.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wp-autosearch.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-autosearch/tags/readme.txt
r1539978 r2360355 1 1 === WP AutoComplete Search === 2 Contributors: Netflixtech2 Contributors: Codieslab Team 3 3 Tags: custom post type search,live search,jquery autocomplete,autocomplete,searchbox ,jquery ui,themeroller,ecommerce search,real time search,wordpress autocomplete,instant search plugin,search suggest,woocommerce product search,ajax suggest,Wordpress Ajax search,Best Autocomplete Search bar,Custom search widget box,metadata, meta, post meta, autocomplete 4 Requires at least: 3.04 Requires at least: 4.0 5 5 License: GPLv2 or later 6 6 License URI: http://www.gnu.org/licenses/gpl-2.0.html 7 Tested up to: 4.6.18 Stable tag: 4.6.07 Tested up to: 5.5.0 8 Stable tag: 1.0.4 9 9 A highly customizable AJAX-based WordPress search bar alternative with the ability to autocomplete. 10 10 … … 23 23 24 24 25 26 ==Features== 25 <h3>Features</h3> 27 26 28 27 > Wp auto search plugin supported woocommerce,custom post type,Property auto search. … … 101 100 = Documentation= 102 101 103 * [[Doc] Installation](http://demo.netflixtech.com/) 104 * [[Doc] Plugin Demo](http://demo.netflixtech.com/shop/) 105 * Use shortcode [wi_autosearch_suggest_form] or php shortcode wi_autosearch_suggest_form(); 102 * [[Doc] Plugin Demo](https://marketplace.codieslab.com/shop/) 103 * Use shortcode [wi_autosearch_suggest_form] or php shortcode wi_autosearch_suggest_form(); 106 104 107 105 = Help & Support = … … 130 128 == Screenshots == 131 129 132 1. This screen shot description corresponds to Backend options for wp autosearch plugin. screenshot-1.png,screenshot-2.png,screenshot-3.png,screenshot-4.png,screenshot-5.png. Note that the screenshot is taken from 133 the /assets directory . 134 2. How to use shortcode with wordpress widget. screenshot-9.png 135 3. How to look on front end side.screenshot-6.png,screenshot-7.png,screenshot-8.png 130 1. This screen shot description corresponds to Backend General options for wp autosearch plugin. /assets/screenshot-1.png 136 131 132 2. Wp autosearch in Image options. assets/screenshot-2.png 133 134 3. Wp autosearch in Frontend setting options and layout options and advance options. assets/screenshot-3.png,assets/screenshot-4.png,assets/screenshot-5.png 135 136 4. Settings screen showing How to use shortcode with wordpress widget. assets/screenshot-9.png 137 138 5. WP Autosearch look on front end side . assets/screenshot-6.png,assets/screenshot-7.png. 139 140 6. Multi language support./assets/screenshot-8.png 137 141 138 142 139 143 == Changelog == 144 = 1.0.4 = 145 * Resolved CSS bug fix 146 * Remove widget area 147 * Fix Php error warning 148 * compatible with Woocommerce version 4.3.2 149 * Fix Un define variable errors 150 151 152 = 1.0.3 = 153 * Resolved bug fix 154 * User can use direct shorcode in page without adding in widget area. 155 * changes in Design layout and button view 140 156 141 157 = 1.0.2 = -
wp-autosearch/trunk/functions.php
r1532845 r2360355 11 11 * @license 12 12 * @link 13 * @version 1.0. 013 * @version 1.0.4 14 14 */ 15 15 … … 33 33 return $search; 34 34 } 35 $tb_posts = $wpdb->prefix."posts"; 36 $tb_term = $wpdb->prefix."terms"; 37 $tb_tax = $wpdb->prefix."term_taxonomy"; 38 $tb_rel = $wpdb->prefix."term_relationships"; 39 $tb_comment = $wpdb->prefix."comments"; 35 40 36 // Clear the default generated where condition,37 // we will add it in the following38 $search = '';39 41 foreach( $words as $word ) { 40 42 // %word% to search all phrases that contain 'word' … … 48 50 } 49 51 50 $sql = " AND (( wp_posts.post_title LIKE '%s') OR (wp_posts.post_content LIKE '%s')";52 $sql = " AND (($tb_posts.post_title LIKE '%s') OR ($tb_posts.post_content LIKE '%s')"; 51 53 // Prevent SQL injection 52 54 $sql = $wpdb->prepare($sql, $word, $word); 53 54 55 55 56 56 $search .= $sql; 57 57 58 58 if($seach_comments){ 59 $sql = " OR EXISTS ( SELECT * FROM wp_comments WHERE comment_post_ID = wp_posts.ID AND comment_content LIKE '%s' )";59 $sql = " OR EXISTS ( SELECT * FROM $tb_comment WHERE comment_post_ID = $tb_posts.ID AND comment_content LIKE '%s' )"; 60 60 $sql = $wpdb->prepare($sql, $word); 61 61 $search .= $sql; … … 64 64 if($search_tags){ 65 65 $sql = " OR EXISTS ( 66 SELECT * FROM wp_terms67 INNER JOIN wp_term_taxonomy68 ON wp_term_taxonomy.term_id = wp_terms.term_id69 INNER JOIN wp_term_relationships70 ON wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id66 SELECT * FROM $tb_term 67 INNER JOIN $tb_tax 68 ON $tb_tax.term_id = $tb_term.term_id 69 INNER JOIN $tb_rel 70 ON $tb_rel.term_taxonomy_id = $tb_tax.term_taxonomy_id 71 71 WHERE (taxonomy = 'post_tag' OR taxonomy = 'product_tag') 72 AND object_id = wp_posts.ID73 AND wp_terms.name LIKE '%s'72 AND object_id = $tb_posts.ID 73 AND $tb_term.name LIKE '%s' 74 74 ) 75 75 )"; 76 76 77 $sql = $wpdb->prepare($sql, $word); 77 78 $search .= $sql; … … 82 83 } 83 84 84 function wi_posts_search_handler($search, &$wp_query){85 function wi_posts_search_handler($search, $wp_query){ 85 86 global $wizardinfosys_autosearch; 86 87 … … 95 96 return $search; 96 97 } 97 98 99 98 100 99 return wi_posts_search($search, $wp_query, $search_comments, $search_tags); 101 100 } -
wp-autosearch/trunk/helper/options.php
r1690223 r2360355 34 34 35 35 $_POST['post_types'] = (isset($_POST['post_types']) && count((array) $_POST['post_types']) > 0) ? $_POST['post_types'] : array('post'); 36 36 if(isset($_POST['excluded_cats'])){ 37 $catsID = $_POST['excluded_cats']; 38 }else{ 39 $catsID =''; 40 } 41 37 42 $wp_autosearch['no_of_results'] = $wizardinfosys_autosearch->helper->wi_prepare_parameter($_POST['no_of_results'], true); 38 43 $wp_autosearch['description_limit'] = $wizardinfosys_autosearch->helper->wi_prepare_parameter($_POST['description_limit'], true); 39 $wp_autosearch['excluded_cats'] = $wizardinfosys_autosearch->helper->wi_prepare_parameter(explode(',', $_POST['excluded_cats']), true);44 $wp_autosearch['excluded_cats'] = $wizardinfosys_autosearch->helper->wi_prepare_parameter(explode(',',$catsID), true); 40 45 $wp_autosearch['full_search_url'] = $wizardinfosys_autosearch->helper->wi_prepare_parameter($_POST['full_search_url'], false); 41 46 $wp_autosearch['min_chars'] = $wizardinfosys_autosearch->helper->wi_prepare_parameter($_POST['min_chars'], false); … … 72 77 $wp_autosearch['get_first_image'] = (isset($_POST['get_first_image']) && $_POST['get_first_image'] == 'checked') ? 'true' : 'false'; 73 78 $wp_autosearch['force_resize_first_image'] = (isset($_POST['force_resize_first_image']) && $_POST['force_resize_first_image'] == 'checked') ? 'true' : 'false'; 74 75 $wp_autosearch['search_image'] = $wizardinfosys_autosearch->helper->wi_prepare_parameter($_POST['search_image'], false); 79 if(isset($_POST['search_image'])){ 80 $sai = $_POST['search_image']; 81 }else{ 82 $sai =''; 83 } 84 85 $wp_autosearch['search_image'] = $wizardinfosys_autosearch->helper->wi_prepare_parameter($sai, false); 76 86 77 87 -
wp-autosearch/trunk/readme.txt
r1730964 r2360355 1 1 === WP AutoComplete Search === 2 Contributors: Netflixtech2 Contributors: Codieslab Team 3 3 Tags: custom post type search,live search,jquery autocomplete,autocomplete,searchbox ,jquery ui,themeroller,ecommerce search,real time search,wordpress autocomplete,instant search plugin,search suggest,woocommerce product search,ajax suggest,Wordpress Ajax search,Best Autocomplete Search bar,Custom search widget box,metadata, meta, post meta, autocomplete 4 Requires at least: 3.54 Requires at least: 4.0 5 5 License: GPLv2 or later 6 6 License URI: http://www.gnu.org/licenses/gpl-2.0.html 7 Tested up to: 4.8.08 Stable tag: 1.0. 37 Tested up to: 5.5.0 8 Stable tag: 1.0.4 9 9 A highly customizable AJAX-based WordPress search bar alternative with the ability to autocomplete. 10 10 … … 100 100 = Documentation= 101 101 102 * [[Doc] Installation](http://demo.netflixtech.com/) 103 * [[Doc] Plugin Demo](http://demo.netflixtech.com/shop/) 104 * Use shortcode [wi_autosearch_suggest_form] or php shortcode wi_autosearch_suggest_form(); 102 * [[Doc] Plugin Demo](https://marketplace.codieslab.com/shop/) 103 * Use shortcode [wi_autosearch_suggest_form] or php shortcode wi_autosearch_suggest_form(); 105 104 106 105 = Help & Support = … … 143 142 144 143 == Changelog == 144 = 1.0.4 = 145 * Resolved CSS bug fix 146 * Remove widget area 147 * Fix Php error warning 148 * compatible with Woocommerce version 4.3.2 149 * Fix Un define variable errors 150 151 145 152 = 1.0.3 = 146 153 * Resolved bug fix -
wp-autosearch/trunk/wp-autosearch.php
r1730964 r2360355 5 5 Description:Wordpress realtime auto search suggestions of WordPress posts, pages,custom post,taxonomies and Order of Types 6 6 Author: Netflixtech 7 Version: 1.0. 37 Version: 1.0.4 8 8 Author URI: http://netflixtech.com/ 9 9 … … 13 13 class Wizardinfosys_autosearch_suggest { 14 14 15 public $version = ' Wizardinfosys_2015';15 public $version = '1.0.4'; 16 16 public $commit_version = ''; 17 17 public $path = ''; … … 78 78 $this->helper->wi_activate_thumbnail(); 79 79 $this->helper->wi_add_image_size(); 80 $this->helper->register_sidebar();80 //$this->helper->register_sidebar(); 81 81 $this->helper->wi_register_shortcode(); 82 82 if((in_array('page', (array)$merged['post_types']))){ // If "page" type is checked so make it publicly queryable
Note: See TracChangeset
for help on using the changeset viewer.