Index: branches/RC/core/install/upgrades.sql
===================================================================
diff -u -N -r10024 -r10156
--- branches/RC/core/install/upgrades.sql (.../upgrades.sql) (revision 10024)
+++ branches/RC/core/install/upgrades.sql (.../upgrades.sql) (revision 10156)
@@ -167,4 +167,17 @@
INSERT INTO ConfigurationAdmin VALUES ('KeepSessionOnBrowserClose', 'la_title_General', 'la_prompt_KeepSessionOnBrowserClose', 'checkbox', NULL, NULL, '13', '0', '0');
INSERT INTO ConfigurationValues VALUES (DEFAULT, 'KeepSessionOnBrowserClose', 0, 'Proj-Base', 'in-portal:configure_general');
-ALTER TABLE PersistantSessionData ADD VariableId BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
\ No newline at end of file
+ALTER TABLE PersistantSessionData ADD VariableId BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
+
+# ===== v 4.2.3 =====
+INSERT INTO ConfigurationAdmin VALUES ('u_MaxImageCount', 'la_section_ImageSettings', 'la_config_MaxImageCount', 'text', '', '', 30.01, 0, 0);
+INSERT INTO ConfigurationAdmin VALUES ('u_ThumbnailImageWidth', 'la_section_ImageSettings', 'la_config_ThumbnailImageWidth', 'text', '', '', 30.02, 0, 0);
+INSERT INTO ConfigurationAdmin VALUES ('u_ThumbnailImageHeight', 'la_section_ImageSettings', 'la_config_ThumbnailImageHeight', 'text', '', '', 30.03, 0, 0);
+INSERT INTO ConfigurationAdmin VALUES ('u_FullImageWidth', 'la_section_ImageSettings', 'la_config_FullImageWidth', 'text', '', '', 30.04, 0, 0);
+INSERT INTO ConfigurationAdmin VALUES ('u_FullImageHeight', 'la_section_ImageSettings', 'la_config_FullImageHeight', 'text', '', '', 30.05, 0, 0);
+
+INSERT INTO ConfigurationValues VALUES (DEFAULT, 'u_MaxImageCount', 5, 'In-Portal:Users', 'in-portal:configure_users');
+INSERT INTO ConfigurationValues VALUES (DEFAULT, 'u_ThumbnailImageWidth', 120, 'In-Portal:Users', 'in-portal:configure_users');
+INSERT INTO ConfigurationValues VALUES (DEFAULT, 'u_ThumbnailImageHeight', 120, 'In-Portal:Users', 'in-portal:configure_users');
+INSERT INTO ConfigurationValues VALUES (DEFAULT, 'u_FullImageWidth', 450, 'In-Portal:Users', 'in-portal:configure_users');
+INSERT INTO ConfigurationValues VALUES (DEFAULT, 'u_FullImageHeight', 450, 'In-Portal:Users', 'in-portal:configure_users');
\ No newline at end of file
Index: branches/RC/core/units/users/users_tag_processor.php
===================================================================
diff -u -N -r9071 -r10156
--- branches/RC/core/units/users/users_tag_processor.php (.../users_tag_processor.php) (revision 9071)
+++ branches/RC/core/units/users/users_tag_processor.php (.../users_tag_processor.php) (revision 10156)
@@ -220,6 +220,12 @@
return $this->Application->ProcessParsedTag('m', 'Link', $params);
}
+
+ function ImageSrc($params)
+ {
+ list ($ret, $tag_processed) = $this->processAggregatedTag('ImageSrc', $params, $this->getPrefixSpecial());
+ return $tag_processed ? $ret : false;
+ }
}
?>
\ No newline at end of file
Index: branches/RC/core/units/general/helpers/image_helper.php
===================================================================
diff -u -N -r9697 -r10156
--- branches/RC/core/units/general/helpers/image_helper.php (.../image_helper.php) (revision 9697)
+++ branches/RC/core/units/general/helpers/image_helper.php (.../image_helper.php) (revision 10156)
@@ -287,15 +287,19 @@
$image_path = $item_image['ThumbPath'];
if ($item_image['DefaultImg'] == 1 || $item_image['Name'] == 'main') {
// process primary image separately
- $object->SetDBField('PrimaryImage', $image_path);
- $object->SetOriginalField('PrimaryImage', $image_path);
- $object->Fields['PrimaryImage']['original_field'] = $item_image['Name'];
+ if (array_key_exists('PrimaryImage', $object->Fields)) {
+ $object->SetDBField('PrimaryImage', $image_path);
+ $object->SetOriginalField('PrimaryImage', $image_path);
+ $object->Fields['PrimaryImage']['original_field'] = $item_image['Name'];
+ }
continue;
}
- $object->SetDBField('Image'.$image_counter, $image_path);
- $object->SetOriginalField('Image'.$image_counter, $image_path);
- $object->Fields['Image'.$image_counter]['original_field'] = $item_image['Name'];
+ if (array_key_exists('Image'.$image_counter, $object->Fields)) {
+ $object->SetDBField('Image'.$image_counter, $image_path);
+ $object->SetOriginalField('Image'.$image_counter, $image_path);
+ $object->Fields['Image'.$image_counter]['original_field'] = $item_image['Name'];
+ }
$image_counter++;
}
}
Index: branches/RC/themes/default2007/platform/my_account/my_profile.tpl
===================================================================
diff -u -N -r9664 -r10156
--- branches/RC/themes/default2007/platform/my_account/my_profile.tpl (.../my_profile.tpl) (revision 9664)
+++ branches/RC/themes/default2007/platform/my_account/my_profile.tpl (.../my_profile.tpl) (revision 10156)
@@ -31,7 +31,7 @@
img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" />
-