CoinTalk Forum

Micropayment Services => FaucetHub.io Discussion => Topic started by: alamin on December 07, 2016, 12:14:06 AM

Title: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on December 07, 2016, 12:14:06 AM
Today I have run some experiments on the script given by FaucetSystem.com. I have found that it is better than FaucetBOX's script. It is more secure and very easy to use. Many new features has been added there. So that I wanted to use that script for my FaucetHub.io (http://faucethub.io/r/2063) faucet. Here is given below how I have done this. I am writing A to Z steps for you.

Step-1: Choose a domain and good hosting plan for your faucet. Requirements: PHP (5.6+ with standart extension: pdo, curl and etc), Apache with mod_rewrite, MySQL, Unlimited Bandwidth.
Step-2: Download (http://faucetsystem.com/sp/faucet/) the faucet script and unzip downloaded archive.
Step-3: Edit and Replace these files given below with any text editor like notepad:

Open: .../app/Module/Faucetsystem.php
Find:
Quote
protected $api_base = "https://faucetsystem.com/api/v1/";
Replace with:
Quote
protected $api_base = "https://faucethub.io/api/v1/";

Find:
Quote
                'message' => 'Payment sent to you using FaucetSystem.com',
                'html' => '<div class="alert alert-success">' . htmlspecialchars($amount) . ' satoshi was sent to you <a target="_blank" href="https://faucetsystem.com/check/' . rawurlencode($to) . '">on FaucetSystem.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://faucetsystem.com/check/' . rawurlencode($to) . '">on FaucetSystem.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/balance/' . 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/balance/' . rawurlencode($to) . '">on FaucetHub.io[/url].</div>',


Open: .../storage/admin/src/header.tpl
Find:
Quote
<li><a href="/admin/dashboard/">FaucetSystem[/url]</li>
Replace with:
Quote
<li><a href="/admin/dashboard/">Dashboard[/url]</li>


Open: .../storage/admin/src/page/dashboard.tpl
Find:
Quote
{else}FaucetSystem.com api key{/if}
Replace with:
Quote
{else}FaucetHub.io api key{/if}

Find:
Quote
FaucetSystem.com balance:
Replace with:
Quote
FaucetHub.io balance:


Open: .../template/template_name/src/page/claim_first.tpl
"template_name" = any template folder inside the "template" directory, such as "default", "cosmo", "darkly" etc.
Find:
Quote
<a target="_blank" href="https://faucetsystem.com/">FaucetSystem.com[/url]
Replace with:
Quote
<a target="_blank" href="https://faucethub.io/">FaucetHub.io[/url]
(You can use your FaucetHub.io referral link here)


Open: .../template/template_name/src/page/jackpot.tpl
"template_name" = any template folder inside the "template" directory, such as "default", "cosmo", "darkly" etc.
Find:
Quote
<a target="_blank" href="https://faucetsystem.com/check/{$jackpot->j_address}">
Replace with:
Quote
<a target="_blank" href="https://faucethub.io/balance/{$jackpot->j_address}">


If you want, you can simply get the modified script that has been modified by me.

Step-4: Create a MySQL database.
Step-5: Import a SQL dump (dump.sql is given in archive) file to MySQL (you can use phpMyAdmin to import a SQL dump file into your MySQL database).
Step-6: Edit config.php (you can open and edit it using a plain text editor program like Notepad).
Step-7: Upload all files from the directory to your server's public directory.
Step-8: Grant the Apache web server write permissions (755 or 777) for the "tmp" directory.
Step-9: Open your website and go to Admin Zone (defaul login: admin, default password: admin). Change the login credentials first after logging in.
Step-10: Open an account in FaucetHub.io (http://faucethub.io/r/2063); if you have already an account, go to USER+ --> Faucet Manager; fill the form with necessary data. Get the API key. Place it to the admin panel. Customize your faucet with ads and other things.
Step-11: Now make a deposit and spread news about your faucet's arrival. :D :D :D
Demo-1: http://bitcoinbar.xyz
Demo-1: http://cryptonic.co
Demo-3: http://bitcoingame.biz
If you have any question, comment below. :) :) :)
New: Problem with referral link and some other issues has been fixed. I didn't noticed the problem with referral link yesterday. I have uploaded new archive. Just download from the above link.
If this helps you, please make me happy: 16MLrNUEZgdHnBiyqJ9r8rciC2MpREF45D :)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: ankit10 on December 26, 2016, 06:05:27 PM
 Grant the Apache web server write permissions (755 or 777) for the "tmp" directory.
where i can ad this
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on December 26, 2016, 06:28:56 PM
You are not allowed to view links. Register or Login
Grant the Apache web server write permissions (755 or 777) for the "tmp" directory.
where i can ad this
The easiest way: Login to FTP by FileZilla Client.
Then:
(http://i64.tinypic.com/2r6nv9y.png)
Next:
(http://i64.tinypic.com/2hqfreq.png)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: Pig on January 06, 2017, 02:07:07 PM

we change only those 3 folder "default", "cosmo", "darkly" ?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: Pig on January 06, 2017, 02:52:59 PM
how to go to Admin Zone ?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on January 06, 2017, 03:01:51 PM
You are not allowed to view links. Register or Login
we change only those 3 folder "default", "cosmo", "darkly" ?
No, these 3 are only for example. There are 11 folders inside the .../template/ directory. All of these are themes folder. You have to edit files of the theme which you want to use. For example, if you want to use flatly theme, edit files inside flatly folder. That's it. :)

You are not allowed to view links. Register or Login
how to go to Admin Zone ?
Go to here:
(http://i68.tinypic.com/se2hi8.png)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: Pig on January 08, 2017, 12:43:26 PM
thanks  :D, another question ?
can you make it a Wordpress Bitcoin faucet ?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on January 08, 2017, 08:19:06 PM
You are not allowed to view links. Register or Login
thanks  :D, another question ?
can you make it a Wordpress Bitcoin faucet ?
There are many options, do you want to integrate your faucet with WordPress (demo: http://cryptonic.co) / or you want non integrated???
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: Pig on January 09, 2017, 07:22:58 AM
Yes, Like that can you pls show me?
What is the difference between integrated and non integrated? I wanna a faucet script like you describe As a theme in WordPress!
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on January 11, 2017, 09:25:48 PM
You are not allowed to view links. Register or Login
Yes, Like that can you pls show me?
What is the difference between integrated and non integrated? I wanna a faucet script like you describe As a theme in WordPress!
Integrated means, your faucet is directly a part of wordpress script. That means plugin. And non integrated means your faucet and wordpress is separated...
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: Pig on January 12, 2017, 02:25:26 PM
You are not allowed to view links. Register or Login
Integrated means, your faucet is directly a part of wordpress script. That means plugin. And non integrated means your faucet and wordpress is separated...
Ok thanks, any tuto for that? Integrated faucet.
What plugin should i install? what You recommend for that!
Cause there is only one in wordpress plugins named as "Bitcoin Faucet"! and he have only one anti-bots recaptcha.
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on January 12, 2017, 03:46:43 PM
You are not allowed to view links. Register or Login
Ok thanks, any tuto for that? Integrated faucet.
What plugin should i install? what You recommend for that!
Cause there is only one in wordpress plugins named as "Bitcoin Faucet"! and he have only one anti-bots recaptcha.
you're most welcome. Here you will find your answers: https://99bitcoins.com/bitcoin-faucet-wordpress-plugin/
I'm using their plugin at http://cryptonic.co . The main advantages of this plugin is you don't have to worry about bots because every payout is manual, you can check every details of claims before making payout.
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: Dnjepyriat on January 17, 2017, 02:22:31 AM
Hi there, the refferal system isn't working, one of my users tested it out, and he received nothing after the claims. Is there any fix for this problem? Thank you!
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on January 17, 2017, 08:39:09 AM
You are not allowed to view links. Register or Login
Hi there, the refferal system isn't working, one of my users tested it out, and he received nothing after the claims. Is there any fix for this problem? Thank you!
Okay, do not do this:
(http://image.prntscr.com/image/1b2ea1325d3e4605bf7fcbe9668e53a2.png)
Then check if it works and tell me. :)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: simplymieke on January 19, 2017, 02:49:03 AM
Thanks a lot for this tutorial (only a shame that I edited everything manually and only saw afterwards you offered a download for the modified script -  :D)

I'm not ready to launch yet, but am still curious if the fix for the referral links worked...
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on January 19, 2017, 10:15:58 PM
You are not allowed to view links. Register or Login
Thanks a lot for this tutorial (only a shame that I edited everything manually and only saw afterwards you offered a download for the modified script -  :D)

I'm not ready to launch yet, but am still curious if the fix for the referral links worked...
You're most welcome. And it's nice that you have done the editing by yourself. You have gotten experiences. :)
And, in my faucets, the referral links are working perfectly. But I am not sure about Dnjepyriat's problem. Please make a test, then tell me if you also have the same problem.