HostOrca Posted August 2, 2009 Share Posted August 2, 2009 I have 3 sites: 1) hostorca.co.uk 2) hostorca.com 3) hostorca.net (whmcs) What I want to do in the whmcs templates is capture which domain the user came from (ie hostorca.co.uk or hostorca.com), then insert that domain into the links (for my sites main nav bar), and it do it for each page in whmcs that the user goes to (in whmcs). Basically if a user comes from hostorca.com, to hostorca.net, they can click on a link in the top nav and it will take them back to the page on hostorca.com Also, if they come to the site from anysite other than hostorca.com or hostorca.co.uk then a default domain will be set (hostorca.co.uk). Any suggestions on how best to do this? 0 Quote Link to comment Share on other sites More sharing options...
DedicatedPros Posted August 2, 2009 Share Posted August 2, 2009 Why would the user switch between sites? If he visited .com than would he not just stay there? 0 Quote Link to comment Share on other sites More sharing options...
HostOrca Posted August 2, 2009 Author Share Posted August 2, 2009 If he is on hostorca.com and wants to go to the client area, place an order, check the knowledgebase (which is located on hostorca.net (where my whmcs is installed)), he also might want to return to hostorca.com 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted August 3, 2009 Share Posted August 3, 2009 You should be able to use {$smarty.server.HTTP_HOST} to get the host name, save it as a session variable and sort out your links from there. 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.