From the 2.1.2 version of Noah's, all install packages contain an update.php script that you can use to update an existing Noah's Classifieds 1.3 (or 1.3.1) installation to the latest Noah's release. The update script has two tasks:
It converts the old database structure into the new one keeping all the existing content (so categories, ads, custom fields and other objects will be taken over),
It creates new thumbnails for the uploaded advertisement images (since the 4.x version applies different thumbnail dimensions than the 1.3),
Of course the program files will be updated, too, but this will be done by you manually and not by the update script!
You can perform the update by following the below instructions:
Step 2 - Updating the files: in this step, there are two possibilities: you can perform the update using a just downloaded install package, or if you have an already installed 4.x version, you can use its files, too:
A: if you have an install package of the latest release: unpack the new version and copy the unpacked files in your Noah's 1.3 installation directory overwriting the old files.
B: if you have an already installed latest 3.x release: overwrite all the files of the 1.3 installation with that of the latest release installation excluding the config.php file! It is important that the config.php file of the original 1.3 installation remains intact, because it stores the actual database access details.
You can't use this script to update Noah's Classifieds 1.2, 1.1, or 1.0!
If you are in doubt which Noah's version you actually have, you can check the version number in the database: it is stored in the instver field of the only record of the classifieds_globalstat table.
The first thing the update.php script checks is actually the version number of the old installation - so, if it's not at least 1.3, it won't try to perform the update.
Because
update.php must re-generate the advertisement pictures, it will check whether it has write permission to the files under
pictures/listings. If it has no write permission, you must grant it first.
Click here to read more about setting the file permissions!