Jump to content

Custom affilaite links/redirects


blaineglynn

Recommended Posts

Hello all,

 

I tried to find a solution for this issue I'm having, but had no luck. Basically my affiliates need to be able to have links that redirect to custom urls for landing pages and such. In most affiliate systems you can add a varible to the end of the link so it would appear as: /http://yoursite.com/*=001&url=http://google.com

However I do not see support for this.

 

Is there a way to integrate this feature, or is it already built in and just not well documented.

 

Thank you.

Link to comment
Share on other sites

Hi there,

 

This may take a little bit more effort then you might be anticipating but,

 

I would suggest that considering WHMCS's cookie system, you could integrate a redirect from the affiliate link to a custom landing page.

 

As far as my knowledge reaches, WHMCS does not support this out of the box.

 

Could be something for the recommendation topic.

 

-Lochie

Link to comment
Share on other sites

  • 1 month later...
Hello all,

 

I tried to find a solution for this issue I'm having, but had no luck. Basically my affiliates need to be able to have links that redirect to custom urls for landing pages and such. In most affiliate systems you can add a varible to the end of the link so it would appear as: /http://yoursite.com/*=001&url=http://google.com

However I do not see support for this.

 

Is there a way to integrate this feature, or is it already built in and just not well documented.

 

Thank you.

 

Here is how to do it my way.

 

1. copy * file and make second copy ( aff2.php or whatever you want ) so you don't lose original.

 

2. enter this code as first line in file $url = "$url";

 

3. JUST AFTER setcookie and closing bracket ( line 22 ) add this code:

 

 

 

 

if ( $url != '' ){

 

header("HTTP/1.1 301 Moved Permanently");

header("Location: $url",true,301);

}

else

{

 

 

 

4. Add a closing bracket after the last line of code in the file:

 

header("Location: ".$CONFIG["Domain"],true,301);

 

so it is now:

 

header("Location: ".$CONFIG["Domain"],true,301);

}

 

 

 

5. add " &url= " to your link and use the new aff2.php page instead.

 

eg.

 

http://YourDomain.com/aff2.php?aff=001&gid=2&url=http://startpage.com

 

 

6. leave off the " &url= " part to redirect as normal to the WHMCS product page.

 

 

Enjoy !

 

Yours truly,

Jeff Noyes

 

Vendor-Lock Hosting & Software co.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated