Bitcoin Forum
May 25, 2024, 06:10:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 16 17 18 »  All
  Print  
Author Topic: MiniFaucet Script (a MyFaucet replacement)  (Read 51971 times)
nahtnam
Legendary
*
Offline Offline

Activity: 1092
Merit: 1000


nahtnam.com


View Profile WWW
January 13, 2014, 12:25:18 AM
 #121

i re upload all file to my server but it still same :S

Unless you show us some errors, we cant really tell you whats wrong. What hosting provider do you guys use?

hostinghood.com

http://prntscr.com/2iuuas
this is my error log page Cheesy nothing.. Cheesy i am looking new host Cheesy free Tongue

You can buy hosting with bitcoin at http://www.cleverpuffin.com - we're so cheap that we're virtually free.

$5 isnt that free...

You can create-your-own hosting account for as little as 0.000459 BTC. Perhaps you missed that....


I get 2k views per week (my faucet is broken). I use: 206.4 MB total bandwidth

Before I was getting around 10k views per week

Plus I have a lot of subdomains. Dont want to hate, just your claim is inaccurate.

kacak41
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
January 13, 2014, 02:36:55 AM
 #122

000webhost not support php 5.3 Sad my site down Sad
nahtnam
Legendary
*
Offline Offline

Activity: 1092
Merit: 1000


nahtnam.com


View Profile WWW
January 13, 2014, 03:29:24 AM
 #123

000webhost not support php 5.3 Sad my site down Sad

Thats too bad! Sad Here is a REALLY good one that you can use. http://2freehosting.com/

kacak41
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
January 13, 2014, 12:17:48 PM
 #124

http://www.btcking.tk/

now it's working thanks all Smiley
but i have only 85,232 satoshis for faucet. Cheesy
looking some sponsors Smiley

I can give direct link in my site...
nahtnam
Legendary
*
Offline Offline

Activity: 1092
Merit: 1000


nahtnam.com


View Profile WWW
January 13, 2014, 03:00:35 PM
 #125

http://www.btcking.tk/

now it's working thanks all Smiley
but i have only 85,232 satoshis for faucet. Cheesy
looking some sponsors Smiley

I can give direct link in my site...

If you offer only 20-30 satoshis then you should be fine for a while.

devthedev
Legendary
*
Offline Offline

Activity: 1050
Merit: 1004



View Profile
January 13, 2014, 03:02:29 PM
 #126

000webhost not support php 5.3 Sad my site down Sad

You could buy a Raspberry pi for $25 and host your faucet on it.

KoningKaas
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
January 13, 2014, 03:05:46 PM
 #127

000webhost not support php 5.3 Sad my site down Sad

You could buy a Raspberry pi for $25 and host your faucet on it.

Faucet's have a tendency of being added too lists and rotators, after which u will usually get around 10k/20k pageviews a day, i dont think my Pi will handle that..
Altho i might try it cus it's an cool idea  Grin

http://www.btcking.tk/

now it's working thanks all Smiley
but i have only 85,232 satoshis for faucet. Cheesy
looking some sponsors Smiley

I can give direct link in my site...

30 satoshi , 2 times a day thats 60 satoshi a day and a 20k payout, people are not gonna be bothered doing that..

If u want to use lower payout i suggest using Microwallet.
Mike_cs
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile WWW
January 13, 2014, 03:42:42 PM
Last edit: January 13, 2014, 05:35:05 PM by Mike_cs
 #128

EDITED

Show Users Info and Pending Payments (balance >= $cashout) on Admin Panel (Primitive Way)

templates/admin.php @ line 28
Code:
        <li><a data-target="#users" data-toggle="tab">Users</a></li>
        <li><a data-target="#payments" data-toggle="tab">Payments</a></li>

templates/admin.php @ line 65
Code:
        <div class="tab-pane" id="users">
            <h4>Users</h4>
            <div class="span6">
                <table class="well table table-striped">
                    <caption>Users</caption>
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>Address</th>
                        <th>Balance</th>
                        <th>Referrals</th>
                        <th>Referred by</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        
while ($users fetch_assoc($getUsersData_query)): 
                            
$userReferrals_query sql_query("SELECT COUNT(*) AS referrals FROM balances WHERE referredby = '".$users['id']."'");
                            
$referrals fetch_assoc($userReferrals_query); ?>

                            <tr>
                                <td><span id="summary-user-id"><?php echo $users["id"]; ?></span></td>
                                <td><span id="summary-user-address"><?php echo $users["email"]; ?></span></td>
                                <td><span id="summary-user-balance"><?php echo $users["balance"]; ?></span></td>
                                <td><span id="summary-user-referrals"><?php echo $referrals["referrals"]; ?></span></td>
                                <td><span id="summary-user-referred"><?php echo $users["referredby"]; ?></span></td>
                            </tr>
                        <?php endwhile; ?>
                </tbody>
                </table>
            </div>
        </div>
        
        <div class="tab-pane" id="payments">
            <h4>Payments</h4>
            <div class="span6">
                <table class="well table table-striped">
                    <caption>Payments Pending</caption>
                    <tbody>
                        <tr>
                            <td>Number of addresses</td>
                            <td><span id="summary-addresses"><?php echo $paymentAddresses["num_addresses"]; ?></span></td>
                        </tr>
                        <?php while ($usersPayment fetch_assoc($usersPaymentData_query)): ?>
                            <tr>
                                <td>ID </td>
                                <td><span id="summary-user-id"><?php echo $usersPayment["id"]; ?></span></td>
                                <td>Address </td>
                                <td><span id="summary-user-address"><?php echo $usersPayment["email"]; ?></span></td>
                                <td>Balance </td>
                                <td><span id="summary-user-balance"><?php echo $usersPayment["balance"]; ?></span></td>
                            </tr>
                        <?php endwhile; ?>
                 </tbody>
                </table>
            </div>
        </div>
    </div>

index.php @ line 147
Code:
			$sql = "SELECT * FROM balances WHERE email <> 'SERVERBALANCE' ORDER BY balance DESC";
$getUsersData_query = sql_query($sql);

$app->view()->setData('getUsersData_query', $getUsersData_query);

$sql = "SELECT COUNT(*) AS num_addresses FROM balances WHERE email <> 'SERVERBALANCE' AND balance >= '10000'";
$paymentAddresses_query = sql_query($sql);
$paymentAddresses = fetch_assoc($paymentAddresses_query);

$app->view()->setData('paymentAddresses', $paymentAddresses);

$sql = "SELECT * FROM balances WHERE email <> 'SERVERBALANCE' AND balance >= '10000'";
$usersPaymentData_query = sql_query($sql);

$app->view()->setData('usersPaymentData_query', $usersPaymentData_query);

Still somethings to do... In index.php the $cashout isn't accepted, meanwhile I changed to the actual value.

EDIT

templates/faucet @line 35 (?)

Code:
        <script>
            var secsLeft = <?php echo $forcewait?>;
            setInterval(function(){
                secsLeft--;
                if(secsLeft > 0){
                    $("#claimbtn").attr("disabled", true);
                    $('#claimbtn').val('Wait ' + secsLeft + 's');
                } else if(secsLeft == 0){
                    $("#claimbtn").attr("disabled", false);
                    $('#claimbtn').removeClass('disabled');
                    $('#claimbtn').val('Claim');
                }
            }, 1000);
        </script>

When timer was set, the button was clickable even with the time counting. $("#claimbtn").attr("disabled", true); will manage disable attribute for the input button.
devthedev
Legendary
*
Offline Offline

Activity: 1050
Merit: 1004



View Profile
January 13, 2014, 04:42:50 PM
 #129

000webhost not support php 5.3 Sad my site down Sad

You could buy a Raspberry pi for $25 and host your faucet on it.

Faucet's have a tendency of being added too lists and rotators, after which u will usually get around 10k/20k pageviews a day, i dont think my Pi will handle that..
Altho i might try it cus it's an cool idea  Grin

http://www.btcking.tk/

now it's working thanks all Smiley
but i have only 85,232 satoshis for faucet. Cheesy
looking some sponsors Smiley

I can give direct link in my site...

30 satoshi , 2 times a day thats 60 satoshi a day and a 20k payout, people are not gonna be bothered doing that..

If u want to use lower payout i suggest using Microwallet.

I hosted DevFaucet at one time on a Pi. Had about 20k dispenses/day.

kacak41
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
January 13, 2014, 04:43:31 PM
 #130

this script need adblock detecter and logo system Smiley
KoningKaas
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
January 13, 2014, 05:22:58 PM
 #131

I hosted DevFaucet at one time on a Pi. Had about 20k dispenses/day.

wow, and did it handle it nicely without any lag etc?
If i remember correct DevFaucet was a inputs.io faucet, it should handle this pretty easily too then  Grin

Gonna grab my dusty Pi and put it too use
nahtnam
Legendary
*
Offline Offline

Activity: 1092
Merit: 1000


nahtnam.com


View Profile WWW
January 13, 2014, 05:52:28 PM
 #132

I hosted DevFaucet at one time on a Pi. Had about 20k dispenses/day.

wow, and did it handle it nicely without any lag etc?
If i remember correct DevFaucet was a inputs.io faucet, it should handle this pretty easily too then  Grin

Gonna grab my dusty Pi and put it too use

Just use DO

devthedev
Legendary
*
Offline Offline

Activity: 1050
Merit: 1004



View Profile
January 13, 2014, 08:49:05 PM
 #133

I hosted DevFaucet at one time on a Pi. Had about 20k dispenses/day.

wow, and did it handle it nicely without any lag etc?
If i remember correct DevFaucet was a inputs.io faucet, it should handle this pretty easily too then  Grin

Gonna grab my dusty Pi and put it too use

Just use DO

DO, is $5/month. He could just use his RPi with cloudflare.

niktitan132
Legendary
*
Offline Offline

Activity: 1036
Merit: 1000



View Profile
January 13, 2014, 09:01:15 PM
 #134

How to configure this faucet for other altcoins?
nahtnam
Legendary
*
Offline Offline

Activity: 1092
Merit: 1000


nahtnam.com


View Profile WWW
January 13, 2014, 10:03:12 PM
 #135

I hosted DevFaucet at one time on a Pi. Had about 20k dispenses/day.

wow, and did it handle it nicely without any lag etc?
If i remember correct DevFaucet was a inputs.io faucet, it should handle this pretty easily too then  Grin

Gonna grab my dusty Pi and put it too use

Just use DO

DO, is $5/month. He could just use his RPi with cloudflare.

But you have to pay for Internet and it might go down, and will be slower than a do server... Just saying.

devthedev
Legendary
*
Offline Offline

Activity: 1050
Merit: 1004



View Profile
January 13, 2014, 11:01:04 PM
 #136

True, I guess it also depends on your location. (Network Speeds and such)

nahtnam
Legendary
*
Offline Offline

Activity: 1092
Merit: 1000


nahtnam.com


View Profile WWW
January 13, 2014, 11:17:46 PM
 #137

True, I guess it also depends on your location. (Network Speeds and such)

Ya its pretty fun to mess around with.

kacak41
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
January 14, 2014, 03:20:03 AM
 #138

this script need adblock detecter and logo system Smiley

How can i add adblock detector. and how i set logo here http://prntscr.com/2j6d0s not only letters...
nahtnam
Legendary
*
Offline Offline

Activity: 1092
Merit: 1000


nahtnam.com


View Profile WWW
January 14, 2014, 03:31:28 AM
 #139

Just my 2 cents here. Maybe update the design, instead of copying myfaucet from TF? The design is plain and old.

nahtnam
Legendary
*
Offline Offline

Activity: 1092
Merit: 1000


nahtnam.com


View Profile WWW
January 14, 2014, 03:35:12 AM
 #140

this script need adblock detecter and logo system Smiley

How can i add adblock detector. and how i set logo here http://prntscr.com/2j6d0s not only letters...

Take out the text. Then upload your image onto the server. Then put

Code:
<img src="path_to_your_image" width="100px" height="100px" alt="btc king" />

Pages: « 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 16 17 18 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!