Author Topic: Integration of Short Links in FaucetBOX Script  (Read 886 times)

0 Members and 1 Guest are viewing this topic.

Offline alamin

  • Administrator
  • Initiate
  • *****
  • Posts: 265
  • Country: bd
  • Gender: Male
  • Referrals: 16
Integration of Short Links in FaucetBOX Script
« on: April 27, 2017, 07:33:08 PM »
Hi mates! Today I am going to show you how to integrate short links in your site. I will use my shortener You are not allowed to view links. Register or Login here.

Firstly, download this You are not allowed to view links. Register or Login, upload it on root directory and unzip.

Open links/config.php file and put your own values.

Then open root index.php file and find:
Code: You are not allowed to view links. Register or Login
$fb = new Service($data['service'], $data["apikey"], $data["currency"], $connection_options);Add before:
Code: You are not allowed to view links. Register or Login
require_once("links/config.php");

function getUserIP()
{
    $client  = @$_SERVER['HTTP_CLIENT_IP'];
    $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
    $remote  = $_SERVER['REMOTE_ADDR'];

    if(filter_var($client, FILTER_VALIDATE_IP))
    {
        $getip = $client;
    }
    elseif(filter_var($forward, FILTER_VALIDATE_IP))
    {
        $getip = $forward;
    }
    else
    {
        $getip = $remote;
    }
    return $getip;
}
$userip = getUserIP();
$lnk_lnk = "links/lnk/$userip.xxx"; //link path
if (file_exists($lnk_lnk)) {
     $check_link = file_get_contents($lnk_lnk); //check status
     if ($check_link == 200) {
         $reward += $extra;
     }
}
Then find:
Code: You are not allowed to view links. Register or Login
if ($ret['success']) {Add after:
Code: You are not allowed to view links. Register or Login
           $status = "done";
           $m_lnk = fopen($lnk_lnk, "w");
           fwrite($m_lnk, $status);
           fclose($m_lnk);

Now open templates/your_template/index.php and put this code anywhere after <body> tag to display the widget:
Code: You are not allowed to view links. Register or Login
<?php require_once("links/display.php"); ?>
That's it. If you face any problem, never hesitate to contact with me. :)
« Last Edit: April 27, 2017, 07:36:42 PM by alamin »


Offline bobitotv

  • Newbie
  • *
  • Posts: 5
  • Country: mg
  • Gender: Male
  • Referrals: 0
    • Konstantinova - An amazing Bitcoin Faucet
Re: Integration of Short Links in FaucetBOX Script
« Reply #1 on: April 27, 2017, 07:50:15 PM »
Hi Alamin,

I have downloaded the file and when I unzip it I only have link.php and verifier.php

I don't have the config.php and display.php

I'm a little bit lost

Thank you very much

Offline alamin

  • Administrator
  • Initiate
  • *****
  • Posts: 265
  • Country: bd
  • Gender: Male
  • Referrals: 16
Re: Integration of Short Links in FaucetBOX Script
« Reply #2 on: April 27, 2017, 07:57:54 PM »
You are not allowed to view links. Register or Login
Hi Alamin,

I have downloaded the file and when I unzip it I only have link.php and verifier.php

I don't have the config.php and display.php

I'm a little bit lost

Thank you very much
may be you have downloaded Dice Script's files. Please download again. :)

Offline bobitotv

  • Newbie
  • *
  • Posts: 5
  • Country: mg
  • Gender: Male
  • Referrals: 0
    • Konstantinova - An amazing Bitcoin Faucet
Re: Integration of Short Links in FaucetBOX Script
« Reply #3 on: April 27, 2017, 08:08:17 PM »
I download it again and I have the same file inside, I've checked and It's not for the dice but for for faucetbox.

Would you please send me it a link or the file by mail?

Offline alamin

  • Administrator
  • Initiate
  • *****
  • Posts: 265
  • Country: bd
  • Gender: Male
  • Referrals: 16
Re: Integration of Short Links in FaucetBOX Script
« Reply #4 on: April 27, 2017, 08:14:50 PM »
You are not allowed to view links. Register or Login
I download it again and I have the same file inside, I've checked and It's not for the dice but for for faucetbox.

Would you please send me it a link or the file by mail?
I have re-uploaded the file, please check now...

Offline bobitotv

  • Newbie
  • *
  • Posts: 5
  • Country: mg
  • Gender: Male
  • Referrals: 0
    • Konstantinova - An amazing Bitcoin Faucet
Re: Integration of Short Links in FaucetBOX Script
« Reply #5 on: April 27, 2017, 08:29:00 PM »
You are not allowed to view links. Register or Login
I have re-uploaded the file, please check now...

Thank you, it's OK now :) gonna test it

Offline alamin

  • Administrator
  • Initiate
  • *****
  • Posts: 265
  • Country: bd
  • Gender: Male
  • Referrals: 16
Re: Integration of Short Links in FaucetBOX Script
« Reply #6 on: April 27, 2017, 08:46:52 PM »
You are not allowed to view links. Register or Login
Thank you, it's OK now :) gonna test it
you're most welcome. tell me if you face any problem. :)

Offline bobitotv

  • Newbie
  • *
  • Posts: 5
  • Country: mg
  • Gender: Male
  • Referrals: 0
    • Konstantinova - An amazing Bitcoin Faucet
Re: Integration of Short Links in FaucetBOX Script
« Reply #7 on: April 27, 2017, 10:39:49 PM »
I have finished the integration. It seems to work perfectly  ;D

but I'd be happy to receive confirmation if it work.

You are not allowed to view links. Register or Login

Offline alamin

  • Administrator
  • Initiate
  • *****
  • Posts: 265
  • Country: bd
  • Gender: Male
  • Referrals: 16
Re: Integration of Short Links in FaucetBOX Script
« Reply #8 on: April 28, 2017, 12:26:40 AM »
You are not allowed to view links. Register or Login
I have finished the integration. It seems to work perfectly  ;D

but I'd be happy to receive confirmation if it work.

You are not allowed to view links. Register or Login
Well done!
I have just finished testing your faucet, it is working perfectly. And your faucet is really awesome! Awesome design...

Offline bobitotv

  • Newbie
  • *
  • Posts: 5
  • Country: mg
  • Gender: Male
  • Referrals: 0
    • Konstantinova - An amazing Bitcoin Faucet
Re: Integration of Short Links in FaucetBOX Script
« Reply #9 on: April 28, 2017, 01:25:29 AM »
You are not allowed to view links. Register or Login
Well done!
I have just finished testing your faucet, it is working perfectly. And your faucet is really awesome! Awesome design...

You've made an amazing work with this addon too, many thanks! :D

but I have a question, is it working with other currency like doge and litecoin?
I haven't tested yet.



Offline alamin

  • Administrator
  • Initiate
  • *****
  • Posts: 265
  • Country: bd
  • Gender: Male
  • Referrals: 16
Re: Integration of Short Links in FaucetBOX Script
« Reply #10 on: April 28, 2017, 09:43:38 AM »
You are not allowed to view links. Register or Login
You've made an amazing work with this addon too, many thanks! :D

but I have a question, is it working with other currency like doge and litecoin?
I haven't tested yet.
Thanks a lot for your nice words. :) :) :)
And yes, it will work perfectly with any other coin, just test and see. ;)

Offline savioroshan

  • Newbie
  • *
  • s
  • Posts: 16
  • Gender: Female
  • Referrals: 0
Re: Integration of Short Links in FaucetBOX Script
« Reply #11 on: April 28, 2017, 02:12:37 PM »
I integrated this into my faucet. Thanks a lot. Just wondering and admiring your codding skills.  How did you learn so much of codding, after all You are just a kid. Wow great.

Offline alamin

  • Administrator
  • Initiate
  • *****
  • Posts: 265
  • Country: bd
  • Gender: Male
  • Referrals: 16
Re: Integration of Short Links in FaucetBOX Script
« Reply #12 on: April 28, 2017, 02:23:23 PM »
You are not allowed to view links. Register or Login
I integrated this into my faucet. Thanks a lot. Just wondering and admiring your codding skills.  How did you learn so much of codding, after all You are just a kid. Wow great.
hahaha... thank you so much... I don't know too much but I try to use my little knowledge to help people... and I have a very good teacher, his name is "Google"... ;)

Offline savioroshan

  • Newbie
  • *
  • s
  • Posts: 16
  • Gender: Female
  • Referrals: 0
Re: Integration of Short Links in FaucetBOX Script
« Reply #13 on: April 28, 2017, 03:36:56 PM »
Hi can you help me to make a code like tungahd where users have to compulsorily visit shorten urls. I asked tungahd and he gave me a piece of code. But don't know where to attach that.

Offline alamin

  • Administrator
  • Initiate
  • *****
  • Posts: 265
  • Country: bd
  • Gender: Male
  • Referrals: 16
Re: Integration of Short Links in FaucetBOX Script
« Reply #14 on: April 28, 2017, 06:08:01 PM »
You are not allowed to view links. Register or Login
Hi can you help me to make a code like tungahd where users have to compulsorily visit shorten urls. I asked tungahd and he gave me a piece of code. But don't know where to attach that.
Well, I know where to add... But I will also give you a piece of code... ;) ;) ;)
Tell me which script you are using... :) :) :)