Discourse-affiliate-linker

AI-generated summary

The discourse-affiliate-linker theme component replaces certain URLs with affiliate links. It can be installed from the GitHub repository using the provided install button.

The component was created in response to a request on meta.discourse.org and has been implemented on dashboard.literatecomputing.com.

Thierry_Trégaro suggested adding support for regex or generic characters to transform URLs, specifically wanting to append #ae52 to any URL from a certain domain. However, pfaffman indicated that this functionality is not currently possible, but may be added in the future with a budget or a pull request.

Install this theme component

Replace URLs to things like digitalocean.com with your referral link. See it in action at Discourse-affiliate-linker - Plugins and Themes - Literate Computing Dashboard

I wrote a theme component for [PAID] Theme or plugin to transform links made to specific URLs / domains and then realized that it did have a general purpose use.

I use this theme component to rewrite links to Digital Ocean, bunny.net, etc, on https://dashboard.literatecomputing.com/

12 Likes

hi !

Love it. Is it possible to use some regex or generic characters ?

Would like to turn any link like :

https://www.philibertnet.com/fr/alderac/143636-undergrove-729220010384.html

into

https://www.philibertnet.com/fr/alderac/143636-undergrove-729220010384.html#ae52

So any url at that domain gets #ae52 appended? No that’s not possible right now. If you’ve got a budget or want to submit a PR let me know.