Solving the incompatibility of AntiBotLinks

Hello guys,

After some feedback on bitcointalk, I saw that our themes are not compatible with the antibotlinks. It does not take me long to figure out how to solve. The reason of this was, The reason of this was, I move the scripts it under the html. The reason of this was, I move the scripts it under the html.

To solve this, we need to move these scripts to the head tag, before calling the script antibotlinks. It’s pretty simple process. If you have questions, do not hesitate to ask in the comments, respond as fast as possible.

Solving the problem

  • Open the index.php file of your theme
  • Locate the line of code that ends with /jquery.js or /jquery.min.js
    Exemple: <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js“></script>
  • Move this line to the header of the site, below the <title></title>
  • Find the line <script type=”text/javascript” src=”libs/mmc.js”></script> and let the line, below the line jquery.
  • Now you just install antibotlinks normally!

It should look like inside your head

<head>
 <meta charset="utf-8">
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <meta name="author" content="faucetcustom.xyz">
 <title><?php echo $data["name"]; ?></title>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script>
 <script type="text/javascript" src="libs/mmc.js"></script>
<...>

<?php 
# AntiBotLinks START 
$antibotlinks->get_js(); 
# AntiBotLinks END 
?>
</head>

Sincerely, Faucet Custom!

Leave a Reply

wpDiscuz