Author Topic: How to use FaucetSystem.com's script for FaucetHub.io faucets  (Read 595 times)

0 Members and 1 Guest are viewing this topic.

How to use FaucetSystem.com's script for FaucetHub.io faucets
« on: December 07, 2016, 12:14:06 AM »

Offline alamin

  • Forum Admin
  • Administrator
  • Trade Count: (0)
  • Newbie
  • *****
  • Posts: 120
  • Country: bd
  • Gender: Male
    • View Profile
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 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 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
$('code').text('http{if $.server.HTTPS!}s{/if}://{$.server.HTTP_HOST}/'+address+'/');
Replace with:
Quote
$('code').text('http{if $.server.HTTPS!}s{/if}://{$.server.HTTP_HOST}/?r='+address+'');

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 download 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; 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-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.
« Last Edit: January 08, 2017, 08:19:36 PM by alamin »

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #1 on: December 26, 2016, 06:05:27 PM »

Offline ankit10

  • Trade Count: (0)
  • Newbie
  • *
  • a
  • Posts: 2
  • Country: in
  • Gender: Male
    • View Profile
 Grant the Apache web server write permissions (755 or 777) for the "tmp" directory.
where i can ad this

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #2 on: December 26, 2016, 06:28:56 PM »

Offline alamin

  • Forum Admin
  • Administrator
  • Trade Count: (0)
  • Newbie
  • *****
  • Posts: 120
  • Country: bd
  • Gender: Male
    • View Profile
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:

Next:

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #3 on: January 06, 2017, 02:07:07 PM »

Offline Pig

  • Trade Count: (0)
  • Newbie
  • *
  • P
  • Posts: 7
  • Country: us
  • Gender: Male
    • View Profile

we change only those 3 folder "default", "cosmo", "darkly" ?

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #4 on: January 06, 2017, 02:52:59 PM »

Offline Pig

  • Trade Count: (0)
  • Newbie
  • *
  • P
  • Posts: 7
  • Country: us
  • Gender: Male
    • View Profile
how to go to Admin Zone ?

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #5 on: January 06, 2017, 03:01:51 PM »

Offline alamin

  • Forum Admin
  • Administrator
  • Trade Count: (0)
  • Newbie
  • *****
  • Posts: 120
  • Country: bd
  • Gender: Male
    • View Profile
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. :)

how to go to Admin Zone ?
Go to here:

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #6 on: January 08, 2017, 12:43:26 PM »

Offline Pig

  • Trade Count: (0)
  • Newbie
  • *
  • P
  • Posts: 7
  • Country: us
  • Gender: Male
    • View Profile
thanks  :D, another question ?
can you make it a Wordpress Bitcoin faucet ?

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #7 on: January 08, 2017, 08:19:06 PM »

Offline alamin

  • Forum Admin
  • Administrator
  • Trade Count: (0)
  • Newbie
  • *****
  • Posts: 120
  • Country: bd
  • Gender: Male
    • View Profile
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???

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #8 on: January 09, 2017, 07:22:58 AM »

Offline Pig

  • Trade Count: (0)
  • Newbie
  • *
  • P
  • Posts: 7
  • Country: us
  • Gender: Male
    • View Profile
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!

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #9 on: January 11, 2017, 09:25:48 PM »

Offline alamin

  • Forum Admin
  • Administrator
  • Trade Count: (0)
  • Newbie
  • *****
  • Posts: 120
  • Country: bd
  • Gender: Male
    • View Profile
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...

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #10 on: January 12, 2017, 02:25:26 PM »

Offline Pig

  • Trade Count: (0)
  • Newbie
  • *
  • P
  • Posts: 7
  • Country: us
  • Gender: Male
    • View Profile
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.

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #11 on: January 12, 2017, 03:46:43 PM »

Offline alamin

  • Forum Admin
  • Administrator
  • Trade Count: (0)
  • Newbie
  • *****
  • Posts: 120
  • Country: bd
  • Gender: Male
    • View Profile
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.

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #12 on: January 17, 2017, 02:22:31 AM »

Offline Dnjepyriat

  • Trade Count: (0)
  • Newbie
  • *
  • D
  • Posts: 1
  • Country: bt
  • Gender: Male
    • View Profile
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!

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #13 on: January 17, 2017, 08:39:09 AM »

Offline alamin

  • Forum Admin
  • Administrator
  • Trade Count: (0)
  • Newbie
  • *****
  • Posts: 120
  • Country: bd
  • Gender: Male
    • View Profile
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:

Then check if it works and tell me. :)
« Last Edit: January 17, 2017, 08:55:23 AM by alamin »

Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
« Reply #14 on: January 19, 2017, 02:49:03 AM »

Offline simplymieke

  • Trade Count: (0)
  • Newbie
  • *
  • s
  • Posts: 1
    • View Profile
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...