Detecting and replacing potential affiliate links on discussion forums

Adrift

New member
Feb 20, 2009
11
0
0
I've noticed that a few shopping forums / gadget blogs have scripts installed which appears to detect when a URL entered in comments could be a potential affiliate link, and then re crafts the URL to include their affiliate ID.

Does anyone know if there are any off-the-shelf scripts to automate this procedure, or do I need to write one from scratch? Seems like it would be a bitch to write from scratch as most affiliate programs have different URL structures, and some require you to generate specific URLs per product - would be nice to automate....

Adrift
 


I've been able to automatically replace certain keywords with my affiliate links (e.g. "weight loss" => "<a href="http://myaffllink.com">weight loss</a>"), but I'd also like to know a solution to the above.
 
Short of Firefox plugin or something, you can't really.

You would likely need to make a script where you could type out your post, hit the submit button and then have it spit back UBB style output for forum posting. But to do so without leaving the forum page would likely require a firefox plugin.

Heck you could probably even make your own firefox dictionary for mispelled words so that your keywords end up being the link code as the 'correct' spelling.