cant get this to work

Discussion in 'HTML & Website Design' started by nicky s, Nov 21, 2008.

  1. #1
    Defines the URL to the custom affiliate link script on your site. Place %uid% where your affiliate's user ID is to be placed. Leaving this field blank will make this site use the default affiliate link URL.


    Setting up your own affiliate link URL
    For an affiliate to receive credit for a referred sale, the customer must pass through a special affiliate link to reach your site. By default, this link is structured much like the following:

    http://p7d6.arixmedia.com/135893189531/go/userID

    The Affiliate Link URL field allows you to define your own affiliate link located at your own domain. While this is entirely optional (your affiliates can use a link like the one above), it makes the branding of your site considerably more cohesive. To do this, follow the steps below:

    Create an affiliate link script as defined below
    Your affiliate link script will receive one variable from the URL (the affiliate's user ID) and redirect the browser to the URL above with the affiliate's user ID appended to it. Your script should look something like this if you use PHP:


    <?php

    header("Location: http://p7d6.arixmedia.com/135893189531/go/"
    .$_GET['uid']);

    ?>


    Place this script somewhere on your website and name it something relatively short (for example, go.php or go.asp).


    Enter the URL for your affiliate link script
    Assume you named your script go.php, your site URL is http://www.yoursite.com and you placed the script in the root folder of your website. This means your affiliate link URL is:

    http://www.yoursite.com/go.php?uid=%uid%

    Enter this URL in the affiliate link URL field and click on Submit to save your settings. Now whenever one of your affiliates attempts to get an affiliate link for your site, the %uid% portion of the URL will be replaced with their ID and a new URL will be shown to them. For example, the affiliate sampleuser will receive the following link:

    http://www.yoursite.com/go.php?uid=sampleuser



    i cant get it to work plz help
     
    nicky s, Nov 21, 2008 IP
  2. Masterful

    Masterful Well-Known Member

    Messages:
    1,653
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Explain the problem, dude. What's your question?
     
    Masterful, Nov 21, 2008 IP