[PAID] Theme or plugin to transform links made to specific URLs / domains

AI-generated summary

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.

What would you like done?

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

Some other possible combinations:

https://example.com
https://example.com/
https://www.example.com
https://www.example.com/

Those should also be transformed so when clicked they are taken to https://example.com/affiliate/my-code

An exclusion is required where the user post a link to a specific page on that site.

eg:

https://example.com/some-product/page/here
https://example.com/some-other-product/or-page/over-here

Those should not be transformed and should take people to that page when clicked.

The https://example.com/affiliate/my-code currently onebox’s just fine so this onebox compatibility must be maintained.

The solution should be easy to install, either via the Discourse admin control panel or via adding a GitHub repo to app.yml

When do you need it done?

Delivery by the end of August 2024 is a deal breaker, I cannot move this date :slight_smile:

What is your budget, in $ USD that you can offer for this task?

GBP£250 / EUR€290 / USD$317

1 Like

I can help with that. I’ll send a pm.

3 Likes

This project can be marked as delivered.

Thanks @pfaffman :slight_smile:

7 Likes

Thank you! My intent is to make a more general purpose version available publicly (without the URL hard-coded).

I decided that this has broader use that I first imagined, so it’s now available on github. See Discourse-affiliate-linker - Plugins and Themes - Literate Computing Dashboard to see it in use, and Real Soon Now it’ll be in Customization > Theme component .

@Richie you might check out this version, as there’s some chance that I’ll maintain it since at least I am using it.

10 Likes

This is great.
Is it ready for use? Can it be used for Amazon Referals\affiliates?

Why don’t you use the Discourse Affiliate plugin?

3 Likes

Right. And this won’t work at all for Amazon referrals, as it works only for links to the home page.

2 Likes

If you’re unable to use the Discourse Affiliate Plugin

This Customization > Theme component can likely be modified. Though not sure if it can modify Amazon short links

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.