Affiliate Link URL Extension

Discussion in 'Integration' started by maximize, Oct 5, 2011.

  1. maximize

    maximize Member

    Joined:
    Mar 5, 2007
    Messages:
    108
    Hey - thanks for your help.

    I hope this is a simple question with a simple answer.

    Other affiliate programs offer the opportunity for you to send visitors to specific pages by adding the URL - examples below:

    EasyClickmate:
    http://www.justaddsweat.com/ezGaffurl.php?offer=showmom&pid=3&u=www.yourdomain.com/specialpage

    QuickSales:
    http://easyplr.com/go.php?af=794477&u=www.yourdomain.com/specialpage

    Does aMember allow the same activity and what's the extension code prior to the URL if that's the case?

    Thanks
  2. maximize

    maximize Member

    Joined:
    Mar 5, 2007
    Messages:
    108
    Sorry - it shortened the URLs.

    The piece I'm interested in is:
    EasyClickmate:
    &u=www.justaddsweat.com/

    QuickSales:
    &u=www.easyplr.com
  3. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    You can set the redirect in the amember affiliate setup for the banner/link.
    You set what the redirect is.

    David
  4. maximize

    maximize Member

    Joined:
    Mar 5, 2007
    Messages:
    108
    URL redirect

    I understand that. I'm trying to get around that.

    I'm hoping that I can also handle differently like most other affiliate programs today. If you have an affiliate link with a suffix like "&u=http://domainame.com, then the affiliate can actually send the user to any page on your blog instead of having to set up a new redirect every time.

    That's what I'm after. Hope that makes sense.
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Edit go.php and add this code:
    PHP:
    if(!$link && $_REQUEST[u]) $link $u
    $link preg_replace('/\s+/'' '$link);
    header("Location: $link");
    so this part will work: &u=http://domainame.com
  6. maximize

    maximize Member

    Joined:
    Mar 5, 2007
    Messages:
    108
    Alex - thanks. that's great.

    Would it be possible for you to add this to your next point release...
  7. ljq2

    ljq2 New Member

    Joined:
    Oct 16, 2011
    Messages:
    3
    Alex...

    Could you explain where in go.php that code goes? I put it at the beginning and the end, and it didn't work in either case.

    Thanks!
  8. maximize

    maximize Member

    Joined:
    Mar 5, 2007
    Messages:
    108
    Alex - just FYI, this didn't work for us. I had to hire a coder to modify it to make it work. Simple for him, but I don't code so I don't have a clue.

    I would LOVE to see this feature added - especially if it's this simple.

    David
  9. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    can you share the modification that your coder made to help others as well as to have Alex and team confirm the change.
  10. mediamage

    mediamage aMember Pro Customer

    Joined:
    Apr 9, 2014
    Messages:
    9
    Did this option ever get added to any new releases? I could really use this option for my affiliates as they are really asking for it. THANKS! :)
  11. orish

    orish aMember Pro Customer

    Joined:
    Mar 15, 2011
    Messages:
    49
    Hi, this is an old post - but it's still very relevant. Many of my affiliates want to send their visitors to various pages on my website, such as the events/workshop page, a specific article, etc. - not just the home page. I haven't figured out how to do this either.

    I've looked for go.php, but I can't find it anywhere. Please explain which folder it's in and where do insert the new code. David, could you post the contents of your modified go.php so we could use it also - many thanks in advance.
  12. orish

    orish aMember Pro Customer

    Joined:
    Mar 15, 2011
    Messages:
    49
    It seems the latest version of aMember provides an alternative approach. It's a bit convoluted, but it seems to work:

    1. In Setup/Configuration - Affiliates - Miscellaneous, check "Allow redirecting to external URLs" and "Enable Click Tracking Code"

    2. Copy/paste the click tracking code at the end of the sites pages just before the </body> tag. I use Joomla, so it meant modifying the index.php file for the particular template I am using

    3. Go to each of your affiliate members (search using "assigned to user group" in advanced search) and select Yes to "Allow Affiliate to redirect Referrers to any URL" in the Affiliate Program section.

    4. The affililate must then ensure that every link to your page must end in "?ref=affid", e.g. http://yoursite.com?ref=usr123

    5. You can then go to each user and check out Affiliate Info / Statistics to see the links to your site from the affiliate's page(s).

    I don't think the manual has been updated to explain all this. I'm not sure of some of the settings and nuances, so hopefully a staff member will elucidate in time... :)

Share This Page