Aff_Links Template

Discussion in 'Templates customization' started by gary_hic, Nov 25, 2006.

  1. gary_hic

    gary_hic New Member

    Joined:
    Aug 29, 2006
    Messages:
    16
    Hello all,

    I have amember pro and it's a great script for every I need, however I am trying to change the aff_links.html template page and I'm having a little trouble. I am hoping someone out there will know a simple solution.

    When an affiliate signs ups, they are directed to the page where they can get the banner linking codes, thumbnails, etc. for advertising. This is fine, but I already have a site dedicated for Webmaster advertising content. So my question is, can I modify the code on the aff_links.html template so that when some logs in and clicks to get the linking code, they instead see just their affiliate id?

    For instance I would like for them to see:

    "Thank you for signing up to our affiliate program! You Affiliate ID is ##.

    To access all of the content please go to our Affiliate content site at www.blahblah.com"

    In my main Affiliate content site I can have the linking codes that I created in amember, but I will just replace the Affiliate ID with XX, so that they have to copy the code and put in their own ID.

    I know it sounds like a pain since amember makes the affiliate section so easy, but I have over 20 sites using this script, each with several banners, hoted galleries, etc. It's just too much to place on one page.

    If anyone know how to do this, please let me know! :)

    Thanks
  2. gary_hic

    gary_hic New Member

    Joined:
    Aug 29, 2006
    Messages:
    16
    Well, I think I might have found a work around. I will first add all of the banners, thumbnails, and hosted gallery links to the aff_links.html page.

    Then I'll back up that page. Next I'll upload a new aff_links.html page with the code with some of the original code gutted out of it - so it will not display all of the content, instead just the Affiliate's ID. The only thing is, what do I remove to just show the Affiliate's ID from:

    {if $links} #_TPL_AFFILIATE_TXT_LINKS#
    {foreach from=$links item=l}
    {$l.code}

    #_TPL_AFFILIATE_HTML_CODE# {$l.code|escape:html}
    {/foreach} {/if} {if $banners} #_TPL_AFFILIATE_BANNERS#
    {foreach from=$banners item=l} {$l.code}
    #_TPL_AFFILIATE_HTML_CODE# {$l.code|escape:html}
    {/foreach} {/if}

    You see, if I can just have them sign up and get there ID, I can then provide them a link where I can place the amember affiliate linking codes on a main webmaster content advertising site. They can then just choose the sites they wish to advertise. i will have the amember links already provided (from the first, unaltered aff_links.html page), only they will have to paste in their Affiliate ID they received from the aff_links.html page.

    Anyone know how to do this? I'm about to just test a few ways to see if I can make it work, but if someone knows how to do this it woud be very helpful.

    Thank you
  3. gary_hic

    gary_hic New Member

    Joined:
    Aug 29, 2006
    Messages:
    16
    Anyone?

    It can't be that hard... Please let me know if you have any ideas - it would really help.

    Thanks
  4. gary_hic

    gary_hic New Member

    Joined:
    Aug 29, 2006
    Messages:
    16
    Alex came through with the solution! All that I needed to so was add:

    {$smarty.session._amember_id}

    This would display the affiliate id. So now I can type, Thank you for joining our Affiliate Program, your ID is {$smarty.session._amember_id}

    Thank you Alex!

Share This Page