CoinTalk Forum

Faucet Owner's Zone => Faucet Scripts, Add-ons, Plugins => 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.
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: okorieemmanuel on April 29, 2017, 01:20:04 PM
Please I am facing a little problem on my faucet.  After installing faucetsystem script, (uploading the dump file on my data base and giving 755 permission privilege to tmp folder,changing username and password on config.php,uploading all files into  public folder,) I am getting a blank screen when I visit the webpage. Sometimes an error message HTTP 500 shows up.

I don't know maybe my settings is wrong or I'm yet to do something else for the page to load.

Please kindly assist me in resolving this issue.

Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on April 29, 2017, 02:41:18 PM
You are not allowed to view links. Register or Login
Please I am facing a little problem on my faucet.  After installing faucetsystem script, (uploading the dump file on my data base and giving 755 permission privilege to tmp folder,changing username and password on config.php,uploading all files into  public folder,) I am getting a blank screen when I visit the webpage. Sometimes an error message HTTP 500 shows up.

I don't know maybe my settings is wrong or I'm yet to do something else for the page to load.

Please kindly assist me in resolving this issue.
okay, no problem... open error_log file and show me the errors...
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: okorieemmanuel on April 29, 2017, 04:46:21 PM
Please I am a novice and would like you to give me details on how to get this error log file. Is it from the data base created using the dump.sql command? On my host website panel, I can't find any error log file except this one attached. Log file.

Please assist me
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on April 29, 2017, 04:52:33 PM
You are not allowed to view links. Register or Login
Please I am a novice and would like you to give me details on how to get this error log file. Is it from the data base created using the dump.sql command? On my host website panel, I can't find any error log file except this one attached. Log file.

Please assist me
Don't worry... I am here to help everyone... If you want to get error log file, just open your file manager and go to public_html/where your faucet is installed...
Anyway, give answers of these questions below:
1. Is this script installed in root directory?
2. Have you imported SQL dump into the database?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: okorieemmanuel on April 29, 2017, 05:14:40 PM
Yes I have installed the dump.sql
I also put all the files on the public directory folder.

The website is http://emmonfaucet.ga

Find attached more information about the error on the sql data.

Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on April 29, 2017, 05:20:56 PM
You are not allowed to view links. Register or Login
Yes I have installed the dump.sql
I also put all the files on the public directory folder.

The website is http://emmonfaucet.ga

Find attached more information about the error on the sql data.
okay, open .htaccess file and remove all codes. Then add below codes:
Code: You are not allowed to view links. Register or Login
AddDefaultCharset UTF-8

RewriteEngine On
RewriteBase /

DirectoryIndex index.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]

If this doesn't work, tell me which php version your server has?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: okorieemmanuel on April 29, 2017, 05:33:17 PM
The code you gave me is the same code on htaccess file.  I checked it using dreamweaver. Furthermore, I am using php 7.0. 8

I don't know what I'm doing wrong.

This is a screen shot of my website
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: okorieemmanuel on April 29, 2017, 05:39:28 PM
There is no error log file and cgi-bin was manually put there by me. I saw on your screen shot that there was cgi-bin so I put mine too. Looks dumb but that's what I did.  Please is that the reason the site is not loading?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on April 29, 2017, 07:24:25 PM
@okorieemmanuel,
Very strange problem!!! I'm really confused now... Is it possible for you to give me cPanel access so that I can check and try to fix this problem?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: okorieemmanuel on April 29, 2017, 07:52:28 PM
I'm sorry, I can't do that. Thank you for your assistance . I appreciate it. I think I will delete everything and download epay.info faucet. They have a video presentation of how to install the faucet there for dummies or novice like me. I really would love to use this faucet though. However,  I can't continue to waste my time and effort configuring a faucet.


Once again,  thank you!
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on April 29, 2017, 09:06:22 PM
You are not allowed to view links. Register or Login
I'm sorry, I can't do that. Thank you for your assistance . I appreciate it. I think I will delete everything and download epay.info faucet. They have a video presentation of how to install the faucet there for dummies or novice like me. I really would love to use this faucet though. However,  I can't continue to waste my time and effort configuring a faucet.


Once again,  thank you!
It's okay, no problem... Good luck...!
You are most welcome... :)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: nahoor on May 10, 2017, 09:06:02 AM
Please Add short link Integration
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: cayun on June 27, 2017, 05:19:13 PM
Hi all

I downloaded the script and changed the script snippets
the ref link was wrong but i saw a post to fixed the link that worked
but if 1 of my ref links makes a claim it dont pay out.

must i change something else to make it work

greetings cayun
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: x4love on July 06, 2017, 08:18:14 PM
Thanks  :nice:, another question?
how to set wait time equal 0 (default time >= 10)  :(
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: semoprof on July 09, 2017, 05:06:49 AM
i have the problem after open my fauce
demo : http://www.plansads.com/faucet/
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on July 10, 2017, 04:26:40 PM
You are not allowed to view links. Register or Login
Please Add short link Integration
wait ;)

You are not allowed to view links. Register or Login
Hi all

I downloaded the script and changed the script snippets
the ref link was wrong but i saw a post to fixed the link that worked
but if 1 of my ref links makes a claim it dont pay out.

must i change something else to make it work

greetings cayun
may I get your site link? :)

You are not allowed to view links. Register or Login
Thanks  :nice:, another question?
how to set wait time equal 0 (default time >= 10)  :(
well, it needs a bit modification...

You are not allowed to view links. Register or Login
i have the problem after open my fauce
demo : http://www.plansads.com/faucet/
hey, use root directory, not sub directory...
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: semoprof on July 10, 2017, 05:16:25 PM
look now http://www.plansads.com/faucet/

problem number 2 (https://s4.postimg.org/qs33leg31/Sans_titre58585.png)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: mrtokin on July 11, 2017, 12:31:42 PM
Hello alamin. I installed your playstation and it is running fine without any problems.

But what I care about and it runs in 1 folder. Alamin is there any way please help.

Thank you.  :)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on July 14, 2017, 02:14:50 AM
You are not allowed to view links. Register or Login
look now http://www.plansads.com/faucet/

problem number 2 (https://s4.postimg.org/qs33leg31/Sans_titre58585.png)
create a new database and import again...
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on July 14, 2017, 02:17:59 AM
You are not allowed to view links. Register or Login
Hello alamin. I installed your playstation and it is running fine without any problems.

But what I care about and it runs in 1 folder. Alamin is there any way please help.

Thank you.  :)
what do u mean by 1 folder?!
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: niewolnik on July 14, 2017, 03:55:59 AM
How i can add in this script short links?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: mrtokin on July 17, 2017, 12:25:19 PM
You are not allowed to view links. Register or Login
what do u mean by 1 folder?!

That's right I want it to run in a folder.
Then I can easily create many different faucets? Btc, eth, doge, and so on.

Sorry you can guide help.

Thank you.  :)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: okorieemmanuel on July 26, 2017, 04:32:38 AM
@ alamin.  I want to use this opportunity to thank you.  After epay crashed, I used your description to setup my faucet http://emmonfaucet.ga for faucet hub using faucetsystem script and it's working perfectly!!!


Thanks for your unlimited  contribution to the bitcoin community .