flagrow/affiliation-links

Transform posted links into affiliation links with ease

Installs: 177

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:flarum-extension

0.1.2 2019-02-18 13:04 UTC

README

MIT license Build status Latest Stable Version Total Downloads Support Us Join our Discord server

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.

Links

An extension by Flagrow, a project of Gravure.