greghl Posted January 23, 2014 Share Posted January 23, 2014 Is there a variable we can access for just the affiliate ID - so we can pass this to external scripts and flash banners? I know I can use [AffiliateLinkCode] - but I want just their ID to link to an externally managed link+banner page. thx 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted January 24, 2014 Share Posted January 24, 2014 In general, no. On the affiliates.php specific pages, I think so What you need is a bit of php ... something like extract($this->_tpl_vars); $query = "SELECT id FROM tblaffiliates WHERE clientid=".$clientsdetails['userid']; $result = mysql_query ($query); $data = @mysql_fetch_array ($result); if ($data['id'] > 0) { $this->assign('affiliateid', $data['id']); } - - - Updated - - - In general, no. On the affiliates.php specific pages, I think so What you need is a bit of php ... something like extract($this->_tpl_vars); $query = "SELECT id FROM tblaffiliates WHERE clientid=".$clientsdetails['userid']; $result = mysql_query ($query); $data = @mysql_fetch_array ($result); if ($data['id'] > 0) { $this->assign('affiliateid', $data['id']); } 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.