A custom theme or plugin was requested for transforming links to specific URLs/domains. The goal was to add an affiliate code to links to the homepage of a specified domain (https://example.com), while excluding links to specific pages on that site. Richie required the solution to be easy to install and compatible with oneboxing, with a deadline of the end of August 2024 and a budget of USD$317.
@pfaffman offered to help and eventually created a general-purpose version of the plugin, available on GitHub. The plugin is not suitable for Amazon referrals, as it only works for links to the homepage. Moin suggested using the Discourse Affiliate plugin instead. Heliosurge mentioned that the plugin could potentially be modified to work with Amazon referrals, but it’s uncertain if it can handle Amazon short links.
I need a theme or plugin creating which transforms specific URLs in posts.
For example, if a user creates a post and uses a link to https://example.com then this link should be transformed so when anyone clicks on it they are taken to https://example.com/affiliate/my-code