blaineglynn Posted February 6, 2013 Share Posted February 6, 2013 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. 0 Quote Link to comment Share on other sites More sharing options...
chiddy Posted February 8, 2013 Share Posted February 8, 2013 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 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted February 11, 2013 WHMCS Support Manager Share Posted February 11, 2013 Hi, This isn't something WHMCS can currently do as standard. However you can customise and enhance the way WHMCS redirects affiliate lines by editing the * file, so it's potentially something you or someone else could customise. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted February 12, 2013 Share Posted February 12, 2013 if (isset($desturl)) { $location="$desturl"; } *obviously* you need to sanitise the input and limit the destination urls etc 0 Quote Link to comment Share on other sites More sharing options...
Vendor-Lock Posted March 22, 2013 Share Posted March 22, 2013 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.