Plugin Directory

Changeset 2360355


Ignore:
Timestamp:
08/13/2020 04:59:06 PM (6 years ago)
Author:
netflixtechweb
Message:

Update plugin changes

Location:
wp-autosearch
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-autosearch/tags/readme.txt

    r1539978 r2360355  
    11=== WP AutoComplete Search ===
    2 Contributors: Netflixtech
     2Contributors: Codieslab Team
    33Tags: 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.0
     4Requires at least: 4.0
    55License: GPLv2 or later
    66License URI: http://www.gnu.org/licenses/gpl-2.0.html
    7 Tested up to: 4.6.1
    8 Stable tag: 4.6.0
     7Tested up to: 5.5.0
     8Stable tag: 1.0.4
    99A highly customizable AJAX-based WordPress search bar alternative with the ability to autocomplete.
    1010
     
    2323
    2424
    25 
    26 ==Features==
     25<h3>Features</h3>
    2726
    2827>   Wp auto search plugin supported woocommerce,custom post type,Property auto search.
     
    101100= Documentation=
    102101
    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();
    106104
    107105= Help & Support =
     
    130128== Screenshots ==
    131129
    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
     1301. This screen shot description corresponds to Backend General options  for wp autosearch plugin. /assets/screenshot-1.png
    136131
     1322. Wp autosearch in Image options. assets/screenshot-2.png
     133
     1343. 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   
     1364. Settings screen showing How to use shortcode with wordpress widget. assets/screenshot-9.png
     137
     1385. WP Autosearch look on front end side . assets/screenshot-6.png,assets/screenshot-7.png.
     139
     1406. Multi language support./assets/screenshot-8.png
    137141
    138142
    139143== 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
    140156
    141157= 1.0.2 =
  • wp-autosearch/trunk/functions.php

    r1532845 r2360355  
    1111 * @license     
    1212 * @link       
    13  * @version     1.0.0
     13 * @version     1.0.4
    1414 */
    1515
     
    3333        return $search;
    3434    }
     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";
    3540
    36     // Clear the default generated where condition,
    37     // we will add it in the following
    38     $search = '';
    3941    foreach( $words as $word ) {
    4042        // %word% to search all phrases that contain 'word'
     
    4850        }
    4951       
    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')";
    5153        // Prevent SQL injection
    5254        $sql = $wpdb->prepare($sql, $word, $word);
    53        
    54        
    55        
     55
    5656        $search .= $sql;
    5757           
    5858        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' )";
    6060            $sql = $wpdb->prepare($sql, $word);
    6161            $search .= $sql;
     
    6464        if($search_tags){
    6565            $sql = " OR EXISTS (
    66                     SELECT * FROM wp_terms
    67                     INNER JOIN wp_term_taxonomy
    68                         ON wp_term_taxonomy.term_id = wp_terms.term_id
    69                     INNER JOIN wp_term_relationships
    70                         ON wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id
     66                    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
    7171                    WHERE (taxonomy = 'post_tag' OR taxonomy = 'product_tag')
    72                         AND object_id = wp_posts.ID
    73                         AND wp_terms.name LIKE '%s'
     72                        AND object_id = $tb_posts.ID
     73                        AND $tb_term.name LIKE '%s'
    7474                        )
    7575                    )";
     76
    7677            $sql = $wpdb->prepare($sql, $word);
    7778            $search .= $sql;
     
    8283}
    8384
    84 function wi_posts_search_handler($search, &$wp_query){
     85function wi_posts_search_handler($search, $wp_query){
    8586     global $wizardinfosys_autosearch;
    8687
     
    9596        return $search;
    9697    }
    97    
    98    
    99      
     98
    10099    return wi_posts_search($search, $wp_query, $search_comments, $search_tags);
    101100}
  • wp-autosearch/trunk/helper/options.php

    r1690223 r2360355  
    3434   
    3535    $_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
    3742    $wp_autosearch['no_of_results'] = $wizardinfosys_autosearch->helper->wi_prepare_parameter($_POST['no_of_results'], true);
    3843    $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);
    4045    $wp_autosearch['full_search_url'] = $wizardinfosys_autosearch->helper->wi_prepare_parameter($_POST['full_search_url'], false);
    4146    $wp_autosearch['min_chars'] = $wizardinfosys_autosearch->helper->wi_prepare_parameter($_POST['min_chars'], false);
     
    7277    $wp_autosearch['get_first_image'] = (isset($_POST['get_first_image']) && $_POST['get_first_image'] == 'checked') ? 'true' : 'false';
    7378    $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);
    7686   
    7787   
  • wp-autosearch/trunk/readme.txt

    r1730964 r2360355  
    11=== WP AutoComplete Search ===
    2 Contributors: Netflixtech
     2Contributors: Codieslab Team
    33Tags: 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.5
     4Requires at least: 4.0
    55License: GPLv2 or later
    66License URI: http://www.gnu.org/licenses/gpl-2.0.html
    7 Tested up to: 4.8.0
    8 Stable tag: 1.0.3
     7Tested up to: 5.5.0
     8Stable tag: 1.0.4
    99A highly customizable AJAX-based WordPress search bar alternative with the ability to autocomplete.
    1010
     
    100100= Documentation=
    101101
    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();
    105104
    106105= Help & Support =
     
    143142
    144143== 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
    145152= 1.0.3 =
    146153* Resolved bug fix
  • wp-autosearch/trunk/wp-autosearch.php

    r1730964 r2360355  
    55 Description:Wordpress realtime auto search suggestions of WordPress posts, pages,custom post,taxonomies and Order of Types
    66 Author: Netflixtech
    7  Version: 1.0.3
     7 Version: 1.0.4
    88 Author URI: http://netflixtech.com/
    99
     
    1313class Wizardinfosys_autosearch_suggest {
    1414   
    15     public $version = 'Wizardinfosys_2015';
     15    public $version = '1.0.4';
    1616    public $commit_version = '';
    1717    public $path = '';
     
    7878        $this->helper->wi_activate_thumbnail();
    7979        $this->helper->wi_add_image_size();
    80         $this->helper->register_sidebar();
     80        //$this->helper->register_sidebar();
    8181        $this->helper->wi_register_shortcode();
    8282        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.