flagrow/affiliation-links
Transform posted links into affiliation links with ease
Installs: 201
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:flarum-extension
Requires
- flarum/core: ^0.1.0-beta.7
Requires (Dev)
- phpunit/phpunit: ^5.0
This package is auto-updated.
Last update: 2019-11-01 14:48:20 UTC
README
This extension allows you to automatically turn links into custom affiliate or redirect links.
You can define a list of rules that once matched will turn the url into another value. You can then inject the original url as part of that new url.
For example you can create a rule so that every url with domain niceshop.tld
gets rewritten as https://referaldomain.tld?redirect={url}
.
This will turn links like https://niceshop.tld/amazing-product
into https://referaldomain.tld/?redirect=https%3A%2F%2Fniceshop.tld%2Famazing-product
.
You can create more advanced rules with regular expression matching and capture groups.
The initial version of this extension was sponsored by profesionalreview.com.
If you're only looking to add your Amazon Affiliate Tag to links, check out our Amazon Affiliation extension.
Installation
Use Bazaar or install manually:
composer require flagrow/affiliation-links
Updating
composer update flagrow/affiliation-links php flarum migrate php flarum cache:clear
Support our work
Check out how to support Flagrow extensions at flagrow.io/support-us.
Security
If you discover a security vulnerability within Affiliation Links, please send an email to the Gravure team at security@gravure.io. All security vulnerabilities will be promptly addressed.
Please include as many details as possible. You can use php flarum info
to get the PHP, Flarum and extension versions installed.