Difference between revisions of "What happens with modified files when JReviews is upgraded"

From JReviews Documentation
Jump to: navigation, search
Line 1: Line 1:
When JReviews is re-installed or upgraded, the whole  /components'''/com_jreviews''' folder is replaced with the new version, which is why it is important to make your modifications outside '''/com_jreviews''' as instructed in [[JReviews Code Overrides]]
 
  
When you upgrade JReviews it is important that you also update any modified files with changes in the newer version. This is to ensure your modified files include bug fixes and new features. You will need to compare each modified file with the same unmodified file in the newer version and:
+
When JReviews is re-installed or upgraded, the whole /components/com_jreviews folder is replaced with the new version, which is why it is important to make your modifications inside the /jreviews_overrides folder s instructed in [[JReviews Code Overrides]].
*update your modified file with changes in new version
+
*or copy the new version of the file and re-do your modifications
+
  
 +
Your modified files in the jreviews_overrides folder will not be deleted when JReviews is upgraded, but you will need to update those modified files if they are changed in new version of JReviews. When a new JReviews version is released, you should first check if some of the files that you customized have been updated in the latest release by comparing them with the [http://www.reviewsforjoomla.com/changelogs/jreviews/2.4/files_jreviews.txt list of updated files].
  
 +
If some of the files that you modified have been updated in the new version of JReviews, you have two options:
 +
 +
* update your modified file with changes in new version of the file, or
 +
* copy the new version of the file and re-do your modifications
  
 
If a file has many changes in the new version, a second option might be better because you are more familiar with your old modifications and re-doing them will be easier than implementing new changes into your modified file.
 
If a file has many changes in the new version, a second option might be better because you are more familiar with your old modifications and re-doing them will be easier than implementing new changes into your modified file.
  
 +
Comparing files for differences would be difficult without some tools. On windows, you can use [http://www.scootersoftware.com/ Beyond Compare] (commercial) or [http://winmerge.org/ WinMerge] (open source). On Mac OS, you can use [https://itunes.apple.com/us/app/comparemerge/id478570084?mt=12 CompareMerge] (commercial) or [http://www.kaleidoscopeapp.com/ Kaleidoscope] (commercial).
  
Comparing files for differences would be difficult without some tools. You can use [http://www.scootersoftware.com/ Beyond Compare] (commercial) or [http://winmerge.org/ WinMerge] (open source).
+
Here is an example of the detail.thtml file comparison between JReviews versions 2.4.9.1 and 2.4.12.4 using CompareMerge:
 
+
 
+
Here is an example of <span style="color: blue">listings_blogview.thtml</span> file comparison between JReviews versions 2.1.23.162 and 2.2.02.168 using WinMerge:
+
 
+
[[File:FileComparison.png]]
+
 
+
 
+
 
+
  
  
 +
[[File:file-comparison.png]]
  
  

Revision as of 13:50, 6 January 2014

When JReviews is re-installed or upgraded, the whole /components/com_jreviews folder is replaced with the new version, which is why it is important to make your modifications inside the /jreviews_overrides folder s instructed in JReviews Code Overrides.

Your modified files in the jreviews_overrides folder will not be deleted when JReviews is upgraded, but you will need to update those modified files if they are changed in new version of JReviews. When a new JReviews version is released, you should first check if some of the files that you customized have been updated in the latest release by comparing them with the list of updated files.

If some of the files that you modified have been updated in the new version of JReviews, you have two options:

  • update your modified file with changes in new version of the file, or
  • copy the new version of the file and re-do your modifications

If a file has many changes in the new version, a second option might be better because you are more familiar with your old modifications and re-doing them will be easier than implementing new changes into your modified file.

Comparing files for differences would be difficult without some tools. On windows, you can use Beyond Compare (commercial) or WinMerge (open source). On Mac OS, you can use CompareMerge (commercial) or Kaleidoscope (commercial).

Here is an example of the detail.thtml file comparison between JReviews versions 2.4.9.1 and 2.4.12.4 using CompareMerge:


File-comparison.png