Affiliate links

Affiliate links [Paid] 1.1

No permission to buy ($35.00)

AndyB

Well-known member
AndyB submitted a new resource:

Affiliate links - Adds your affiliate ID to specified URLs.

Premium upgrade:

This XF2 add-on along with the entire collection can be purchased for $35.00 USD. Your Premium upgrade will allow you to download as many XF2 add-ons as you like for one year. Please see the entire collection located in the Resources area at this URL:

https://www.xf2addons.com/

Description:

Adds your affiliate ID to specified URLs.

(Example of Options page)

View attachment 301988

Features:

Up to four affiliate IDs can be...

Read more about this resource...
 
  • Like
Reactions: cwe
I asked Andy to update his older affiliate mods to work like his Link Manager (LM) mod and this mod was the result. I've tested it and it works great. If you use his LM mod as well, just be sure to add your affiliate link domains to the LM exclusion list.
 
Works very good. Perhaps it would be good if links aren't changed if not all of the four possible domain affiliates are set. If at least one of them is not set, then each URL without a query-portion in it will get a trailing ampersand. This might not be an issue in general but for my setup it collided a little with a php callback I use for custom thread fields. Therefore I added a line like
PHP:
if (!empty($domain4)) {
in the BbCode/Renderer/Html.php file

Alternatively one could use non-existing domains for the options which aren't used. That's how I now have done it as I won't have to change the add-on.
 
Last edited:
Back
Top Bottom