Jump to content

Take the only ID from [AffiliateLinkCode]


Recommended Posts



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.



Link to comment
Share on other sites

You'll probably need to directly edit affiliates.tpl to do that. You could use the following code to get the variable:


$clientid = $_SESSION['uid'];
$data = select_query('tblaffiliates', 'id', array('clientid'=>$clientid));
$r = mysql_fetch_array($data);
$aff_id = $r[0];


Then you could process $aff_id however you like.

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.

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