Difference between revisions of "Client Area Template Files"
From WHMCS Documentation
(→Basic Steps) |
|||
Line 1: | Line 1: | ||
− | WHMCS is | + | WHMCS is fully customisable. Ever page of the client area is templated to allow you to change the look and fell of all aspects of the system. In WHMCS we use the powerful Smarty template system which allows you to: |
− | * | + | *Customise the layout and content of the client area |
− | *Add your own HTML & PHP code to extend | + | *Add your own HTML & PHP code to enhance and extend |
− | * | + | *Customise text strings within the lanuage files |
==Basic Steps== | ==Basic Steps== | ||
Line 12: | Line 12: | ||
#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. | #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 '''? | + | Templates can also be changed on the fly per-user via the URL. Add '''?systpl=''templatename''''' to the url when accessing the client area, or '''?carttpl=''orderform''''' to change the order form displayed. |
'''E.G.'''<br /> | '''E.G.'''<br /> | ||
− | <nowiki>http://yourdomain.com/whmcs/clientarea.php? | + | <nowiki>http://yourdomain.com/whmcs/clientarea.php?systpl=portal</nowiki> |
− | <nowiki>http://yourdomain.com/whmcs/order.php? | + | <nowiki>http://yourdomain.com/whmcs/order.php?systpl=portal&carttpl=singlepage</nowiki> |
See also [[Template Syntax]] | See also [[Template Syntax]] |
Revision as of 10:28, 20 March 2009
WHMCS is fully customisable. Ever page of the client area is templated to allow you to change the look and fell of all aspects of the system. In WHMCS we use the powerful Smarty template system which allows you to:
- Customise the layout and content of the client area
- Add your own HTML & PHP code to enhance and extend
- Customise text strings within the lanuage files
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 ?systpl=templatename to the url when accessing the client area, or ?carttpl=orderform to change the order form displayed.
E.G.
http://yourdomain.com/whmcs/clientarea.php?systpl=portal
http://yourdomain.com/whmcs/order.php?systpl=portal&carttpl=singlepage
See also Template Syntax