Kian Posted August 3, 2010 Share Posted August 3, 2010 Hello For some reasons [cut because it's long and not relevant ] i have to edit [AffiliateLinkCode]. Admin > General Settings > Affiliate Tab Enter [AffiliateLinkCode] where the affiliate's customised link code should be inserted [AffiliateLinkCode] ---> http://www.yourwhmcs.tld/*?aff=001 I need only the red part with the WHMCS Affiliate ID. I must remove the entire link. I just need 001. How? 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted August 3, 2010 Share Posted August 3, 2010 You'll probably need to directly edit affiliates.tpl to do that. You could use the following code to get the variable: {php} $clientid = $_SESSION['uid']; $data = select_query('tblaffiliates', 'id', array('clientid'=>$clientid)); $r = mysql_fetch_array($data); $aff_id = $r[0]; {/php} Then you could process $aff_id however you like. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted August 3, 2010 Author Share Posted August 3, 2010 Thank you for reply but can you tell me how to recall the id in Admin > General Settings > Affiliate Tab? I can't process $aff_id 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted August 3, 2010 Author Share Posted August 3, 2010 Fixed thank you 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.