Richie
(Richie Rich)
August 8, 2024, 8:51am
1
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
What is your budget, in $ USD that you can offer for this task?
GBP£250 / EUR€290 / USD$317
1 Like
pfaffman
(Jay Pfaffman)
August 8, 2024, 1:08pm
2
I can help with that. I’ll send a pm.
3 Likes
Richie
(Richie Rich)
August 8, 2024, 5:17pm
3
This project can be marked as delivered.
Thanks @pfaffman
7 Likes
pfaffman
(Jay Pfaffman)
August 8, 2024, 5:20pm
4
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 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
oga
August 9, 2024, 3:04am
5
This is great.
Is it ready for use? Can it be used for Amazon Referals\affiliates?
Moin
August 9, 2024, 6:12am
6
Why don’t you use the Discourse Affiliate plugin?
3 Likes
pfaffman
(Jay Pfaffman)
August 9, 2024, 7:06am
7
Right. And this won’t work at all for Amazon referrals, as it works only for links to the home page.
2 Likes
Heliosurge
(Dan DeMontmorency)
August 9, 2024, 7:16am
8
If you’re unable to use the Discourse Affiliate Plugin
This theme-component can likely be modified. Though not sure if it can modify Amazon short links
1 Like
system
(system)
Closed
September 8, 2024, 7:17am
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.