TO UPGRADE FROM 3.2.0, 3.2.1 or 3.2.2 to 3.2.3:
Rename your existing sendcard directory, and upload the new one.
Copy the files you have modified to the new installation; at a minimum:
index.php, sendcard_setup.php, admin/config.php, templates/*, images/*, 
music/* and include/lang/*.

You will need to chmod the files again, you probably know them by now (they 
are: sendcard.php, sendcard_setup.php, admin/config.php, 
admin/plugins/<all files> and include/lang/<all files>.  Remeber to chmod them 
666 (that is, rw-rw-rw) so that the web server can write to them.  If you have
ssh access to your server you can use the script chmod.php to do the hard work
for you!  Run it from the commandline like:
	php ./chmod.php
	
Finally, log into the administration area and change the version number to 
3.2.3 in the "Configure" screen.  Also, please rebuild the language files
(go to the "Translation" and click the "Save changes" button at the bottom
of the page for each language you have)


@3.2.0RCX -> 3.2.0 final
Follow the instructions for 3.2.0RC1 -> 3.2.0RC2 :-)

@3.2.0RC2 -> 3.2.0RC3
Follow the instructions for 3.2.0RCX -> 3.2.0RC2 :-)

@3.2.0RC1 -> 3.2.0RC2
Rename your existing sendcard directory, and upload the new one.
Copy across all the changed files: index.php, sendcard_setup.php, 
admin/config.php, templates/*, images/*, music/* and include/lang/*

You will need to chmod the files again, you probably know them by now (they 
are: sendcard.php, sendcard_setup.php, admin/config.php, 
admin/plugins/<all files> and include/lang/<all files>.  Remeber to chmod them 
666 (that is, rw-rw-rw) so that the web server can write to them.

That should be it :-)

@3.1.X -> 3.2.0
BACK UP THE SENDCARD DATABASE TABLES!  I ALSO RECOMMEND THAT YOU MAKE A BACKUP
OF sendcard_setup.php.

Rename your old sendcard directory.  Upload the new sendcard directory, 
and then copy across the original index.php, sendcard_setup.php, admin/config.php, 
templates/*, images/*, music/* files.  Don't forget to chmod the files as 
required!  If you have ssh access to your server then you can use the script 
chmod.php to do the hard work for you.  Call it like:
% php -q ./chmod.php
AND THEN DELETE chmod.php FOR YOUR SECURITY!

Next, run http://yoursite.com/sendcard/admin/upgrade.php to make the required
changes to your database (the id column should be copied to the send_time col).
It is recommended that you delete this file after the installation is 
completed.

Now log into the administration interface and click on the "configure" link in
the menu.  Read through the enw options, and fill in any blank boxes.  Change 
the version number to 3.2.0  Save the changes.  Check the "Translation" screen 
also to see if you want to change any of the messages.

Send yourself a test card to check everything is working OK.

@3.1.X -> 3.1.2
Uninstall your plugins.  Overwrite existing files with those from the upgrade 
archive.  Reinstall plugins.

@3.0.X -> 3.1.0
*** IMPORTANT *** If you use any of the fields such as the caption, user1 or
user2 to hold javascript then you may have to modify sendcard.php, as due to
security problems this has now been prevented.

To upgrade:
Rename your current sendcard folder to sendcard_OLD.
Upload the new sendcard folder.

Delete the images/ and templates/ folders; admin/config.php and sendcard_setup.php.
Copy the images, templates admin/config.php and sendcard_setup.php from 
sendcard_OLD to your new folder.

Chmod sendcard.php, sendcard_setup.php, admin/config.php and admin/plugins/* to 666.

Log into the administration area using your old password.  Go to the configure
screen and change the version number (near the bottom) to 3.1.0

Reinstall any plugins and send yourself a test e-card.  You're done!

@@ 3.0.5 -> 3.0.5pl1
Uninstall plugins.
Replace sendcard.php with the one in the zip file.
Next, open your existing templates.  Change the credits at the bottom to the format:
<i>Powered by</i> <a href="{SENDCARD_SITE_URL}" target="_blank">sendcard</a>
This means that any future URL changes will be much easier, as the URL is controlled from within sendcard.php.
If you haven't customized form.tpl, message.tpl or message-left.tpl then you can replace them with the ones in the zip file and ou won't have to edit the credit.

@@3.0.4 -> 3.0.5
Uninstall any existing plugins.  Make a backup of your current installation.
Extract the zip file and delete sendcard_setup.php admin/config.php, and all the templates.  Upload, and overwrite the existing files.
Open your existing templates and change all links to http://www.sendcard.f2s.com to point to http://sendcard.resource-locator.com.
Check that sendcard works, and then reinstall the plugins.

@@ 3.X -> 3.0.4
Uninstall any plugins which you have installed.

Extract the zip file to a folder.  Download your existing sendcard/templates/image.tpl, and open it in your favourite text editor.  Add the following lines, overwriting the contents of anything between existing quicktime_block tags (although these tags should not exist in the file):

<!-- BEGIN quicktime_block -->
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="{IMG_WIDTH}"HEIGHT="{IMG_HEIGHT}" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM name="SRC" VALUE="{IMG_PATH}{IMAGE}">
<PARAM name="AUTOPLAY" VALUE="true">
<PARAM name="CONTROLLER" VALUE="true">
<EMBED SRC="sample.mov" width="{IMG_WIDTH}" height="{IMG_HEIGHT}" AUTOPLAY="true" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
</EMBED>
</OBJECT>
<!-- END quicktime_block -->


Create a backup copy of your current sendcard installation (just in case something goes wrong), and then upload the new files.  Test sending a card to check that it works.

Reinstall the plugins.

@@ 3.02 -> 3.03
Uninstall any plugins which you have installed.

Replace docs/index.html, sendcard.php, functions.php, templates/fancy.tpl and admin/mod_plugins.php.

Log in to the administration interface.  Click on "Configure", scroll down to "Advanced Options" and change the version of sendcard to 3.03.

Reinstall your plugins.

@@ 3.01 -> 3.02
Uninstall any plugins which you have installed.

Replace sendcard.php and admin/mod_properties.php

Log in to the administration interface.  Click on "Configure", scroll down to "Advanced Options" and change the version of sendcard to 3.02.

Reinstall your plugins.


@@ 3.00 -> 3.01
Uninstall any plugins you have installed.

Replace docs/index.html, sendcard.php, functions.php, advancesend.php, admin/index2.php, admin/mod_plugins.php and admin/mod_tables.php.
Add docs/style.css

You need to alter your database so that the field   "id varchar(10) NOT NULL," in table sendcard becomes   "id varchar(14) NOT NULL," - if you have a tool such as PHPMyAdmin then this is easy to do (Display the table properties, click on the Edit button for the id column and change the length) and you don't need to know SQL.  

Should you need teh SQL, then for MySQL, it is: "ALTER TABLE sendcard CHANGE id id varchar(14) NOT NULL" where sendcard is the name of the table storing your cards.  If you use a different database: sorry, you'll have to find it out for yourself :-)

Open sendcard_setup.php in a text editor, and find the line which reads: "$sc_version = "3.00";".  Change the number to 3.01 (unfortunately I haven't worked out how to do this automatically yet :-))

Reinstall your plugins.


@@ 2 -> 3
There is currently no upgrade script to get you from version 2 to version 3.  If enough people ask, I will write one - contact me at sendcard@f2s.com

Of course if someone else will write it: go for it!

My best suggestion is that you create the db table with a different name, dump the data from your old table and try inserting it into the new one.  If it goes - great, and then you can delete the old table and rename the new one.  If not, then you could add the new database fields manually - something which phpMyAdmin makes much easier.
