kulsari@yahoo.com Posted March 19, 2010 Share Posted March 19, 2010 A new user of WHMCS...jus want a principle understanding of concept. Is WHMCS all based on smarty....Why all PHP files are coded....how to customz the php then...? I understand the concept as. 1. header.tpl 2.body.tpl like clientarea 3. footer.tpl All these are the logics....Presentation is done by the PHP file...but these are coded...So does it mean i take source code from page and customize it by creating a new PHP file. Thanks.. 0 Quote Link to comment Share on other sites More sharing options...
kulsari@yahoo.com Posted March 20, 2010 Author Share Posted March 20, 2010 Any thoughts ? 0 Quote Link to comment Share on other sites More sharing options...
vchosting Posted March 20, 2010 Share Posted March 20, 2010 You customise the smarty files .tpl in the templates folder -most php files are encoded so u can't do anything with them - in terms of layout the .tpl pages should be enough to achieve what u want 0 Quote Link to comment Share on other sites More sharing options...
Wiredremix Posted March 20, 2010 Share Posted March 20, 2010 As above, The encoded files are files you dont need to touch as they are the core of the system. You can completely customise the look of the system to your needs by customising the template files, these are found at templates/ folder. The default is portal which is a nice base to start from. The way i do things is go to my templates folder on my pc, find the portal folder and rename it too a new name. Such as template1. then upload that folder up to the templates folder on the webserver. Every file inside of there is well named to easily find the area you want to edit/change. The basics are header.tpl, footer.tpl. This will change the basics of the layout. You then can go forward and customise each "page" template. To edit the cart process there is a seperate file section in the templates folder. Inside there is the different cart themes. The first thing i would do when learning how to skin would to be read through the code and figure out whats what. For example looking through one of the page templates and mark it up so you know what sections what using <!--- Item description ---> . It makes it easier if as you read through the code to be looking at the page on a web browser aswell as you will quickly pickup what area is what. 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.