Plugin for YOURLS.
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!
- Clone this repo to the
/user/plugins
plugins directory - Edit the plugin's settings (inside plugin.php) to suit your needs
- Go to the Plugins administration page and activate the plugin
- Test your shortlinks with each activated service
- If everything works, celebrate!
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:
- Ensure you have a valid account and are logged in
- Navigate to this url
- Your ID is the number after 'Your User ID:' not API key
- Ensure you have a valid account and are logged in
- Navigate to this url
- Your ID is the number after '?id='
- Ensure you have a valid account and are logged in
- Navigate to this url
- Your ID is the bit inside the quotes for
ouo_token