AdLinkFly - Monetized URL Shortener


Earn money by starting your own monetized link shortening service, just like adf.ly, ouo.io, linkshrink.net or shorte.st! Allow members to shorten links & earn money, and keep a share of the profit. AdLinkFly includes a complete publisher and advertiser system, campaigns, referrals, withdrawals, API, translation ready, PayPal, Payza, Skrill, Bitcoin, Webmoney, Money Wallet & Bank Transfer integration, reCAPTCHA integration and much more!

Most of the above requirements are available on most web hosts.

 

  1. You need to decide the ads types you will use into your website like banner, interstitial and/or popups ads by navigating to Admin Area >> Settings >> Links
  2. Add price rates for ads for each country by navigating to Admin Area >> Ads >> Banner/interstitial/popups make sure to set prices for all traffic sources. Click here to learn more about ads.
  3. Adding ads is divided into two sections:
    1. Adding ads to the campaigns: Let say you will create a campaign for banner size 468x60 from there you will add the ad code for size 468x60 to create a campaign navigate to Admin Area >> Campaigns >> Create Banner/Interstitial/Popups Campaign from there you will be able to add your ads codes. click here to learn more about campaigns.
    2. Adding ads for the other places(728x90 and 336x280): After adding the banner size 468x60 into your campaign and you wish to add more ads into the other places 728x90 and 336x280, then navigate Admin Area >> Settings >> Admin Ads
  4. Enable captcha to prevent any fake/spam traffic by navigating to Admin Area >> Settings >> Captcha
  5. Start shorting your links
 
- AdLinkFly has three ad types banner, interstitial(full-page) and popup. You need to decide the ads types you will use into your website by navigating to Admin Area >> Settings >> Links as you can see in the following image
 
- Now, you need to set prices for advertisers and publishers for each country for each enabled ad type, for example, let's add prices for banner ads by navigating to Admin Area >> Ads >> Banner there you will be asked to select traffic source to start adding the prices for. You should add prices for all traffic sources even though you will not use it.
 
- For countries you want to support, you should set both the advertiser and publisher prices for and leave empty the prices for the country you don't want to support.
 
- Kindly note that the prices you added are for the 1000 views. let say you added $1 for the US for 1000 views then the price for one view equal to $1/1000 = $0.001
 
You should set the advertiser price greater than the publisher prices because the site owner will earn the subtracting between the advertiser and publisher price
 

Manage Campaigns

You can manage campaigns by navigating to Admin area -> Campaigns >> List from there you will be able to see all campaigns and you will be able to pause, resume, cancel campaigns as you can see on the below images

 

 

AdLinkFly allows you to user multiple domains when users shorten links.

All you need is to add the new domain as an alias/parked/cname domain to your main domain from your hosting control panel(Your hosting company can help you do this) then add the new domain to Admin Area >> Settings >> General >> Multi Domains

Please Note: Domains should be separated by a comma, no spaces. Make sure to remove the 'http' or 'https' and the trailing slash (/) so your new domains should look like domian1.com,domain2.com,domain3.com

If you want to set a different domain for the short links rather than the main domain, you can do this by navigating to Admin Area >> Settings >> General >> Default Short URL Domain also make sure to remove the "http" or "https" and the trailing slash (/)!. Example: domain.com

 

Everyone can use the shortest way to shorten links with AdLinkFly.

Just copy the link below to address bar into your web browser, change last part to destination link and press ENTER. AdLinkFly will redirect you to your shortened link. Copy it wherever you want and get paid.
http://www.yourdomain.com/st/?api=<<api_token_code>>&url=yourdestinationlink.com
Each member can find this information by navigating to member area >> Tools >> Quick Link as you can see on the below image
 
 

Using Mass Shrinker Tool

Each member can Enter up to 20 URLs (one per line) to be shrunk and added to your account. You can find this information by navigating to member area >> Tools >> Mass Shrinker as you can see on the below image

Using Developers API

For developers, AdLinkFly prepared API which returns responses in JSON format.
 
Currently, there is one method which can be used to shorten links on behalf of your account.
 
All you have to do is to send a GET request with your API token and URL Like the following:
 
http://www.yourdomain.com/api/?api=<<api_token>>&url=yourdestinationlink.com
 
You will get a JSON response like the following
{"status":"success","shortenedUrl":""http://localhost/adlinkfly/xxxxx""}
As you can see on the below image
 

 

PayPal Setup

To enable PayPal as a payment and withdraw method, you need to navigate to Admin Area >> Settings >> Payment >> PayPal Settings from there enable PayPal and add your PayPal email address you wish to receive payments on as you can see in the below image

For automatic approve successful payments into your website you will need to enable IPN into your business PayPal account by doing the following:


Stripe Setup

To enable Stripe as a payment method, you need to navigate to Admin Area >> Settings >> Payment >> Stripe Settings from there enable Stripe and add your Stripe account Secret and Publishable keys. You can get these keys from your account settings.


Payza Setup

To enable Payza as a payment method, you need to navigate to Admin Area >> Settings >> Payment >> Payza Settings from there enable Payza and add your Payza merchant email address you wish to receive payments on as you can see in the below image

You must submit your website for review at Payza website by doing the following:
  • In your Payza account, click "Business" in the left side menu, then select “Websites”.
  • Enter your website URL, complete the questionnaire and click "Next".
Your website review status will be “Awaiting Approval” until Payza complete their review (up to 3 business days). for more information click here.

Skrill Setup

To enable Skrill as a payment method, you need to navigate to Admin Area >> Settings >> Payment >> Skrill Settings from there enable Skrill and add your Skrill merchant email address you wish to receive payments on and add Skrill Secret Word. In order to setup your secret word do the following:

  1. Go to the Settings > Developer Settings section of your Skrill account.
  2. In the Secret Word field, enter your secret word. The following restrictions apply:
    • All characters must be in lowercase
    • The length should not exceed 10 characters
    • Special characters are not permitted (e.g. @, %, $, etc.)
    • If you insert any uppercase symbols, they will automatically be converted to lowercase.
  3. To apply your changes, click Save.

CoinPayments Setup

To enable CoinPayments as a payment method,

  1. Go to Admin Area >> Settings >> Payment >> CoinPayments Settings from there enable CoinPayments
  2. Add your Public and Private Keys by doing the following:
    • Login To your CoinPayments account
    • Go to Account > API Keys
    • Click on "Generate new key" button
    • You will get Public Key and Private Key
  3. Add your merchant id and to get it navigate to Account > Account Settings > Basic Settings from there you will find the merchant Id.
  4. Add your IPN Secret. you need to setup it first at your account by doing the following
    1. Go to Account > Account Settings > Merchant Settings
    2. In the IPN Secret field, enter a good random string nobody can guess.
    3. In the IPN Verification Method select "HMAC"
    4. Click on "Update Account" button

Coinbase Settings

To enable Coinbase as a payment method, do the following:

  1. Go to Admin Area >> Settings >> Payment >> Coinbase Settings from there enable Coinbase
  2. Add your Coinbase API Key and API Secret Key. to get them do the following:
    • Go to https://www.coinbase.com/settings/api and select "+ New API key".
    • You will then see the API key creation dialogue. Under the "API v2 permissions" select all permissions.
    • You will get both API Key and API Secret
  3. After that make sure to complete your Merchant Profile from here https://www.coinbase.com/merchant_profiles

WebMoney Settings

To enable WebMoney as a payment method, do the following:

  1. Go to Admin Area >> Settings >> Payment >> WebMoney Settings from there enable WebMoney
  2. Enter your merchant purse, by doing the following:
    • Go to https://merchant.wmtransfer.com/conf/purses.asp and you will find your purse id
    • Click on "Change" link
    •  Tick on "Let to use URL sent in form" and "Send notification to keeper in case of payment error" as you see in the following image
    • Click on "Save" button

Perfect Money Settings

To enable Perfect Money as a payment method, do the following:

  1. Go to Admin Area >> Settings >> Payment >> Perfect Money Settings from there enable Perfect Money
  2. Add your payee account id by doing the following:
    • Login to your account at Perfect Money
    • Under "My Accounts" you will see your Payee account id
  3. Add your Perfect Money Alternate Passphrase by doing the following:
    1. Go to Settings
    2. In the Alternate Passphrase field, click on "Generate" button
    3. Click on "Apply changes"

Payeer Settings

To enable Payeer as a payment method, do the following:

  1. Go to Admin Area >> Settings >> Payment >> Payeer Settings from there enable Payeer
  2. To add your Merchant ID, Secret Key and Encryption Key do the following:
    • Login to your Payeer account
    • Click on "Dashboard" from the left side menu
    • Click on "Merchant Settings"
    • Click on "Add Merchant"
    • You will see a form and the first field is "ID" which is your merchant id, add a secret key, encryption key and for Success URL, Fail URL, Status URL add your website address

 

 

 

Manage Withdraws

You can manage withdraws by navigating to Admin area -> Withdraws from there you will be able to see all withdraws and you will be able to approve and complete withdraws as you can see on the below image


Withdraw Review

To review withdraw IPs, countries, referrers,..., click on withdraw ID or "View" button then you will get all withdraw details as you see below

AdLinkFly supports three types of Captcha reCAPTCHA, Invisible reCAPTCHA & Solve Media.

To enable captcha go to Admin Area >> Settings >> Captcha from there enable captcha and select the captcha type you want.


Get reCAPTCHA and Invisible reCAPTCHA Keys

To get reCAPTCHA and  Invisible reCAPTCHA site and secret keys do the following:

  1. Login to your Google account
  2. Go to https://www.google.com/recaptcha/admin#list and generate your keys
  3. Make sure to add all domains you are using into your website in "Domains" field.

Get SolveMedia Keys

  1. Login to your account https://portal.solvemedia.com/portal/login
  2. Go to Configure > Sites
  3. Click on "New Site" button
  4. Add website description and add your website address(Leave it empty if you are having multi-domains) then select the interesting categories
  5. Click on "Submit" Button
  6. After that, click on "Keys" button and you will find all required keys

Get Coinhive Keys

  1. Login to you account https://coinhive.com/account/login
  2. Go to Settings > Sites & API Keys
  3. From there you can see your "Site Key (public)" and "Secret Key (private)"

 

Social login with Facebook

Social login with Twitter

- Go to https://apps.twitter.com/ and click on "Create New App".

- Fill out any required fields such as the application name, description, website and accept the terms.

- Click on "Create Your App".

- Click on the second tab "Settings"

- Add "Callback URL" like this http://yourdomain.com/social-auth/callback/twitter/ and make sure to replace "yourdomain.com" with your actual domain.

- Add your "Privacy Policy URL" and "Terms of Service URL"

- Scroll down and click on "Update Settings" button

- Click on the last tab "Permissions"

- Select "Read Only" for "Access" then scroll down under "Additional Permissions" and select  "Request email addresses from users"

- Scroll down and click on "Update Settings" button

- Click on the last tab "Keys and Access Tokens"

- From there you can get your "Consumer Key (API Key)" and "Consumer Secret (API Secret)"

- That's it.

Social Login with Google

 

- Go to https://code.google.com/apis/console/ and create a new project.

- Add your Project name.

- Click on "Credentials" from the left side menu then click on "OAuth consent screen" tab.

- Fill "Product name shown to users", "Privacy policy URL" and "Terms of service URL" fields

- Click on "Save" button after that you will be redirect to another page.

- Select "Web Application" under "Application type"

- Scroll down and fill "Authorized redirect URIs" with http://yourdomain.com/social-auth/callback/google/ and make sure to replace "yourdomain.com" with your actual domain.

- Click on "Create" button

- Then you will get your "Client ID" and "Client Secret"

- Click on "Library" from the left side menu then search for "Google+ API" and click on it.

- Beside "Google+ API" click on "ENABLE"

- That's it.

 

We’ve built AdLinkFly to be translation ready so you can translate into any language. The process of translating the theme is a user responsibility. The following instructions are given only for guidance.
  • Download and install POEDIT
  • Connect to your site via FTP and open src/Locale folder 
  • Download en_US folder and rename it to your language, For example, if you’re translating Chinese for China, the folder should be named zh_CH, and for a Tagalog translation for the Philippines would be tl_PH 
  • Open that folder then open default.po file and open it with POEDIT. 
  • Translate file and save it. 
  • Two files will be generated after saving default.po and default.mo 
  • Upload the entire folder to src/Locale folder 
  • Navigate to Settings -> General and select your new language 
  • Click on "Save" button

 

Installation FAQ

After uploading files I got 404 error /install/index is not found, How can I fix this issue?

You are getting 404 error because you didn't upload the .htaccess in script root folder so to fix this issue there is a file called htaccess.txt located att script root rename it to .htaccess after that you should see the installation wizard.

1and1 – 500 Internal Server Error

Some web hosts URLs are not directly related to physical file paths so you need to edit the below list of files
  • /.htaccess
  • /webroot/.htaccess
and add the below line of code
Rewrite​​Base /
after this line
RewriteEngine on​​

Activation FAQ

I'm getting a red triangle error with no words when activating my website license

You need to edit your personal token at Envato and make sure to select "View your purchases of the app creator's items" then the activation will work well.

Campaigns FAQ

How can I earn?


Publishers have zero views and earnings, what I do?

Make sure to add Non-default campaigns then views and earnings will start counting as you can see in the following image


Why is the interstitial ad page blank?

The website URL used when creating the interstitial campaign let say http://example.com has a header called "X-Frame-Options" and set to "SAMEORIGIN" which means that this website in not allowed to be displayed within iframe or interstitial ads. This is not a script issue but this is how this website configured to work also you can test this website with the most popular website adf.ly as you can see here http://adf.ly/ad/preview?url=http://example.com/ and it is displaying a blank page.
 
To fix this issue ask the web hosting that host this website to remove this header "X-Frame-Options".

How can I change the CPM?

CPM is automatically calculated based on member earnings divided by the total number of views then multiply the result by 1000 so to change it you will need to pause the old campaigns and create new campaigns(in order to get new ads prices) then start sharing the links after that the CPM will start counting with the new value.

How to disable advertising or campaigns?

You can disable advertising/campaigns by Navigating to Admin Area >> Settings >> Earnings >> Enable Advertising and set it to "No"

General FAQ

I'm getting Forbidden error when saving admin settings

Settings are not saving usually because an Apache module called Mod Security. Almost all web host providers have this enabled on their servers to protect their users. However, some web hosts are using strict rules which lead to prevent some forms from saving. You can contact your web host to whitelist your domain from using these rules or disable Mod Security into your domain.

How can I change "adlinkfly_" word from full page script?

To change "adlinkfly_" you need to search and replace "adlinkfly_" with your "domain_" into the following two files
  • /src/Template/Member/Tools/full.ctp
  • /webroot/js/full-page-script.js
make sure that "domain_" starts with a letter and only contain letters and number and ending with an underscore.

How can I create a new theme?

Let say you need to make customizations into CloudTheme then just copy this folder /plugins/CloudTheme to /plugins/CustomTheme where "CustomTheme" is your new theme name then go to Admin Area >> Settings >> General >> Select Theme and select your new theme from there, Then edit your new theme files which will not lost when a new update released.

What is Front Head code, Auth head code, Member head code, Admin head code, Footer Code and After Body Tag Code?

Front head code >> This is used to add CSS, Javascript code into front pages like home page, captcha page, banner page, interstitial page.
 
Auth head code >> This is used to add CSS, Javascript code into access pages like login, register, forgot password.
 
Member head code >> This is used to add CSS, Javascript code into all member area pages.
 

Admin head code >> This is used to add CSS, Javascript code into all admin area pages.


How can I add a custom.css file?

You can add your CSS file to override any styles by uploading a file called custom.css into /webroot/css/ folder then add the below code into Admin Area >> Settings >> Integration >> Front Head Code/Auth Head Code/Member Head Code
<link rel="stylesheet" href="//website.com/css/custom.css"/>
After doing that you, this file will be available on all website pages.

How can I change the header background image?

You can change the header background by adding the below code into Admin Area >> Settings >> Integration >> Front Head Code
<style>
header, .captcha-page #mainNav, .interstitial-page #mainNav, .banner-page #mainNav {
    background-image: url("Your Image URL");
}
</style>
Make sure to replace "Your Image URL" with the new image URL.

How can I add/remove menu items from the top and bottom menus?

You can add or remove menu items from the top menu by editing the following files:
  • Classic Theme: /src/Template/Layout/front.ctp
  • Modern Theme: /plugins/ModernTheme/src/Template/Layout/front.ctp
  • Cloud Theme: /plugins/CloudTheme/src/Template/Layout/front.ctp

and for the bottom menu editing the following files:

  • Classic Theme: /src/Template/Layout/front.ctp
  • Modern Theme: /plugins/ModernTheme/src/Template/Element/front_footer.ctp
  • Cloud Theme: /plugins/CloudTheme/src/Template/Element/front_footer.ctp

Short links pages are with http(without s) to make sure that all banner and interstitial ads are displayed and not blocked because if a page with https has a banner with a http(without s) image that image will be blocked. This is how https protocol is working. Also, this is how the most popular website adf.ly is working as you can see in the below image.

How can I change the home page content?

You can change the home page content by editing the following file

Why prices are not changing in front end?

When setting price for a country, for example, US, you should add the price for that country in all traffic sources
  • Desktop, Mobile and Tablet
  • Desktop Only
  • Mobile / Tablet Only

How can I add referral banners?

You can referral banners code by navigating to Admin Area > Settings > Earnings > Referral Banners Code. You can use the below code as an example and make sure to replace the demo images with your actual images

<h3>Referral Banners</h3>

<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#banner-728x90" aria-controls="banner-728x90" role="tab" data-toggle="tab">728x90</a></li>
    <li role="presentation"><a href="#banner-468x60" aria-controls="profile" role="tab" data-toggle="tab">468x60</a></li>
    <li role="presentation"><a href="#banner-300x250" aria-controls="messages" role="tab" data-toggle="tab">300x250</a></li>
    <li role="presentation"><a href="#banner-250x250" aria-controls="settings" role="tab" data-toggle="tab">250x250</a></li>
    <li role="presentation"><a href="#banner-160x600" aria-controls="settings" role="tab" data-toggle="tab">160x600</a></li>
</ul>

<!-- Tab panes -->
<div class="tab-content">

    <div role="tabpanel" class="tab-pane text-center active" id="banner-728x90">
        <p></p>
        <a href="[referral_link]"><img src="//placehold.it/728x90" title="Make short links and earn the biggest money" /></a>
        <p></p>
        <textarea class="form-control" rows="4" readonly>
<!-- Start of banner code -->
<a href="[referral_link]"><img src="//placehold.it/728x90" title="Make short links and earn the biggest money" /></a>
<!-- End of banner code -->
        </textarea>
    </div>

    <div role="tabpanel" class="tab-pane text-center" id="banner-468x60">
        <p></p>
        <a href="[referral_link]"><img src="//placehold.it/468x60" title="Make short links and earn the biggest money" /></a>
        <p></p>

        <textarea class="form-control" rows="4" readonly>
<!-- Start of banner code -->
<a href="[referral_link]"><img src="//placehold.it/468x60" title="Make short links and earn the biggest money" /></a>
<!-- End of banner code -->
        </textarea>
    </div>

    <div role="tabpanel" class="tab-pane text-center" id="banner-300x250">
        <p></p>
        <a href="[referral_link]"><img src="//placehold.it/300x250" title="Make short links and earn the biggest money" /></a>
        <p></p>

        <textarea class="form-control" rows="4" readonly>
<!-- Start of banner code -->
<a href="[referral_link]"><img src="//placehold.it/300x250" title="Make short links and earn the biggest money" /></a>
<!-- End of banner code -->
        </textarea>
    </div>

    <div role="tabpanel" class="tab-pane text-center" id="banner-250x250">
        <p></p>
        <a href="[referral_link]"><img src="//placehold.it/250x250" title="Make short links and earn the biggest money" /></a>
        <p></p>

        <textarea class="form-control" rows="4" readonly>
<!-- Start of banner code -->
<a href="[referral_link]"><img src="//placehold.it/250x250" title="Make short links and earn the biggest money" /></a>
<!-- End of banner code -->
        </textarea>
    </div>

    <div role="tabpanel" class="tab-pane text-center" id="banner-160x600">
        <p></p>
        <a href="[referral_link]"><img src="//placehold.it/160x600" title="Make short links and earn the biggest money" /></a>
        <p></p>

        <textarea class="form-control" rows="4" readonly>
<!-- Start of banner code -->
<a href="[referral_link]><img src="//placehold.it/160x600" title="Make short links and earn the biggest money" /></a>
<!-- End of banner code -->
        </textarea>
    </div>
</div>

What is the difference between "Mighty URL Shortener" & "AdLinkFly"?

 

Shared Hosting

VPS Hosting

  • All contact should be done directly with your selected Host.
  • We are not responsible for any data loss or damage that may be experienced when signing up with a recommended Host.
  • We may receive a commission for referring you to some of these hosts.