Author Topic: How to migrate from FaucetBOX.com to FaucetHub.io  (Read 221 times)

0 Members and 1 Guest are viewing this topic.

How to migrate from FaucetBOX.com to FaucetHub.io
« on: December 02, 2016, 02:44:24 PM »

Offline alamin

  • Forum Admin
  • Administrator
  • Trade Count: (0)
  • Newbie
  • *****
  • Posts: 120
  • Country: bd
  • Gender: Male
    • View Profile
Today I am going to show you how to migrate from FaucetBOX.com to FaucetHub.io.

Step-1: Choose a domain and buy perfect hosting plan for it. PHP 5.4 or newer required and GD PHP module must be enabled on webserver. Usually a faucet needs huge bandwidth, keep this in your mind.
Step-2: Download the latest faucet script from here. Unzip it and upload all files to the server via FTP.
Step-3: Open .../libs/services/faucetbox.php.


               i)  Find:
Quote
protected $api_base = "https://faucetbox.com/api/v1/";
                   Replace with:
Quote
protected $api_base = "https://faucethub.io/api/v1/";

               ii) Find:
Quote
'message' => 'Payment sent to you using FaucetBOX.com',
                'html' => '<div class="alert alert-success">' . htmlspecialchars($amount) . ' satoshi was sent to you <a target="_blank" href="https://faucetbox.com/check/' . rawurlencode($to) . '">on FaucetBOX.com[/url].</div>',
                'html_coin' => '<div class="alert alert-success">' . htmlspecialchars(rtrim(rtrim(sprintf("%.8f", $amount/100000000), '0'), '.')) . ' '.$this->currency.' was sent to you <a target="_blank" href="https://faucetbox.com/check/' . rawurlencode($to) . '">on FaucetBOX.com[/url].</div>',
                   Replace with:
Quote
'message' => 'Payment sent to you using FaucetHub.io',
                'html' => '<div class="alert alert-success">' . htmlspecialchars($amount) . ' satoshi was sent to you <a target="_blank" href="https://faucethub.io/check/' . rawurlencode($to) . '">on FaucetHub.io[/url].</div>',
                'html_coin' => '<div class="alert alert-success">' . htmlspecialchars(rtrim(rtrim(sprintf("%.8f", $amount/100000000), '0'), '.')) . ' '.$this->currency.' was sent to you <a target="_blank" href="https://faucethub.io/check/' . rawurlencode($to) . '">on FaucetHub.io[/url].</div>',


Step-4: Create a MySQL database and edit the config.php file. Replace default values with your database connection parameters. You can get them from your hosting provider. If you have an existing database, clear the database before using again.
Step-5: Create an account in FaucetHub.io or if you have already created an account there go to User + > Faucet Manager. Fill the form with necessary informations and get the API key.
Step-6: Now open the admin panel, select FaucetBOX.com in Service, submit the API key, enable captcha. Set up your faucet, make a better looking, add ad codes.
Step-7 Your faucet is ready to go! Make a deposit and spread news that your faucet has been launched  :D :D :D! Cheers!  ;D ;D ;D

Demo: http://cryptonic.co
(Don't mind, currently I am building this website. Sorry for the empty balance. Now it is ready for claim. ;) ;) ;))
If you have any question, let me know.

News: Faucetinabox Version r69 has been released and it has built in support for FaucetHub.io. Simply select FaucetHub.io in Service.
Some bugs has been found in this file: .../libs/services/faucethub.php.
Find:
Code: [Select]
https://faucethub.io/check/Replace with:
Code: [Select]
https://faucethub.io/balance/Note: This will be found twice in the file, you have to replace twice times.
« Last Edit: December 08, 2016, 01:18:57 AM by alamin »

Re: How to migrate from FaucetBOX.com to FaucetHub.io
« Reply #1 on: December 27, 2016, 11:40:37 AM »

Offline Vladv26

  • Trade Count: (0)
  • Newbie
  • *
  • V
  • Posts: 35
  • Country: ro
  • Gender: Male
    • View Profile
Thanks for tutorial

Re: How to migrate from FaucetBOX.com to FaucetHub.io
« Reply #2 on: December 27, 2016, 12:48:26 PM »

Offline alamin

  • Forum Admin
  • Administrator
  • Trade Count: (0)
  • Newbie
  • *****
  • Posts: 120
  • Country: bd
  • Gender: Male
    • View Profile
Thanks for tutorial
You're most welcome...