Difference between revisions of "Client Area Template Files"
From WHMCS Documentation
(→Basic Steps) |
|||
Line 10: | Line 10: | ||
#You can then make your changes to the template files as required - header.tpl and footer.tpl affect the header and footer of all pages - all other template files are for their respective pages | #You can then make your changes to the template files as required - header.tpl and footer.tpl affect the header and footer of all pages - all other template files are for their respective pages | ||
#Once complete, upload your new templates folder to the templates directory of WHMCS on your server | #Once complete, upload your new templates folder to the templates directory of WHMCS on your server | ||
− | #Finally, to activate the template, login to the admin area, go to Configuration > General | + | #Finally, to activate the template, login to the admin area, go to Configuration > General Settings and on the first tab of the general settings choose your custom template name from the Template dropdown menu. |
Templates can also be changed on the fly per-user via the URL. Add '''?systemtemplate=''templatename''''' to the url when accessing the client area, or '''?ordertemplate=''orderform''''' to change the order form displayed. | Templates can also be changed on the fly per-user via the URL. Add '''?systemtemplate=''templatename''''' to the url when accessing the client area, or '''?ordertemplate=''orderform''''' to change the order form displayed. |
Revision as of 11:37, 6 May 2008
WHMCS is 100% customisable. Utilising the Smarty templating system, with the WHMCS template files you can:
- Change the entire look of all aspects of the client area
- Add your own HTML & PHP code to extend the system
- Add your own text strings which change based on the users language selection
Basic Steps
- Duplicate the "default" folder in the templates folder and rename it to a custom name
- You can then make your changes to the template files as required - header.tpl and footer.tpl affect the header and footer of all pages - all other template files are for their respective pages
- Once complete, upload your new templates folder to the templates directory of WHMCS on your server
- Finally, to activate the template, login to the admin area, go to Configuration > General Settings and on the first tab of the general settings choose your custom template name from the Template dropdown menu.
Templates can also be changed on the fly per-user via the URL. Add ?systemtemplate=templatename to the url when accessing the client area, or ?ordertemplate=orderform to change the order form displayed.
E.G.
http://yourdomain.com/whmcs/clientarea.php?systemtemplate=portal
http://yourdomain.com/whmcs/order.php?systemtemplate=portal&ordertemplate=singlepage
See also Template Syntax