v1.1 => v1.2 Upgrade Instructions - Please Read Carefully:
|
Before attempting any upgrade it is always recommended you make a full backup of your current system before proceeding. If anything goes wrong, you can always revert to
your previous set up and start again. Note that not all versions are guaranteed to be upgradeable from the last version.
|
This update re-structures albums into parent/child association and also adds the option of a full album purchase discount:
[1] - Add the following language variables to your 'lang/english.php' file or any other language file you are using:
$msg_albums16 = 'Category';
$msg_albums17 = 'Top Level Album';
$msg_albums18 = 'Parent Album of';
$msg_albums19 = 'Album Purchase Discount';
$msg_publicalbum13 = 'Save <b>{amount}</b> %';
$msg_publicalbum14 = 'Related Albums';
$msg_cart9 = 'You Save {discount}%';
$msg_javascript23 = 'If you want visitors to get a discount for purchasing a whole album, specify the percentage here. Set as 0 for no discount.';
$msg_contact17 = 'Click Captcha to Refresh'; (Updated)
|
[2] - Add/Update the following files/folders from the latest version .zip file:
admin/data_files/albums.php
admin/classes/class_music.inc.php
index.php
classes/class_cart.inc.php
inc/functions.php
/crypt/ (New)
templates/album.tpl.php
templates/tpl_files/children.tpl (New)
templates/tpl_files/captcha.tpl
.htaccess (Only if you use the mod_rewrite option)
|
[3] - Delete the following files/folders from your installation:
classes/fonts/
classes/php-captcha.inc.php
|
[4] - Add the following style attributes to your 'templates/stylesheet.css' file:
.child {
display:block;
padding-top:8px;
}
#children {
background:#f6f8fb;
padding: 10px 0 10px 10px;
border: 1px solid #FBC25F;
text-align: left;
}
.captcha_border {
border:1px solid #fff;
}
|
[4] - Access your database management tool. Usually PHPMYadmin. Find your music database and browse for and run the following file:
|
docs/setup/upgrade-mysql/version1_2.sql
|
[5] - If you have lots of albums in your system and want to quickly apply a discount to all of them, run the following command. Note that you
should change the prefix if your prefix is not 'mm_'. In this example a 10% discount will be applied to all albums:
|
UPDATE mm_albums SET discount = '10';
|
Test system to make sure everything is working ok. Re-structure your albums if you want to have them as parent/child structure. Update new stylesheet attributes if
required. Change the captcha settings if required in the 'crypt/cryptographp.cfg.php' file. Finally, apply album discount if required.
Enjoy the latest changes!
|