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.
Get full script [Pro version] for free: https://cointalk.club/downloads/?sa=view;down=18

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 .
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: kema00 on August 13, 2017, 04:26:31 PM
Hi, great tutorial.
The basic script seems to be working for me...
There are however two questions that plagues me.

1. In the basic script claim_first is generated from the template as soon as you enter the page. Claim_second is generated after clicking the button and claim_third after clicking the button on the second page.
How do I add an extra/new button on the 1st (claim_first.tpl) page and have that button generate a new page with a different template?
I have the new page working if I change the $this->assign... code  in guest.php, but when I try to add a new function to duplicate the "link" functionality I recieve 'Router: access denied.'

2. Is there a way to include short links? (I haven't started looking into this yet, since I need to solve problem 1 first.)

I'm sort of a perfectionist and this is driving me nuts. It would be awesome if you could help me out.
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: Naruto0150 on August 16, 2017, 09:38:53 PM
Alamin bro, could you please modify the script?? and integrate it with shortlnk??? i mean user must pass through the shortlink inorder to receive satoshi ....!
is it possible?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: CRYPTOPROFITSERRR on September 13, 2017, 07:09:46 PM
How to fasten the shortened link to the login button on the first page?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: CRYPTOPROFITSERRR on September 20, 2017, 06:58:19 PM
Guys can anyone know how to integrate on the first page captch me???
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 20, 2017, 07:08:46 PM
You are not allowed to view links. Register or Login
Guys can anyone know how to integrate on the first page captch me???
ask the script provider. ;)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 20, 2017, 07:10:24 PM
You are not allowed to view links. Register or Login
Alamin bro, could you please modify the script?? and integrate it with shortlnk??? i mean user must pass through the shortlink inorder to receive satoshi ....!
is it possible?
I didn't find any way to integrate. Integration may loose the security of the script. :(
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 20, 2017, 07:11:36 PM
You are not allowed to view links. Register or Login
@ 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 .
You are most welcome and thank you for your nice words. :)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: CRYPTOPROFITSERRR on September 20, 2017, 07:13:30 PM
put instead of a recapitulation or a solve media
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 20, 2017, 07:15:58 PM
You are not allowed to view links. Register or Login
Hi, great tutorial.
The basic script seems to be working for me...
There are however two questions that plagues me.

1. In the basic script claim_first is generated from the template as soon as you enter the page. Claim_second is generated after clicking the button and claim_third after clicking the button on the second page.
How do I add an extra/new button on the 1st (claim_first.tpl) page and have that button generate a new page with a different template?
I have the new page working if I change the $this->assign... code  in guest.php, but when I try to add a new function to duplicate the "link" functionality I recieve 'Router: access denied.'

2. Is there a way to include short links? (I haven't started looking into this yet, since I need to solve problem 1 first.)

I'm sort of a perfectionist and this is driving me nuts. It would be awesome if you could help me out.
1. You need to modify the .htaaccess file.
2. I haven't found any solution yet. :'(
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 20, 2017, 07:17:15 PM
You are not allowed to view links. Register or Login
put instead of a recapitulation or a solve media
well, I will have to check that.
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: aspiani on September 21, 2017, 08:20:29 AM
thanks bro for scripts

http://cryptofucet.top (http://cryptofucet.top)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: kema00 on September 21, 2017, 12:30:57 PM
I can confirm that it's all doable.
I have interstitial ad links implemented, have changed captcha provider, have figured out how to navigate the pages and use the database in an expanded capacity.
However, my code isn't pretty. It gets the job done but I'd be ashamed to show it to anyone, lol. In all honesty, there isn't all that much left of the original code, most of it has been replaced by custom code written by myself. You can check it out at KemaBTC (http://kemafaucet.com)
I'm convinced that alamin or maybe some other coding pro out there will be able to do all this in a much slicker way.
(Next on the to-do list is figuring out how to modify the script for multiple faucets, but that'll be a much bigger project I'm afraid.)

P.S. I'm always interested in hearing opinions on the design of the faucet. Feedback is important... ;D
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 21, 2017, 01:04:29 PM
You are not allowed to view links. Register or Login
thanks bro for scripts

http://cryptofucet.top (http://cryptofucet.top)
no prb!
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: aspiani on September 21, 2017, 01:11:47 PM
referral link does not work
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 21, 2017, 01:12:04 PM
You are not allowed to view links. Register or Login
I can confirm that it's all doable.
I have interstitial ad links implemented, have changed captcha provider, have figured out how to navigate the pages and use the database in an expanded capacity.
However, my code isn't pretty. It gets the job done but I'd be ashamed to show it to anyone, lol. In all honesty, there isn't all that much left of the original code, most of it has been replaced by custom code written by myself. You can check it out at KemaBTC (http://kemafaucet.com)
I'm convinced that alamin or maybe some other coding pro out there will be able to do all this in a much slicker way.
(Next on the to-do list is figuring out how to modify the script for multiple faucets, but that'll be a much bigger project I'm afraid.)

P.S. I'm always interested in hearing opinions on the design of the faucet. Feedback is important... ;D
Hello there! You have done very good job! Many people want to add short links on faucetsystem script. I myself last touched coding almost ~2~ months ago because of my exams. It's very cool that you have found a way to integrate short links on faucetsystem script. :nice: I will be very happy if you share your codes to the community. I will try to help you to make everything much slicker. :)
And multiple faucet? You mean subdomain or directory?
And your design is pretty nice, but some borders will make it more nice. :nice: :)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 21, 2017, 01:21:42 PM
You are not allowed to view links. Register or Login
referral link does not work
I have added the full Pro version, download from here: https://cointalk.club/downloads/?sa=view;down=18
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: aspiani on September 21, 2017, 01:27:42 PM

ok, i will try. thank you
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 22, 2017, 04:35:34 AM
You are not allowed to view links. Register or Login
I have added the full Pro version, download from here: https://cointalk.club/downloads/?sa=view;down=18

Hi, I followed all step but get the following:

Error: SQLSTATE[42000] [1044] Access denied for user 'alredycz_db'@'localhost' to database 'faucet'

Says check config, but all info is correct.. I made sure to grant tmp 755

Thank you for this!  :)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 22, 2017, 11:51:14 AM
You are not allowed to view links. Register or Login
ok, i will try. thank you
you are most welcome. :)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 22, 2017, 11:52:16 AM
You are not allowed to view links. Register or Login
Hi, I followed all step but get the following:

Error: SQLSTATE[42000] [1044] Access denied for user 'alredycz_db'@'localhost' to database 'faucet'

Says check config, but all info is correct.. I made sure to grant tmp 755

Thank you for this!  :)
make sure you have given proper permission to the database user when you created the database.
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 22, 2017, 12:01:27 PM
You are not allowed to view links. Register or Login
make sure you have given proper permission to the database user when you created the database.

I gave full permission to db user.. sry lost link to forum and couldn't update, tried multiple times but got same result each time

edit: also, I have no problem setting up the normal faucetinbox... so maybe when I did the !dump ? I dont see how though because it says successful
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 22, 2017, 12:23:18 PM
You are not allowed to view links. Register or Login
I gave full permission to db user.. sry lost link to forum and couldn't update, tried multiple times but got same result each time

edit: also, I have no problem setting up the normal faucetinbox... so maybe when I did the !dump ? I dont see how though because it says successful
Check your database password, make sure there is not any space or $.
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: kema00 on September 22, 2017, 12:43:01 PM
With the help of alamin, I am now one step closer to having presentable code. It's still a bit of a mess but the Developer API has been implemented in the Faucetsystem script now.
It's running on my faucet with the bonus links...
The Faucetsystem script is by no means an easy script to personalize if compared to some of the others out there, but it can be done. And for some reason I've grown quite fond of this script?

1. You need to have some kind of action that initialize the script. A formaction is probably the most common way of doing this but it can be done in different ways.
2. So, once you have a trigger like a button or whatever, you need a php function to be run. Most commonly this is done with the code for the form submission. I use a custom function for my links...
3. In this php function you'll want to place the following code.
Code: You are not allowed to view links. Register or Login
$rnd = intval(rand(1000,9999)); //generate random number and place it in a variable
$long_url = urlencode('yourURL.com'); //destination link properly urlencoded. Depending on how you want to set your security up, this is where you want to incorporate the $rnd in your url somehow.
$api_token = $user->'yourAPItoken'; //API token. You can store your API token in many ways but you need to store it in a variable to use it at this point. Re-write the row to fit your particular solution, the important part is that you have the APItoken available in $api_token.
$api_url = "https://yourproviderURL.com/api/?api={$api_token}&url={$long_url}&format=text"; // Since the script is used by several url shorteners, you need to get the right url for your provider. Some also use additional flags. MadPay uses an additional flag to turn on interstitial advertising for example, see the MadPay webpage for details.
$result = @file_get_contents($api_url); // The shortened url will now be stored in $result as a text string.
4. Now you have a random code stored in $rnd and also part of the target URL.
5. $result holds the shortened url.
6. Find a way to store $rnd so that you can use it for verification once the target URL is loaded. (File, database,Session variable, cookie,...)
7. Send the visitor to the URL stored in $result. header('location... will be the preferred way I believe.
8. Set up some kind of verification in the php function for the arrival page, using the value from $rnd. It can be done with simple if statements, but I'm sure there are other ways as well.
9. To deal with the internal security of the faucetsystem script, you'll want to use your regular landing page for the short link. So, using the function names as originally given in the script. getClaimFirst will be the function to deal with the verification of the link. It's already set up to record any referral "code" passed along, use this, it makes it pretty easy to set up your own flavor of verification.
The rest depends on individual implementation depending on how you want to use the short link. If you want it as a bonus link on your arrival page or if you want it as a part of the claim chain. If you want to use it as part of the claim chain, you'll have to construct a way to save relevant parameters so they can be passed along with the call for the destination template.

For those of you who were hoping for a straight cut'n'paste code snippet, I'm sorry.
I believe in teaching people how to dig their own well rather than just handing out water.
Try to find your own way and I'll try to answer any questions you might have. I will not give you a complete turnkey ready solution.
I'm sure there will be a lot of questions, but try to learn to understand the code that you're about to modify, this is important. It's actually really simple to incorporate this functionality but you need to be focused so that you don't accidentally screw something up.
Any questions, just post them here in the thread and I'll try to answer them as best as I can. Individual application is important...

If you want turnkey ready code, send me a pm and we can talk about a paid solution. I only have my own heavily modified code, so any turnkey ready code will have to be done on commission.
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 22, 2017, 12:57:57 PM
You are not allowed to view links. Register or Login
Check your database password, make sure there is not any space or $.
Never used either.. I am setting up new faucet now so I'll figure it out, thanks for the responses

edit: same result... just dont see how set up is basically the same as any other script and I have this issue.. gonna keep trying
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 22, 2017, 01:08:42 PM
@kema00, great job! I highly appreciate that. Now our members will have integration of short links in faucetsystem script if they wants. It will be nice if you give your faucet's link so that members can see that it's actually working. Again, thank you for doing this. :nice:
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 22, 2017, 01:14:48 PM
You are not allowed to view links. Register or Login
Never used either.. I am setting up new faucet now so I'll figure it out, thanks for the responses

edit: same result. I'm new to coding and all this but the process is identical to setting up other scripts, just with the added SQL dump so I just don't understand
okay, so seems u have problem with dumping SQL?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: kema00 on September 22, 2017, 01:15:37 PM
You are not allowed to view links. Register or Login
@kema00, great job! I highly appreciate that. Now our members will have integration of short links in faucetsystem script if they wants. It will be nice if you give your faucet's link so that members can see that it's actually working. Again, thank you for doing this. :nice:

Ah, sure. I thought I had it in my sig already?
KemaBTC (http://kemafaucet.com) (http://kemfaucet.com)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 22, 2017, 01:17:12 PM
You are not allowed to view links. Register or Login
okay, so seems u have problem with dumping SQL?
seems that way, but when I do the dump it says successful and items get listed under name... currently removing everything and starting clean, will update
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 22, 2017, 01:26:17 PM
You are not allowed to view links. Register or Login
Ah, sure. I thought I had it in my sig already?
KemaBTC (http://kemafaucet.com) (http://kemfaucet.com)
it's just something like highlighting. ;)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 22, 2017, 01:26:45 PM
You are not allowed to view links. Register or Login
seems that way, but when I do the dump it says successful and items get listed under name... currently removing everything and starting clean, will update
which hosting u r using?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 22, 2017, 01:27:39 PM
You are not allowed to view links. Register or Login
which hosting u r using?
namecheap w/ value hosting

same thing.. it tells me to check config.php..  Error: SQLSTATE[42000] [1044]

Maybe silly question but do I change MYSQL_BASE or SERVER? I left those two alone
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 22, 2017, 01:44:19 PM
You are not allowed to view links. Register or Login
namecheap w/ value hosting

same thing.. it tells me to check config.php..  Error: SQLSTATE[42000] [1044]

Maybe silly question but do I change MYSQL_BASE or SERVER? I left those two alone
Got your mistake! MYSQL_SERVER is okay but MYSQL_BASE is your database name; you have to put the name of your database there!
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 22, 2017, 01:48:29 PM
You are not allowed to view links. Register or Login
Got your mistake! MYSQL_SERVER is okay but MYSQL_BASE is your database name; you have to put the name of your database there!
Success!
 :o wow I feel silly  :(

Thank you! I will hope to learn much coding for studying this script
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 22, 2017, 01:56:09 PM
You are not allowed to view links. Register or Login
Success!
 :o wow I feel silly  :(

Thank you! I will hope to learn much coding for studying this script
You are most welcome. but don't feel silly. Everyone does mistake when they are new. Good luck!
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 23, 2017, 12:53:41 AM
You are not allowed to view links. Register or Login
You are most welcome. but don't feel silly. Everyone does mistake when they are new. Good luck!
;D
I am setting up one site now, all is good except when I check darkly theme nothing shows up on page except header. Just thought I would notify

edit: I also see all redirects go to bitcoingame.cointalk.club :P
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 23, 2017, 11:28:00 AM
You are not allowed to view links. Register or Login
;D
I am setting up one site now, all is good except when I check darkly theme nothing shows up on page except header. Just thought I would notify

edit: I also see all redirects go to bitcoingame.cointalk.club :P
:tom:
what's your website link?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 23, 2017, 11:31:18 AM
You are not allowed to view links. Register or Login
:tom:
what's your website link?
Here is one waiting for ad approvals

phonemoney.io
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 23, 2017, 11:37:53 AM
You are not allowed to view links. Register or Login
Here is one waiting for ad approvals

phonemoney.io
hmm, nice work! :nice:
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 23, 2017, 11:40:40 AM
You are not allowed to view links. Register or Login
hmm, nice work! :nice:

Thanks.. I will do more to it later, spent too long putting sites up today  xD
Is it possible to make games with faucethub api? like hilo, coinflip?
scalability is key
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 23, 2017, 11:44:03 AM
You are not allowed to view links. Register or Login
Thanks.. I will do more to it later, spent too long putting sites up today  xD
Is it possible to make games with faucethub api? like hilo, coinflip?
scalability is key
yes, it's possible. Faucethub API is just a payment processor. you can use it anywhere you want.
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 23, 2017, 11:53:35 AM
You are not allowed to view links. Register or Login
yes, it's possible. Faucethub API is just a payment processor. you can use it anywhere you want.
If I may ask, what direction would you suggest I take my coding education if I want to pursue this? I noticed most coin scripts were wrote in php so I got a course on it, but I don't see that being what I want to learn in this situation.. Maybe after to build log in system?

I don't know anyone else who codes or where else to ask these questions, so thank you for your help with everything for real
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 23, 2017, 12:04:10 PM
You are not allowed to view links. Register or Login
If I may ask, what direction would you suggest I take my coding education if I want to pursue this? I noticed most coin scripts were wrote in php so I got a course on it, but I don't see that being what I want to learn in this situation.. Maybe after to build log in system?

I don't know anyone else who codes or where else to ask these questions, so thank you for your help with everything for real
You need to learn how faucet works. You will have to study on faucet scripts. Read alpha script codes, it's pretty much easy to understand. Mainly a faucet works as: user put his address and solve the captcha, then get rewards. So after finishing this part, learn how Faucethub API works. You will find API documentation on Faucethub. When you will be able to make your own script for your faucet, then think about adding games, lottery etc.
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 23, 2017, 12:06:39 PM
You are not allowed to view links. Register or Login
You need to learn how faucet works. You will have to study on faucet scripts. Read alpha script codes, it's pretty much easy to understand. Mainly a faucet works as: user put his address and solve the captcha, then get rewards. So after finishing this part, learn how Faucethub API works. You will find API documentation on Faucethub. When you will be able to make your own script for your faucet, then think about adding games, lottery etc.

Makes sense, thanks  :)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 23, 2017, 12:09:35 PM
You are not allowed to view links. Register or Login
Makes sense, thanks  :)
no problem, you are most welcome. :)
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 26, 2017, 07:12:10 AM
I noticed today that when I am on the Technical Information page, when I try to move from page one to another page it gives me the following error "Router: access denied"

Only issue I've run into after setting up  :nice:

Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 26, 2017, 12:38:38 PM
You are not allowed to view links. Register or Login
I noticed today that when I am on the Technical Information page, when I try to move from page one to another page it gives me the following error "Router: access denied"

Only issue I've run into after setting up  :nice:
I haven't understood. What do u mean by Technical Information page?
Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: phonemoney.cash on September 26, 2017, 01:01:50 PM
You are not allowed to view links. Register or Login
I haven't understood. What do u mean by Technical Information page?

Sorry,

"Actions" page

https://i.gyazo.com/0cb1b4ab9917fe12ede30e23cc2368d0.png

Title: Re: How to use FaucetSystem.com's script for FaucetHub.io faucets
Post by: alamin on September 26, 2017, 01:25:16 PM
You are not allowed to view links. Register or Login
Sorry,

"Actions" page

https://i.gyazo.com/0cb1b4ab9917fe12ede30e23cc2368d0.png
okay, have you modified anything in script?