Jump to content

Search the Community

Showing results for tags 'intelligent search'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


WHMCS.Community

  • The latest WHMCS Release
    • V7.9 Beta Discussion
  • The Latest from the WHMCS Team
    • News & Announcements
    • The WHMCS Blog
  • WHMCS.Community
    • Community Announcements
    • Introduce Yourself
  • Using WHMCS
    • Pre-Sales Questions
    • Admin & Configuration Questions
    • Installation, Upgrade, and Import Support
    • Using WHMCS
    • Troubleshooting Issues
    • Vendor Discussions
  • WHMCS Beta Program
  • WHMCS Showcase
    • Showcase Your Site
    • Share Your Best Practices & Tips
  • Developing & Extending WHMCS
    • Third Party Add-ons
    • Service Offers & Requests
    • Developer Corner
    • Building Modules
    • Share Ideas for WHMCS Modules
  • Community Competitions
    • Competitions
  • General Discussions
    • General Discussion
  • General Feedback & Assistance
    • WHMCS.Community Tips & Tricks
  • Third Party Developers's Topics
  • Turkish International Discussions's Topics
  • Russian International Discussions's Topics
  • Spanish International Discussions's Topics
  • Portuguese International Discussions's Topics
  • French International Discussions's Topics
  • Italian International Discussions's Topics
  • German International Discussions's Topics
  • WHMCS Brasil's Topics
  • WHMCS Brasil's Tópicos
  • ModulesGarden Club's Topics
  • Hungarian International Discussions's Segítség
  • ThemeMetro Club's Topics
  • WHMCS Services Club's Topics
  • SwiftModders Club's Topics
  • WHMCS Global Services Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. To activate the intelligent search to query results while typing instead of pressing the "Enter" key each time I have created simple ActionHook function that will integrate the code for both built-in template (v4 and Blend), the integration tested and is valid for WHMCS v6+ and v7+ 1) Create new PHP file inside /includes/hooks/ directory, you may use "IntelliSearchWhileTyping.php" as the file name or whatever you prefer. 2) Copy the following code inside it. 3) Done. <?php /** * Get Results From Intelligent Search While Typing * * Compatible with WHMCS v6+ and v7+ * Works with v4 and Blend templates * * @author SENTQ <development@sentq.com> * */ if (!defined("WHMCS")){ die("This file cannot be accessed directly"); } add_hook("AdminAreaHeadOutput", 1, function($vars){ # Template Blend if ($vars['template'] === "blend"){ return <<<EOF <script type="text/javascript"> /* Intelligent Search On Typing */ $(document).ready(function(){ $(document).on("input", "#intellisearchval", function(){ $("#intellisearchval").css("background-image","url('images/loading.gif')"); $.post("search.php", $("#frmintellisearch").serialize(), function(data){ $("#searchresultsscroller").html(data); $("#searchresults").slideDown("slow",function(){ $("#intellisearchval").css("background-image","url('images/icons/search.png')"); }); }); }); }); </script> EOF; } # Template v4 elseif ($vars['template'] === "v4"){ return <<<EOF <script type="text/javascript"> /* Intelligent Search On Typing */ $(document).ready(function(){ $(document).on("input", "#intellisearchval", function() { $.post("search.php", $("#frmintellisearch").serialize(), function(data){ if (data) { $("#searchresults").html(data); $("#btnIntelliSearch").hide(); $("#btnIntelliSearchCancel").removeClass('hidden').show(); $("#searchresults").hide().removeClass('hidden').slideDown(); } }); }); }); </script> EOF; } }); IntelliSearchWhileTyping.php
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated