paperweight Posted April 28, 2016 Share Posted April 28, 2016 Hello: I've been struggling through the upgrade from v5 to v6 now for about half a year. And I'm almost done. The last thing is to customize the 6 template with our template components from v5. So to that end, I need to figure out how to make my own template files. On http://docs.whmcs.com/Customising_the_Six_Theme it lacks info on how to make my own .tpl and .php file to cal the .tpl. Unfortunately the system that we used for v5 is breaking on v6. Can someone point me to where info is located on how to create a .tpl and .php file? Tkz~ 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted April 28, 2016 Share Posted April 28, 2016 http://docs.whmcs.com/Creating_Pages 0 Quote Link to comment Share on other sites More sharing options...
paperweight Posted April 28, 2016 Author Share Posted April 28, 2016 Easy Tkz!! - - - Updated - - - Hmmm, a question though. In the new v6 I enter a Page Title with those code: $ca->setPageTitle("Your Page Title Goes Here"); But in the old v5 system I could use the language files to output different page titles depending on the language with those code: $ca->setPageTitle("$_LANG['mycustomtitle_cloudcompute']"); Is there a way to do the same thing in v6? Can I add a lang string to the setPageTitle in some way? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 28, 2016 Share Posted April 28, 2016 you should be able to do this... $ca->setPageTitle(Lang::trans('mycustomtitle_cloudcompute'')); 0 Quote Link to comment Share on other sites More sharing options...
paperweight Posted April 29, 2016 Author Share Posted April 29, 2016 you should be able to do this... $ca->setPageTitle(Lang::trans('mycustomtitle_cloudcompute'')); Great many thanks, but I adjusted the code by removing one of the quotations at the end like this: $ca->setPageTitle(Lang::trans('mycustomtitle_cloudcompute')); 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 29, 2016 Share Posted April 29, 2016 ah yes - my bad... just proves i'm human and not a WHMCS forum chat bot! 0 Quote Link to comment Share on other sites More sharing options...
paperweight Posted April 29, 2016 Author Share Posted April 29, 2016 ah yes - my bad... just proves i'm human and not a WHMCS forum chat bot! Yeah, sure... only a bot would say that though 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.