Skip to content
Frug edited this page Oct 10, 2012 · 1 revision

When a new version of AJAX Chat comes out you may consider updating your existing copy.

Updating an unmodified version of AJAX Chat is usually a simple procedure:

  1. Back up your js/config.js and lib/config.php files
  2. Upload the new files, overwriting your existing copy's files.
  3. Replace the new config.js and config.php files with your old ones.
  4. Apply and database changes (If there are any. Usually there aren't).
In many cases this will be sufficient however we may have added new configuration options to the chat in which case you will need to add these changes to your old config files (or the new options will be missing and who knows what havoc that will cause!). You should look at the changelog.txt file that comes with every version of AJAX Chat to see if we have changed the config files. If we have, look and see what changes you need to add to your old files. Or just use the new config files and reconfigure everything.

If there are any updates to the database that need to be made we will make a note of that in the changelog. If so, you will need to run the install.php again or manually run an SQL query on your server (usually using PhpMyAdmin) to implement the changes.

If your chat has modifications made to it, hopefully your modifications are all contained within the CustomAJAXChat.php and custom.js files. If so, just keep your old files the same way you kept the config files. If something breaks, it means we changed something in one of the functions you've overridden or modified, and you'll have to look through things manually to see what needs fixing.