View Full Version : how to upgrade to V4 with custom template ?
dotcom22
05-11-09, 09:11 AM
Hi
I have just upgrade to version 4 but I don't understand well how to do about template. In fact I use a customized "portal" template where I have make a lot modification...Now I see new portal template are totally different and I see also some change are made in some template file as describe on wiki upgrade step here (http://wiki.whmcs.com/Version_4.0_Release_Notes#Upgrade_Steps)
So how I must make my upgrade ? I would like continue to use my old customized portal template.... I start to make some confusion with my template, new portal template and modified template file.... I imagine the list of modified template files are not only modified for graphical reason but also because it contain new code ??
thanks
Mirko
Lightwave
05-11-09, 09:53 AM
First... I'd suggest not making changes to the distributed templates.
If you want to base a template off of portal... copy the portal directory and rename it to your own domain or something.
Then set the template under Setup->General Settings->Template
That way, when things upgrade... you won't overwrite your templates. Granted, they might not work anymore...
dotcom22
05-11-09, 10:16 AM
Thanks for suggestions but it is what I have do...My custome template use the base of portal template of version 3.8 and I hace copy, modify and renamed it...
But now with new version 4 I don't understand if I can continue to use it....
On upgrade page it is write the follow files are been updated:
The following template files have changed from the previous release V3.8
* bulkdomainchecker.tpl
* bulkdomaintransfer.tpl
* clientareaaddcontact.tpl
* clientareachangepw.tpl
* clientareachangesq.tpl
* clientareacontacts.tpl
* clientareacreditcard.tpl
* clientareadetails.tpl
* clientareadomaindetails.tpl
* clientareadomainrenew.tpl
* clientareadomains.tpl
* clientareahome.tpl
* clientareainvoices.tpl
* clientareaproducts.tpl
* clientareaproductdetails.tpl
* clientregister.tpl
* domainchecker.tpl
* downloads.tpl
* knowledgebase.tpl
* passwordreminder.tpl
* supportticketsubmit-steptwo.tpl
* upgrade.tpl
* upgradesummary.tpl
* viewinvoice.tpl
* viewticket.tpl
* All Order Form Templates
...so that mean if any of above files are been modified by me in my costomized template I must analyze that files and customize again according to my need ?
Am totally confused.....
Lightwave
05-11-09, 10:20 AM
You might... you might not...
It should be pretty simple to tell if your customized templates still work or not.
mediademon
05-11-09, 12:06 PM
Just doing this myself...
Try using http://winmerge.org/ to check the differences between the changed template files above!
Hope this helps
Zorro67
05-11-09, 09:50 PM
We do similar, but as our templates have contained continuous customisations since 3.2, we don't want to break the extra functionaility that we've implemented.
I simply do a comparison between the new version and the previous version and identify the "new" or changed code
I also duplicate our template and add the code the duplicate, so that whilst doing the template conversions, the customer sees a working platform, while I can see a live model of the new templates
Its a slower process at around 2 hours , but I find it easier than trying to add our code to the new templates. (we've taken out most of the validation errors versions ago)
You can also use notepad++, which has a useful 'compare' function between 2 files.
webberoo
05-12-09, 03:25 AM
I've found "Kdiff" really helpful when comparing scripts for changes in the past.
http://kdiff3.sourceforge.net/
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.