Show affiliate URL ONLY

Discussion in 'Templates customization' started by netdebut, Apr 20, 2006.

  1. netdebut

    netdebut New Member

    Joined:
    Apr 9, 2006
    Messages:
    3
    Anyone here know how to show JUST the affiliate URL in the member's area? I know the tags to show the member's name and email address, but that's it. I would like to show their affiliate URL as a stand alone link whether in HTML or PHP.

    Any thoughts?
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Well, login and copy that link. Click right mouse button on the link and choose "Copy Shortcut" in menu, then you may paste this link anywhere.
  3. netdebut

    netdebut New Member

    Joined:
    Apr 9, 2006
    Messages:
    3
    Alex, I don't think you're getting what I'm saying.

    By doing what you just said, I'd only get the affiliate URL for MY account. I want a specific code that will display EACH affiliate their specific URL.

    For instance, when 'Adam' logs into his account I can use:

    Welcome, {$smarty.session._amember_user.name_f} to display his first name (in member.html or any html file).

    I can then display his phone number, last name, but how do I show THEIR affiliate URL?

    I can even do it in PHP (as per your manual):

    <?

    session_start();

    print "Welcome, " . $_SESSION['_amember_user']['name_f'] . " " . $_SESSION['_amember_user']['name_l'];

    ?>


    I'm interested in showing the affiliate URL in PHP, but if you can come up with a way in HTML, that's fine as well.

    I'm guessing it might look something like:

    <?

    session_start();

    print "Welcome, " . $_SESSION['_amember_user']['name_f'] . " your affiliate link is: " . $_SESSION['_amember_user']['affiliate_link'];

    ?>
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    There is nothing in affiliate url to indicate it is your! Paste it here and you will see.
  5. netdebut

    netdebut New Member

    Joined:
    Apr 9, 2006
    Messages:
    3
    Alex, I was showing those codes as an example of what I'd used in my php files.

    I'm asking for assistance on HOW TO DISPLAY EACH MEMBER THEIR OWN UNIQUE affiliate URL. If I did what you suggested in the first reply, I'd be giving ALL of my members MY affiliate URL and not their own unique link. They'd then be promoting my affiliate account rather than their own.

    I'm asking for the script/code that I can use to display their link as if I were displaying their name.
  6. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    There is THE SAME URL FOR ALL USERS. However, when you open it, it displays different info depending on authenticated user. But information about authenticated user is not in URL, it is in cookies and in PHP session. So link is the same for all.
  7. navedp

    navedp New Member

    Joined:
    May 26, 2006
    Messages:
    10
    I am not a programmer atall but you can try something like this

    <?
    session_start();
    print "Welcome, " . $_SESSION['_amember_user']['name_f'] . " your affiliate link is: http://www.yourdomain/amember/go.php?r=".$_SESSION['_amember_id']&i=l0;
    ?>
  8. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Ah, if that is about THIS URL, then navedp advice will work fine.
  9. jmaduk

    jmaduk Member

    Joined:
    Aug 29, 2005
    Messages:
    96
    affiliate url in email

    I think you're trying to do what i want which is send emails out to everyone with THEIR specific affiliate URL correctly sent to them.

    Somethink like:

    http://www.wmfsb.com/order/go.php?r={$memberid}&i=l0

    Is this correct alex?
  10. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Sure. Something like that:

    http://www.wmfsb.com/order/go.php?r={$user.member_id}&i=l0

Share This Page