Hi.
This is what I have changed
In db_field_definitions.php
I added
$additional_image_fields['image_personal'] = array("Personal Image", "text", 0);
$additional_image_fields['image_personal_colored'] = array("Personal Image color", "text", 0);
I added two columns to the 4images_images and 4images_images_temp
ALTER TABLE `4images_images` ADD `image_personal` text;
ALTER TABLE `4images_images` ADD `image_personal_colored` text;
ALTER TABLE `4images_images_temp` ADD `image_personal` text;
ALTER TABLE `4images_images_temp` ADD `image_personal_colored` text;
In the member_uploadform.html
I added
<textarea name="image_personal" cols="30" class="textarea" rows="10" wrap="VIRTUAL"></textarea>
<textarea type="hidden" name="image_personal_colored" cols="30" class="textarea" rows="10" wrap="VIRTUAL"></textarea>
In the member.php
I added this
$image_personal = un_htmlspecialchars(trim($HTTP_POST_VARS['image_personal']));
$image_personal_colored = un_htmlspecialchars(trim($HTTP_POST_VARS['image_personal_colored']));
$image_personal = modifystring($image_personal)
$image_personal_colored = modifystring($image_personal_colored)
function modifystring($str)
{//put here arbitrary modification to the string
}
Now after uploading an image the image_personal is modified and stored. The image_personal_colored, however, will take only the posted value and can not be modified.
Even if I add this line before the sql query that saves the image
$image_personal_colored="blah blah";
the image_personal_colored value will not change. and will reserve the posted value.
I hope that I clarified my problem for you.
thanks for your help.
Regards