Forum Moderators: coopster

Message Too Old, No Replies

Affiliate Redirect script needed

         

lauraharris

7:52 pm on Mar 20, 2007 (gmt 0)

10+ Year Member



Ok I am so totaly new to this;
I have a site that uses phpbb forums, I have several hundred affiliates. I offer an Online deals forum where A member posts a link to a product...

http://www.example.com/nnnnn.asp

or some variation of the above, where

nnnnn
refers to that particular item's product ID.

what I am having to do at this moment is go in and manually change every link posted to my affiliate link.

I have all my affiliates stored in a MySQL database,

What I need is a script or something that will automatically redirect any member link that is clicked on to the affiliate link that I have stored in my database.

I guess my problem boils down to a few points..

1) Extracting the product ID from the originally posted link.
2) Inserting that number into the affiliate link,
3) redirecting/Replacing the original link with the now-updated affiliate link.

I know this is possible as I have seen it on several other sites, but I have no idea at all how to do this.

And once I have the script to do this I need to know where to put it.

Told ya I have no idea. Preschool instruction would be greatly appreciated.

[edited by: coopster at 10:25 pm (utc) on Mar. 20, 2007]
[edit reason] generalized domain [/edit]

coopster

10:24 pm on Mar 20, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Hi lauraharris and welcome to WebmasterWorld.

Are you doing anything special in between the click and the redirection to the affiliate's site? If not, why not just build the affiliate's link into the display in the first place, you know, when you build the page?