Pekka
12th of December 2006 (Tue), 18:04
Update EE 2.0 or EE 2.01 to EE 2.02
DOWNLOAD FROM http://photography-on-the.net/ee/files/EE202_update.zip
UPGRADE SCRIPT 1.5-2.02 is not in above package, use the old script and update it to 2.02. I will provide full installer as a next task. Also, languages provided by users are not included here - I must make them avaiable on the EE pages.
UPDATE INSTRUCTIONS:
1. Backup database and download backup dump home. This is VERY IMPORTANT because you never know what may happen.
2. Backup your EE commerce templates if you have used them.
3. Upload and replace all files. NOTE: it is not essential to replace any template files. See release notes for details.
4. Browse to admin/updateversion202.php - this will update the version number and change performance row types.
5. If you have used EE Commerce templates, re-edit the new ones to match your old template data.
6. Add to basecode/SETUP_settings.php lines, after a section of similar thumb size limiter variables
$s_index_exhibition_max_thumbsize_width = "130";
$s_index_exhibition_max_thumbsize_height = "130";
$s_index_exhibition_max_microthumbsize_width = "45";
$s_index_exhibition_max_microthumbsize_height = "45";
$s_index_group_max_thumbsize_width = "130";
$s_index_group_max_thumbsize_height = "130";
$s_index_group_max_microthumbsize_width = "45";
$s_index_group_max_microthumbsize_height = "45";
7. You may also delete folders
ee_commerce/required
admin/output
and file
admin/RESIZE_imagick.php
as they are no longer needed.
That's it!
Post bug reports in http://photography-on-the.net/forum/forumdisplay.php?f=99
Release Notes
Misc stuff:
- fixed mysql error reporting's source names in multiple files.
- deleted folder admin/output and all in it.
- changed performance storage rows to float.
- deleted ee_commerce/required -folder.
- EE Commerce bugs fixed.
- copied x.gif from /graphs to admin/graphs folder.
- in path editor highlighted ftp server OFF to make it easier to understand its significance (i.e. something needs attention).
- lots of changes to "retrieve photo sizes" functions, speed and layout. Now usable with tens of thousands of photos.
- upload page refreshing made more robust.
- removed public side http header cache control alltogether. This might fix the problem with IE6 disappearing thumb problem, it definitely fixes occasional random login cookie loss in IE7 (IE7 team has confessed that http header related problem in their site). UPDATE: IE6 output problem was not fixed, fix is in http://photography-on-the.net/forum/showthread.php?t=250851
admin/SCRIPT_system_check.php
- added a check to see index.php exists in UPLOAD folder and a check that "SCRIPT_reset_username_and_pass.php exists" does not exists in admin folder.
admin/EDITOR_report.php (User breakdown)
- added command to clear invalid hanging sessions: "Clear all sessions which have exceeded user's maximum inactivity time."
admin/RESIZE_gd.php
- fixed png transparency in 8 and 24 bit watermark, jpeg (nontransparent) supported as watermark image.
admin/EDITOR_preview_gd.php
- fixed png transparency in 8 and 24 bit watermark, jpeg (nontransparent) supported as watermark image.
admin/EDITOR_category.php
- added editor display sorting choice.
admin/EDITOR_ftp_servers.php
- fixed PHP Module passive mode tick box bug.
basecode/SCRIPT_settings_global.php
- HTTP address to gallery autofixed (trailing slash, scheme).
basecode/SCRIPT_guestbook.php
- fixed comment submit interval problem (time check stored and compared using Mysql server time only).
- added homepage url cleaner/fixer.
basecode/SCRIPT_comments.php
- fixed comment submit interval problem (time check stored and compared using Mysql server time only).
- added homepage url cleaner/fixer.
- fixed missing html anchor.
outputstyles/infocard.php
- fixed keyword display problem.
basecode/SETUP_settings.php
- setting $s_remove_xhtml_multispaces removed as troublesome and not really useful at all (memory usage vs. real value ratio bad, most servers have gzip).
basecode/FTP_ee_library.php
- fixed upload block mode bugs.
admin/PHOTODATA_datahandler.php
- reversed shutter speed xmp/exif order.
- added conversion from decimal shutter speeds to closest conventional fractional representation.
admin/SCRIPT_editor_functions.php
- ee_extract_xmp_data function improved by DavidW.
empty.php
- acts now as a working example of custom page. You will need to add the template path to your style in order to see the page: the default template path for Custom A Content is either
templates/pages/ee_2_default_UDM/custom/content_a.php
(default), or
templates/pages/ee_2_default_UDM/custom/content_a.php
(default with UDM support)
Multiple files (almost all files):
- major change in slash handling. Immunity to "magic_quotes_sybase = on" setting, Magic Quotes do not have any effect. This fixes also many "can not save form X" bugs. Note for programmers: all addslashes(), stripslashes() and ee_stripslashes() are removed and not to be used anywhere. ee_addslashes() must be used for SQL query variable items.
basecode/SCRIPT_photodetails.php
- fixed linefeeds to validate in xhtml (reported by Jeronimo).
admin/EDITOR_report.php
- fixed reported spelling errors.
REMOVED FILE admin/RESIZE_imagick.php
- not used at all: removed.
admin/EDITOR_resize_methods.php
- fixed reported spelling errors.
- added watermark header info to GD.
basecode/SETUP_settings.php
- added settings:
$s_index_exhibition_max_thumbsize_width = "130";
$s_index_exhibition_max_thumbsize_height = "130";
$s_index_exhibition_max_microthumbsize_width = "45";
$s_index_exhibition_max_microthumbsize_height = "45";
$s_index_group_max_thumbsize_width = "130";
$s_index_group_max_thumbsize_height = "130";
$s_index_group_max_microthumbsize_width = "45";
$s_index_group_max_microthumbsize_height = "45";
Added -strip command to Imagemagick server setup
- kudos to DavidW for the tip
admin/SECURITY_check_authorization.php
- added cookie delete when no match, to prevent $ee_ident change mess with login so that manual cookie delete was required before relogin.
admin/SCRIPT_exhibition_breakdown.php
- added exhibition owner info.
- considerable listing speedup.
viewerstyles/VIEWERSTYLE_ftp_retrieve.php
- fixed bug: leftover debug print commands.
- fixed several bugs, now not available image is shown correctly in ftp unavailable, cleanup is not done if ftp unavailable, both ftp engines supported, etc.
admin/EDITOR_styles.php
- fixed a bug: save global style reseted editor style selection.
- fixed a bug: guestbook_layout link pointed to wrong file.
basecode/SCRIPT_indexfunctions.php
- fixed indexpage "ghost thumbnail".
- popular thumbs selection is now "selection of best rated photos from exhibitions in this group" and works that way.
- all group thumb choices' amount logic works as: "chosen photos picked from all exhibitions in this group, then list is randomized and required number shown".
EDITOR_settings_indexpage.php
- removed commented code which caused display corruption.
SCRIPT_system_check.php
- fixed a typo "must be 4.10 or greater" -> "must be 4.1.0 or greater".
EDITOR_workflow.php
- added workflow id validity checker (transparent, no separate command).
stylesheet.php
- improved style tag removal code (thanks to DavidW for regexp help).
admin/EDITOR_camera.php & basecode/SCRIPT_camera.php
- fixed empty output in specs form (thanks wkitty42).
added/fixed default templates
- fixed owner position:
/templates/pages/ee_2_default/exhibition/embedded/default_XHTML_content.php
alternative: exhibitions displayed by row:
/templates/pages/ee_2_default/exhibition/embedded/default_XHTML_content_horsort.php
alternative: sizemenu dropdown instead of frame text:
/templates/pages/ee_2_default/photo/default_XHTML_content_sizemenu.php
/templates/pages/ee_2_default_UDM/photo/default_XHTML_content_sizemenu.php
added demo content:
\templates\pages\ee_2_default\custom
\templates\pages\ee_2_default_UDM\custom
photo.php
- added ee_css_select_size_field CSS class in $sizemenu_html.
all font templates.
- added global CSS class
.ee_css_select_size_field {
font-family: <?php print $font_family; ?>;
font-size: 11px;
}
templates/colors/dark_green.php
- added global CSS class
.ee_css_select_size_field {
color: #ffffff;
background-color: #413a54;
padding: 0px;
margin: 0px;
border-top: 1px solid #5a5772;
border-left: 1px solid #5a5772;
border-right: 0px solid #666666;
border-bottom: 1px solid #333333;
}
templates/colors/white.php
- added global CSS class
.ee_css_select_size_field {
color: #666666;
background-color: #f3f2ed;
padding: 0px;
margin: 0px;
border-top: 1px solid #<?php print ee_hexcolorshifter("f3f2ed",".8"); ?>;
border-left: 1px solid #<?php print ee_hexcolorshifter("f3f2ed",".96"); ?>;
border-right: 0px solid #<?php print ee_hexcolorshifter("f3f2ed",".9"); ?>;
border-bottom: 1px solid #<?php print ee_hexcolorshifter("f3f2ed",".9"); ?>;
}
basecode/SCRIPT_common_functions.php
- spelling error in input_eecommerceform function.
- fixed html special character printing in function ee_print_thumbs.
upgrade/upgrade.php
- fixed problems with MySQL 4 or older compatibility.
DOWNLOAD FROM http://photography-on-the.net/ee/files/EE202_update.zip
UPGRADE SCRIPT 1.5-2.02 is not in above package, use the old script and update it to 2.02. I will provide full installer as a next task. Also, languages provided by users are not included here - I must make them avaiable on the EE pages.
UPDATE INSTRUCTIONS:
1. Backup database and download backup dump home. This is VERY IMPORTANT because you never know what may happen.
2. Backup your EE commerce templates if you have used them.
3. Upload and replace all files. NOTE: it is not essential to replace any template files. See release notes for details.
4. Browse to admin/updateversion202.php - this will update the version number and change performance row types.
5. If you have used EE Commerce templates, re-edit the new ones to match your old template data.
6. Add to basecode/SETUP_settings.php lines, after a section of similar thumb size limiter variables
$s_index_exhibition_max_thumbsize_width = "130";
$s_index_exhibition_max_thumbsize_height = "130";
$s_index_exhibition_max_microthumbsize_width = "45";
$s_index_exhibition_max_microthumbsize_height = "45";
$s_index_group_max_thumbsize_width = "130";
$s_index_group_max_thumbsize_height = "130";
$s_index_group_max_microthumbsize_width = "45";
$s_index_group_max_microthumbsize_height = "45";
7. You may also delete folders
ee_commerce/required
admin/output
and file
admin/RESIZE_imagick.php
as they are no longer needed.
That's it!
Post bug reports in http://photography-on-the.net/forum/forumdisplay.php?f=99
Release Notes
Misc stuff:
- fixed mysql error reporting's source names in multiple files.
- deleted folder admin/output and all in it.
- changed performance storage rows to float.
- deleted ee_commerce/required -folder.
- EE Commerce bugs fixed.
- copied x.gif from /graphs to admin/graphs folder.
- in path editor highlighted ftp server OFF to make it easier to understand its significance (i.e. something needs attention).
- lots of changes to "retrieve photo sizes" functions, speed and layout. Now usable with tens of thousands of photos.
- upload page refreshing made more robust.
- removed public side http header cache control alltogether. This might fix the problem with IE6 disappearing thumb problem, it definitely fixes occasional random login cookie loss in IE7 (IE7 team has confessed that http header related problem in their site). UPDATE: IE6 output problem was not fixed, fix is in http://photography-on-the.net/forum/showthread.php?t=250851
admin/SCRIPT_system_check.php
- added a check to see index.php exists in UPLOAD folder and a check that "SCRIPT_reset_username_and_pass.php exists" does not exists in admin folder.
admin/EDITOR_report.php (User breakdown)
- added command to clear invalid hanging sessions: "Clear all sessions which have exceeded user's maximum inactivity time."
admin/RESIZE_gd.php
- fixed png transparency in 8 and 24 bit watermark, jpeg (nontransparent) supported as watermark image.
admin/EDITOR_preview_gd.php
- fixed png transparency in 8 and 24 bit watermark, jpeg (nontransparent) supported as watermark image.
admin/EDITOR_category.php
- added editor display sorting choice.
admin/EDITOR_ftp_servers.php
- fixed PHP Module passive mode tick box bug.
basecode/SCRIPT_settings_global.php
- HTTP address to gallery autofixed (trailing slash, scheme).
basecode/SCRIPT_guestbook.php
- fixed comment submit interval problem (time check stored and compared using Mysql server time only).
- added homepage url cleaner/fixer.
basecode/SCRIPT_comments.php
- fixed comment submit interval problem (time check stored and compared using Mysql server time only).
- added homepage url cleaner/fixer.
- fixed missing html anchor.
outputstyles/infocard.php
- fixed keyword display problem.
basecode/SETUP_settings.php
- setting $s_remove_xhtml_multispaces removed as troublesome and not really useful at all (memory usage vs. real value ratio bad, most servers have gzip).
basecode/FTP_ee_library.php
- fixed upload block mode bugs.
admin/PHOTODATA_datahandler.php
- reversed shutter speed xmp/exif order.
- added conversion from decimal shutter speeds to closest conventional fractional representation.
admin/SCRIPT_editor_functions.php
- ee_extract_xmp_data function improved by DavidW.
empty.php
- acts now as a working example of custom page. You will need to add the template path to your style in order to see the page: the default template path for Custom A Content is either
templates/pages/ee_2_default_UDM/custom/content_a.php
(default), or
templates/pages/ee_2_default_UDM/custom/content_a.php
(default with UDM support)
Multiple files (almost all files):
- major change in slash handling. Immunity to "magic_quotes_sybase = on" setting, Magic Quotes do not have any effect. This fixes also many "can not save form X" bugs. Note for programmers: all addslashes(), stripslashes() and ee_stripslashes() are removed and not to be used anywhere. ee_addslashes() must be used for SQL query variable items.
basecode/SCRIPT_photodetails.php
- fixed linefeeds to validate in xhtml (reported by Jeronimo).
admin/EDITOR_report.php
- fixed reported spelling errors.
REMOVED FILE admin/RESIZE_imagick.php
- not used at all: removed.
admin/EDITOR_resize_methods.php
- fixed reported spelling errors.
- added watermark header info to GD.
basecode/SETUP_settings.php
- added settings:
$s_index_exhibition_max_thumbsize_width = "130";
$s_index_exhibition_max_thumbsize_height = "130";
$s_index_exhibition_max_microthumbsize_width = "45";
$s_index_exhibition_max_microthumbsize_height = "45";
$s_index_group_max_thumbsize_width = "130";
$s_index_group_max_thumbsize_height = "130";
$s_index_group_max_microthumbsize_width = "45";
$s_index_group_max_microthumbsize_height = "45";
Added -strip command to Imagemagick server setup
- kudos to DavidW for the tip
admin/SECURITY_check_authorization.php
- added cookie delete when no match, to prevent $ee_ident change mess with login so that manual cookie delete was required before relogin.
admin/SCRIPT_exhibition_breakdown.php
- added exhibition owner info.
- considerable listing speedup.
viewerstyles/VIEWERSTYLE_ftp_retrieve.php
- fixed bug: leftover debug print commands.
- fixed several bugs, now not available image is shown correctly in ftp unavailable, cleanup is not done if ftp unavailable, both ftp engines supported, etc.
admin/EDITOR_styles.php
- fixed a bug: save global style reseted editor style selection.
- fixed a bug: guestbook_layout link pointed to wrong file.
basecode/SCRIPT_indexfunctions.php
- fixed indexpage "ghost thumbnail".
- popular thumbs selection is now "selection of best rated photos from exhibitions in this group" and works that way.
- all group thumb choices' amount logic works as: "chosen photos picked from all exhibitions in this group, then list is randomized and required number shown".
EDITOR_settings_indexpage.php
- removed commented code which caused display corruption.
SCRIPT_system_check.php
- fixed a typo "must be 4.10 or greater" -> "must be 4.1.0 or greater".
EDITOR_workflow.php
- added workflow id validity checker (transparent, no separate command).
stylesheet.php
- improved style tag removal code (thanks to DavidW for regexp help).
admin/EDITOR_camera.php & basecode/SCRIPT_camera.php
- fixed empty output in specs form (thanks wkitty42).
added/fixed default templates
- fixed owner position:
/templates/pages/ee_2_default/exhibition/embedded/default_XHTML_content.php
alternative: exhibitions displayed by row:
/templates/pages/ee_2_default/exhibition/embedded/default_XHTML_content_horsort.php
alternative: sizemenu dropdown instead of frame text:
/templates/pages/ee_2_default/photo/default_XHTML_content_sizemenu.php
/templates/pages/ee_2_default_UDM/photo/default_XHTML_content_sizemenu.php
added demo content:
\templates\pages\ee_2_default\custom
\templates\pages\ee_2_default_UDM\custom
photo.php
- added ee_css_select_size_field CSS class in $sizemenu_html.
all font templates.
- added global CSS class
.ee_css_select_size_field {
font-family: <?php print $font_family; ?>;
font-size: 11px;
}
templates/colors/dark_green.php
- added global CSS class
.ee_css_select_size_field {
color: #ffffff;
background-color: #413a54;
padding: 0px;
margin: 0px;
border-top: 1px solid #5a5772;
border-left: 1px solid #5a5772;
border-right: 0px solid #666666;
border-bottom: 1px solid #333333;
}
templates/colors/white.php
- added global CSS class
.ee_css_select_size_field {
color: #666666;
background-color: #f3f2ed;
padding: 0px;
margin: 0px;
border-top: 1px solid #<?php print ee_hexcolorshifter("f3f2ed",".8"); ?>;
border-left: 1px solid #<?php print ee_hexcolorshifter("f3f2ed",".96"); ?>;
border-right: 0px solid #<?php print ee_hexcolorshifter("f3f2ed",".9"); ?>;
border-bottom: 1px solid #<?php print ee_hexcolorshifter("f3f2ed",".9"); ?>;
}
basecode/SCRIPT_common_functions.php
- spelling error in input_eecommerceform function.
- fixed html special character printing in function ee_print_thumbs.
upgrade/upgrade.php
- fixed problems with MySQL 4 or older compatibility.