Jump to content
Sign in to follow this  
sentq

Admin Area Intelligent Search While Typing

Recommended Posts

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

Edited by sentq
improvements and v7.1+ integration

Share this post


Link to post
Share on other sites
Thanks for that. Shame it does not work for the V4 templates.

Use the following code instead to apply the same functionality to v4 template:

/* Intelligent Search On Typing */
$(document).ready(function(){
    $("#intellisearchval").on("keyup", function() {
       $.post("search.php", $("#frmintellisearch").serialize(),
       function(data){
           if (data) {
               $("#searchresults").html(data);
               $("#btnIntelliSearch").hide();
               $("#btnIntelliSearchCancel").removeClass('hidden').show();
               $("#searchresults").hide().removeClass('hidden').slideDown();
           }
       });
   });
});

Share this post


Link to post
Share on other sites

Hi,

 

are they still work-able ? because i add them at v 6.2.1,it seems un-working ?

Share this post


Link to post
Share on other sites

@sentq

Hey there! As I see your new hook works great, however, I'm facing search window blinking on v4 template (seems like it's trying to search after each symbol inserted). Is it the same for you?

 

 

Share this post


Link to post
Share on other sites
On 10/2/2015 at 10:36 AM, sentq said:

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

It appears to have crashed in the latest stable version of WHMCS (v7.6.1)

Share this post


Link to post
Share on other sites
13 minutes ago, edvancombr said:

It appears to have crashed in the latest stable version of WHMCS (v7.6.1)

it works fine on my v7.6.1 dev using the Blend admin template.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By HancoEuropa
      I have tried changing out the theme, enabling/disabling several things ... 
      But my poor old clientarea lists have stopped loading for some reason (despite the cheery "loading" gif). 
      I can't imagine what I've done -- same behaviour in Six and Twenty-One ... although this seems to be a more /assets issue.
      Using WHMCS-Bridge, which reports (on page load) in the Debug Log:
      Debug Log 05 Jun 21 12:16:19 (0.32130400ms): Debug [C] Checking assets/img/clippy.svg 05 Jun 21 12:16:19 (0.31815900ms): Debug ajax1: js 05 Jun 21 12:16:19 (0.31400700ms): Debug 05 Jun 21 12:16:19 (0.31147400ms): Debug Call process completed in 3 microseconds 05 Jun 21 12:16:19 (0.30855300ms): Debug Cookie after:" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly" 05 Jun 21 12:16:19 (0.30547200ms): Debug Processing headers: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:19 GMT\r\nServer: Apache\r\nLast-Modified: Thu, 25 Feb 2021 17:30:04 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 519\r\nContent-Type: image\/svg+xml" 05 Jun 21 12:16:19 (0.30219800ms): Debug Head: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:19 GMT\r\nServer: Apache\r\nLast-Modified: Thu, 25 Feb 2021 17:30:04 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 519\r\nContent-Type: image\/svg+xml" 05 Jun 21 12:16:19 (0.28694000ms): Debug RAW data: 05 Jun 21 12:16:19 (0.28445900ms): Debug Cookie before:[" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly"] 05 Jun 21 12:16:19 (0.28194800ms): Debug Server Software: Apache 05 Jun 21 12:16:19 (0.27940300ms): Debug CURL call: https://hancoglobal.com/services/assets/img/clippy.svg with [] 05 Jun 21 12:16:19 (0.27693300ms): Debug Not cached, processing file - https://hancoglobal.com/services/assets/img/clippy.svg 05 Jun 21 12:16:19 (0.27459200ms): Debug ajax 0 - {"ajax":"1","js":"assets\/img\/clippy.svg","ccce":"js"} 05 Jun 21 12:16:19 (0.26975800ms): Debug [URL 826] https://hancoglobal.com/services/assets/img/clippy.svg 05 Jun 21 12:16:16 (0.84854800ms): Debug [C] Checking assets/img/clippy.svg 05 Jun 21 12:16:16 (0.84593000ms): Debug ajax1: js 05 Jun 21 12:16:16 (0.84354200ms): Debug 05 Jun 21 12:16:16 (0.84164500ms): Debug Call process completed in 3 microseconds 05 Jun 21 12:16:16 (0.83820100ms): Debug Cookie after:" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly" 05 Jun 21 12:16:16 (0.83616200ms): Debug Processing headers: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:16 GMT\r\nServer: Apache\r\nLast-Modified: Thu, 25 Feb 2021 17:30:04 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 519\r\nContent-Type: image\/svg+xml" 05 Jun 21 12:16:16 (0.83404400ms): Debug Head: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:16 GMT\r\nServer: Apache\r\nLast-Modified: Thu, 25 Feb 2021 17:30:04 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 519\r\nContent-Type: image\/svg+xml" 05 Jun 21 12:16:16 (0.81979500ms): Debug RAW data: 05 Jun 21 12:16:16 (0.81713200ms): Debug Cookie before:[" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly"] 05 Jun 21 12:16:16 (0.81524000ms): Debug Server Software: Apache 05 Jun 21 12:16:16 (0.81252500ms): Debug CURL call: https://hancoglobal.com/services/assets/img/clippy.svg with [] 05 Jun 21 12:16:16 (0.81016500ms): Debug Not cached, processing file - https://hancoglobal.com/services/assets/img/clippy.svg 05 Jun 21 12:16:16 (0.80838100ms): Debug ajax 0 - {"ajax":"1","js":"assets\/img\/clippy.svg","ccce":"js"} 05 Jun 21 12:16:16 (0.80509500ms): Debug [URL 166] https://hancoglobal.com/services/assets/img/clippy.svg 05 Jun 21 12:16:16 (0.38981800ms): Debug [C] Checking assets/js/dataTables.bootstrap.min.js 05 Jun 21 12:16:16 (0.38747100ms): Debug ajax1: js 05 Jun 21 12:16:16 (0.38551600ms): Debug 05 Jun 21 12:16:16 (0.38337200ms): Debug Call process completed in 3 microseconds 05 Jun 21 12:16:16 (0.38090700ms): Debug Cookie after:" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly" 05 Jun 21 12:16:16 (0.37813100ms): Debug Processing headers: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:16 GMT\r\nServer: Apache\r\nLast-Modified: Thu, 25 Feb 2021 17:30:04 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 1942\r\nContent-Type: application\/javascript" 05 Jun 21 12:16:16 (0.37548800ms): Debug Head: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:16 GMT\r\nServer: Apache\r\nLast-Modified: Thu, 25 Feb 2021 17:30:04 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 1942\r\nContent-Type: application\/javascript" 05 Jun 21 12:16:16 (0.36282600ms): Debug RAW data: 05 Jun 21 12:16:16 (0.35876700ms): Debug Cookie before:[" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly"] 05 Jun 21 12:16:16 (0.35710500ms): Debug Server Software: Apache 05 Jun 21 12:16:16 (0.35347300ms): Debug CURL call: https://hancoglobal.com/services/assets/js/dataTables.bootstrap.min.js with [] 05 Jun 21 12:16:16 (0.35140700ms): Debug Not cached, processing file - https://hancoglobal.com/services/assets/js/dataTables.bootstrap.min.js 05 Jun 21 12:16:16 (0.34930500ms): Debug ajax 0 - {"ajax":"1","js":"assets\/js\/dataTables.bootstrap.min.js","ccce":"js"} 05 Jun 21 12:16:16 (0.34642900ms): Debug [URL 662] https://hancoglobal.com/services/assets/js/dataTables.bootstrap.min.js 05 Jun 21 12:16:16 (0.00978700ms): Debug Processing headers: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:15 GMT\r\nServer: Apache\r\nLast-Modified: Thu, 25 Feb 2021 17:30:04 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 78980\r\nContent-Type: application\/javascript" 05 Jun 21 12:16:16 (0.00667800ms): Debug Head: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:15 GMT\r\nServer: Apache\r\nLast-Modified: Thu, 25 Feb 2021 17:30:04 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 78980\r\nContent-Type: application\/javascript" 05 Jun 21 12:16:15 (0.98106800ms): Debug RAW data: 05 Jun 21 12:16:15 (0.97920700ms): Debug Cookie before:[" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly"] 05 Jun 21 12:16:15 (0.97721500ms): Debug Server Software: Apache 05 Jun 21 12:16:15 (0.97430700ms): Debug CURL call: https://hancoglobal.com/services/assets/js/jquery.dataTables.min.js with [] 05 Jun 21 12:16:15 (0.94744300ms): Debug Not cached, processing file - https://hancoglobal.com/services/assets/js/jquery.dataTables.min.js 05 Jun 21 12:16:15 (0.94588100ms): Debug ajax 0 - {"ajax":"1","js":"assets\/js\/jquery.dataTables.min.js","ccce":"js"} 05 Jun 21 12:16:15 (0.94345400ms): Debug [URL 956] https://hancoglobal.com/services/assets/js/jquery.dataTables.min.js 05 Jun 21 12:16:15 (0.23816600ms): Debug [C] Checking templates/hanco/js/scripts.min.js 05 Jun 21 12:16:15 (0.21620200ms): Debug ajax1: js 05 Jun 21 12:16:15 (0.21380700ms): Debug 05 Jun 21 12:16:15 (0.21179300ms): Debug Call process completed in 3 microseconds 05 Jun 21 12:16:15 (0.21000400ms): Debug Cookie after:" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly" 05 Jun 21 12:16:15 (0.20814400ms): Debug Processing headers: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:15 GMT\r\nServer: Apache\r\nLast-Modified: Thu, 25 Feb 2021 17:30:04 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 636556\r\nContent-Type: application\/javascript" 05 Jun 21 12:16:15 (0.20579200ms): Debug Head: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:15 GMT\r\nServer: Apache\r\nLast-Modified: Thu, 25 Feb 2021 17:30:04 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 636556\r\nContent-Type: application\/javascript" 05 Jun 21 12:16:15 (0.18943100ms): Debug RAW data: 05 Jun 21 12:16:15 (0.18746600ms): Debug Cookie before:[" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly"] 05 Jun 21 12:16:15 (0.18576000ms): Debug Server Software: Apache 05 Jun 21 12:16:15 (0.18366100ms): Debug CURL call: https://hancoglobal.com/services/templates/hanco/js/scripts.min.js?v=07f587 with [] 05 Jun 21 12:16:15 (0.18170500ms): Debug Not cached, processing file - https://hancoglobal.com/services/templates/hanco/js/scripts.min.js?v=07f587 05 Jun 21 12:16:15 (0.17989800ms): Debug ajax 0 - {"ajax":"1","js":"templates\/hanco\/js\/scripts.min.js?v=07f587","ccce":"js"} 05 Jun 21 12:16:15 (0.17728900ms): Debug [URL 465] https://hancoglobal.com/services/templates/hanco/js/scripts.min.js?v=07f587 05 Jun 21 12:16:14 (0.76249900ms): Debug [C] Checking templates/hanco/css/custom.css 05 Jun 21 12:16:14 (0.75922700ms): Debug ajax1: js 05 Jun 21 12:16:14 (0.75707000ms): Debug 05 Jun 21 12:16:14 (0.75494500ms): Debug Call process completed in 3 microseconds 05 Jun 21 12:16:14 (0.75264900ms): Debug Cookie after:" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly" 05 Jun 21 12:16:14 (0.75028500ms): Debug Processing headers: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:14 GMT\r\nServer: Apache\r\nLast-Modified: Sat, 05 Jun 2021 11:39:00 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 34159\r\nContent-Type: text\/css" 05 Jun 21 12:16:14 (0.74789600ms): Debug Head: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:14 GMT\r\nServer: Apache\r\nLast-Modified: Sat, 05 Jun 2021 11:39:00 GMT\r\nAccept-Ranges: bytes\r\nContent-Length: 34159\r\nContent-Type: text\/css" 05 Jun 21 12:16:14 (0.73038300ms): Debug RAW data: 05 Jun 21 12:16:14 (0.72882100ms): Debug Cookie before:[" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly"] 05 Jun 21 12:16:14 (0.72707900ms): Debug Server Software: Apache 05 Jun 21 12:16:14 (0.72476400ms): Debug CURL call: https://hancoglobal.com/services/templates/hanco/css/custom.css with [] 05 Jun 21 12:16:14 (0.72269200ms): Debug Not cached, processing file - https://hancoglobal.com/services/templates/hanco/css/custom.css 05 Jun 21 12:16:14 (0.72009000ms): Debug ajax 0 - {"ajax":"1","js":"templates\/hanco\/css\/custom.css","ccce":"js"} 05 Jun 21 12:16:14 (0.69477200ms): Debug [URL 588] https://hancoglobal.com/services/templates/hanco/css/custom.css 05 Jun 21 12:16:13 (0.28088300ms): Debug [529] Parser parsing pretty links completed. 05 Jun 21 12:16:13 (0.27896600ms): Debug 9 replacements done 05 Jun 21 12:16:13 (0.26494400ms): Debug Call process completed in 52 microseconds 05 Jun 21 12:16:13 (0.26325700ms): Debug Cookie after:" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly" 05 Jun 21 12:16:13 (0.26171700ms): Debug Processing headers: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:12 GMT\r\nServer: Apache\r\nExpires: Thu, 19 Nov 1981 08:52:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate\r\nPragma: no-cache\r\nTransfer-Encoding: chunked\r\nContent-Type: text\/html; charset=utf-8" 05 Jun 21 12:16:13 (0.26001600ms): Debug Head: "HTTP\/1.1 200 OK\r\nDate: Sat, 05 Jun 2021 12:16:12 GMT\r\nServer: Apache\r\nExpires: Thu, 19 Nov 1981 08:52:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate\r\nPragma: no-cache\r\nTransfer-Encoding: chunked\r\nContent-Type: text\/html; charset=utf-8" 05 Jun 21 12:16:12 (0.75100500ms): Debug RAW data: 05 Jun 21 12:16:12 (0.74958100ms): Debug Cookie before:[" WHMCSy551iLvnhYt7=78e243ae1a35ff4c59804e6d0060e927; path=\/; secure; HttpOnly; WHMCSlogin_auth_tk=eHJTZ1B3TDlwbU5aWUxZQ0p3RVhPMTY0K2NCWk5PQ25ERkp1ak4reXBSOEtDZ3hFamc1Qy9TdkYzbXpCYnhCY1o1cGV3K2JRcVpndHlhVExPR3ZaQUxGSGRmZzBleEJvM0xDaktleUdhc3dqR09qSHEwcnh6NlJCVmJDMVVOb3NLOEdobzRjVTF0ZDZ0ZFVUYllUV0l2ZXgzb2tMbnBwVSswT3daQjdyeFNySWlJUlQ2d1owclFoMEdEMy9ZYTlJMTBkV2NtSE82SzhUMDB0akI0SVRCNHZCMXFMdG5QMndLeDZCSmh2RTdDZG9WMzFVQm12SURLMWl4bExoQ0FPUFpIaGNHWm1RQm91MXQ0TGM3bjVicjE4cWFqdzJ6cXV3K3NsQU5WcjY5YVJXd21ZU1ZNSG0xRUJDdW01TTF5eVYyRzFnUTgycWJkUzR4S2tsUUxreGZGcnNpb2J2QlVUaWFmYkRIWW5NK0tUSlJ2elc3QnVNUW0xM29BOXJWRC9CQURabHl3dmNNUXo4bUpSd21SdzJIOGZIUWlXbFRVRFovd0R1YksvUA%3D%3D; expires=Sun, 05-Jun-2022 10:08:54 GMT; Max-Age=31536000; path=\/; secure; HttpOnly"] 05 Jun 21 12:16:12 (0.74777700ms): Debug Server Software: Apache 05 Jun 21 12:16:12 (0.74540100ms): Debug CURL call: https://hancoglobal.com/services/clientarea.php?action=quotes&ccce=clientarea&systpl=hanco with [] 05 Jun 21 12:16:12 (0.74364100ms): Debug Not cached, processing file - https://hancoglobal.com/services/clientarea.php?action=quotes&ccce=clientarea&systpl=hanco 05 Jun 21 12:16:12 (0.74116900ms): Debug [URL 868] https://hancoglobal.com/services/clientarea.php?action=quotes&ccce=clientarea&systpl=hanco 05 Jun 21 12:16:06 (0.42879600ms): Debug So looks like it is faithfully trying to do the dataTables stuff ... not sure why no data tables are appearing. 😥
      Could someone point me in a direction to look? 
      No idea what assets/img/clippy.svg is btw, or why it is so important :))   weird
      Thanks so much.

    • By jeebee123
      Hi,
      I'm using WHMCS but the domain search results are very bad.
      What could be the problem? I can't find anything strange in the log files.

      The problem is that most of the time it says: "The charachters do not match" (Google ReCaptcha problem?) or it says that the domain isn't available while it stil is (see attachments).
       
      Does it have something to do with a lookup provider?
       
      Cheers.



    • By sebsimappus
      Hello,
       
      I come to you to see if anyone is how the scroll Stope at some point.
       
      I joined the js code, in hope to have your help
       
      thank you in advance
       
      cordially
       

      $(document).ready(function () { var $orderSummaryEl = jQuery("#scroll"); if ($orderSummaryEl.length) { var offset = jQuery("#scrollingPanelContainer").parent('.row').offset(); //var maxTopOffset = jQuery("#scrollingPanelContainer").parent('.row').outerHeight() - 35; var maxTopOffset = jQuery("#scrollingPanelContainer").parent('.row'); var topPadding = 15; jQuery(window).resize(function() { offset = jQuery("#scrollingPanelContainer").parent('.row').offset(); //maxTopOffset = jQuery("#scrollingPanelContainer").parent('.row').outerHeight() - 35; maxTopOffset = jQuery("#scrollingPanelContainer").parent('.row'); repositionScrollingSidebar(); }); jQuery(window).scroll(function() { repositionScrollingSidebar(); }); repositionScrollingSidebar(); } function repositionScrollingSidebar() { if (jQuery("#scrollingPanelContainer").css('float') != 'left') { $orderSummaryEl.stop().css('margin-top', '0'); return false; } var heightOfOrderSummary = $orderSummaryEl.outerHeight(); var newTopOffset = jQuery(window).scrollTop() - offset.top + topPadding; if (newTopOffset > maxTopOffset - heightOfOrderSummary) { newTopOffset = maxTopOffset - heightOfOrderSummary; } if (jQuery(window).scrollTop() > offset.top) { $orderSummaryEl.stop().animate({ marginTop: newTopOffset }); } else { $orderSummaryEl.stop().animate({ marginTop: 0 }); } } });
    • By vasil_uhmk
      I upgraded our WHMCS from version 5.3.14 to version 7.5. After upgrading I have problem with domains/services search from admin area. I'm getting 500 internal server error on AJAX call from whmcs/admin/templates/blend/js/scripts.min.js to whmcs/admin/search.php. I'm using PHP 7.2. Is this problem maybe is related to cUrl version (currently it is 7.59.0)?
      If someone had a similar problem, or have some idea how to overcome this problem I'd be happy to hear some potential solution.
      Thanks in davnace!
    • By mtindor
      Wondering if anyone else is having this issue.
      When logged into WHMCS 7.4.1 as an admin, do this:
      1.   Select Orders --> Add New Order
      2.   Start typing (a known existing) client name in the "Client" box
      What should happen is that it should start displaying possible clients as you type, just as the search boxes autofill the possibilities when you start typing a search.
      This used to work in 7.2.x for me.   After I upgraded to 7.4.1 (via the auto update feature), this stopped working.   I then renamed public_html and replaced it with a full WHMCS 7.4.1 distribution.   Same thing happens.
      Normally, if I typed something like "Tin" in the Orders --> Add Order --> Client box, it would automatically show my own billing account.   Now it doesn't bother to display anything.
      Mike
       
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

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