Okay so this might sound kind of wrong, but I'd like to make a javascript redirect page for a product site where people submit their links to good deals. BUT i'd like the script to detect if the outgoing link is in the format of an affiliate program that I'm already into...and of course change their affiliate ID to mine. I'd also want it to insert the proper affiliate link code into non-affiliate links. So if someone direct linked to a product then I could insert my affilate code in the right spot. I can't find any resources, and I'm not really a programmer. It seems like a javascript redirect page would work for this though. PM me, or drop me some code
So, what your asking is for someone to write you the code (for free of course) that will allow you to steal affiliate money from unsuspecting visitors to your website. Why not just ask people to rob banks for you and give you all the money. I love the bit where you say it "might sound kind of wrong". Mate, you have a pretty poor sense of morality.
What does this have to do with robbing a bank? If someone came to my site, and submitted a link, I would be the one displaying it. Therefore I own it and can modify it. I guess none of you are programmers... and I stand by my sense of morality you mother fucker. When someone asks for help with programming code you should either help them or shut the fuck up.
you would need to know the pattern for each an every affiliate program you're in and match/replace, likely with regular expressions. this is not a wise job for javascript unless you only have one or two links. even then it'd be better to do in php/etc.
There is probably nothing that could make me more upset, at least online, than some stranger questioning my morals. I didn't come here to learn life lessons. Anyways, I am sorry for swearing at ratzmilk.
are you sure you don't want to? I felt bad afterwards. I probably shouldn't swear at people in forums.
You had no intention of telling people that you would be stripping their affiliate ID's and replacing them with your own. Using false pretenses, you intended stealing the affiliate revenue of unsuspecting visitors to your site. Much the same way robbing a bank is also stealing from an unsuspecting party. However, you can't even be bothered learning how to steal other people's affiliate revenue yourself, you want someone else to do it for you, which is as dumb as asking some one else to rob a bank for you and give you all the money. I obviously touched a nerve with you, judging by your initial response. Yes, you would like that wouldn't you. Don't like looking into the mirror hey? To quote Edmund Burke ""All it takes for evil to flourish is for good men to do nothing". No sir, you will not be keeping me quite.
Most of the url shortening services (tinyurl etc) strip and replace affiliate links. You should do it in php if you want to do it and then people won't ever know they have been redirected. Make sure you put it in the TOS though.