8
« on: August 18, 2010, 08:24:09 PM »
The way to fix it manually:
1. /member.php
find:
$search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column]);
add following lines after:
if ( $image_column == 'image_description' ) {
$search_words[$image_column] = str_replace(' ', ',', $search_words[$image_column]);
}
Should occur 2 times in this file.
2. /admin/checkimages.php
find:
$search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column]);
add following lines after:
if ( $image_column == 'image_description' ) {
$search_words[$image_column] = str_replace(' ', ',', $search_words[$image_column]);
}
3. /admin/images.php
find:
$search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column]);
add following lines after:
if ( $image_column == 'image_description' ) {
$search_words[$image_column] = str_replace(' ', ',', $search_words[$image_column]);
}
find:
$search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column.'_'.$i]);
add following lines after:
if ( $image_column == 'image_description' ) {
$search_words[$image_column] = str_replace(' ', ',', $search_words[$image_column]);
}
4. /admin/plugins/migrate_keywords.php
find:
$search_words = array(
"image_name" => $image_row['image_name'],
"image_description" => $image_row['image_description'],
"image_keywords" => $image_keywords,
);
replace with:
$search_words = array(
"image_name" => $image_row['image_name'],
"image_description" => str_replace(' ', ',', $image_row['image_description']),
"image_keywords" => $image_keywords,
);
6. /admin/validateimages.php
find:
$search_words[$image_column] = $image_cache[$key][$image_column];
add following lines after:
if ( $image_column == 'image_description' ) {
$search_words[$image_column] = str_replace(' ', ',', $search_words[$image_column]);
}
After performing these steps data comes in "image_description" field will be forcedly split by white spaces before submitting keywords to database.