Code Monkey home page Code Monkey logo

yourls-conditional-urlads's Introduction

Conditional URL Advertisements

Plugin for YOURLS.

Description

This plugin allows you to redirect all shortlinks through a link monetizer.

Currently, the following shorteners are supported:

Going to a shorturl with a trigger before it will automatically forward the url through the selected service (ex sho.rt/a/test). If it recognizes a trigger but there is no associated service it will not monetize the link.

If you have another sevice you want supported, make a ticket for it!

Installation

  1. Clone this repo to the /user/plugins plugins directory
  2. Edit the plugin's settings (inside plugin.php) to suit your needs
  3. Go to the Plugins administration page and activate the plugin
  4. Test your shortlinks with each activated service
  5. If everything works, celebrate!

Getting your IDs

To properly setup this plugin, you need to manually change the IDs from the defaults to your's. These instructions should show you how to do this for each service:

AdFly

  1. Ensure you have a valid account and are logged in
  2. Navigate to this url
  3. Your ID is the number after 'Your User ID:' not API key

AdFocus

  1. Ensure you have a valid account and are logged in
  2. Navigate to this url
  3. Your ID is the number after '?id='

ouo.io

  1. Ensure you have a valid account and are logged in
  2. Navigate to this url
  3. Your ID is the bit inside the quotes for ouo_token

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.