Si Posted September 29, 2007 Share Posted September 29, 2007 I'm wondering if anyone can shed any light on this for me? I'm using the boxed order templates and on each of the step pages I have the message 'your ip address has been recorded as -------', using the $ipaddress tag to insert their IP into the page. It works fine on stepone.tpl but the exact same code in the other pages steptwo and stepthree etc just shows the () where the IP address should be. Anyone know what I've done wrong? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted September 29, 2007 WHMCS CEO Share Posted September 29, 2007 It can only be used on step one. 0 Quote Link to comment Share on other sites More sharing options...
Si Posted September 29, 2007 Author Share Posted September 29, 2007 It can only be used on step one. lol, that would explain it then. thanks. So, does this mean that if we place direct product links (which bypass sep 1) on my site, the warning can never be seen? 0 Quote Link to comment Share on other sites More sharing options...
philip Posted September 29, 2007 Share Posted September 29, 2007 You could show the IP address by using this code in any template: {php} $ip = $_SERVER['REMOTE_ADDR']; $this->assign('ipaddress',$ip); {/php} Then insert {$ipaddress} anywhere you in your template. 0 Quote Link to comment Share on other sites More sharing options...
Si Posted September 29, 2007 Author Share Posted September 29, 2007 Hi Phlip Thanks. That did the job. cheers. Si 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.