drtduarte Posted December 30, 2007 Share Posted December 30, 2007 Hello to all, I wil start to use whmcs in 2008. I have installed the script without problems and it works great. I was using whmap and tried the importation with success, but as I only have 50 users, I will do everything manually. I just have some questions cause I was using whmap for 2 diferent languages. How do I use different header and footer for each language, can this be with 2 templates? Can I choose the template with a link? How can I have 2 different Terms of Service links, one for each language? Regards David 0 Quote Link to comment Share on other sites More sharing options...
Nick Posted December 30, 2007 Share Posted December 30, 2007 You'll need to either: a) disable the language system and use different templates for each language (yes, you can choose the template in a link to the system: filename.php?systemtemplate=templatename) b) Store the entire header and footer of your site in the language files under two variables, and replace the header and footer.tpl files' contents with {$LANG.header} and {$LANG.footer}, respectively. (Or replace 'header' and 'footer' with whatever you call the variables in your language files.) 0 Quote Link to comment Share on other sites More sharing options...
drtduarte Posted December 31, 2007 Author Share Posted December 31, 2007 Great. And what about the terms and service link, I guess I can have it also in the lang file, or have the terms and service code in the lang file... 0 Quote Link to comment Share on other sites More sharing options...
Nick Posted December 31, 2007 Share Posted December 31, 2007 There's an option to have new customers given a 'I agree to the terms here', linking to your terms of service. You'll be able to modify the order templates to change the link in each language. 0 Quote Link to comment Share on other sites More sharing options...
drtduarte Posted December 31, 2007 Author Share Posted December 31, 2007 Thanks a lot for your help friend. I'm shure that I will love this script, and I will do my best to contribute to get it better. Take care David 0 Quote Link to comment Share on other sites More sharing options...
jnet Posted February 26, 2008 Share Posted February 26, 2008 b) Store the entire header and footer of your site in the language files under two variables, and replace the header and footer.tpl files' contents with {$LANG.header} and {$LANG.footer}, respectively. (Or replace 'header' and 'footer' with whatever you call the variables in your language files.) This is what I did and it did not work. I removed all contents in header.tple and put the following code in there {$LANG.header} then in my lang file I put the following code $_LANG["header"] = " and put all my html previously in heade.tpl like <html> <title> bla bla bla ";It did not wok can any please please tell me how to achive this? 0 Quote Link to comment Share on other sites More sharing options...
ask21900 Posted February 26, 2008 Share Posted February 26, 2008 Did you wrap the global in {php} tags? 0 Quote Link to comment Share on other sites More sharing options...
Nick Posted February 27, 2008 Share Posted February 27, 2008 Did not work in what way? Do you get an error or just a blank page? If the latter, make sure you have escaped all the double quotes in your header by placing a \ in front of them. I.E. " becomes \" 0 Quote Link to comment Share on other sites More sharing options...
jnet Posted February 27, 2008 Share Posted February 27, 2008 no problem this is the way I solved my issue I cloned the portal folder and made another name for it and made changes in header.tple of new template. is this ok? 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.