hi! i installed this mod in my gallery 1.7.3 i had to modified some code from search.php because is different than your search version. This mod works correctly but now the comodin * doesn't works then i can't see all images from a day, i need to know some keyword from the images
And there is a change in 1.7.3 version, My code with this mod is:
function date_select($start, $end, $now, $text_array = ""){
$options = "";
$start = ($start) ? $start : $start + 1;
for ($i = $start; $i <= $end; $i++){
$select = ($i == $now) ? " selected" : "";
$options .= "<option value=\"".$i."\"".$select.">".(($text_array) ? $text_array[$i - 1] : $i)."</option>";
}
return $options;
}
$site_template->register_vars(array(
"search_keywords" => format_text(stripslashes($org_search_keywords), 2),
"year_start" => date_select($year_default, $year_now, $year_start),
"year_end" => date_select($year_default, $year_now, $year_end),
"month_start" => date_select(1, 12, $month_start, $lang['month_array']),
"month_end" => date_select(1, 12, $month_end, $lang['month_array']),
"day_start" => date_select(1, 31, $day_start),
"day_end" => date_select(1, 31, $day_end),
"lang_search_date" => $lang['search_date'],
"lang_search_date_start" => $lang['search_start'],
"lang_search_date_end" => $lang['search_end'],
"search_user" => format_text(stripslashes($org_search_user), 2),
"lang_search_by_keyword" => $lang['search_by_keyword'],
"lang_search_by_username" => $lang['search_by_username'],
"lang_new_images_only" => $lang['new_images_only'],
"lang_search_terms" => $lang['search_terms'],
"lang_or" => $lang['or'],
"lang_and" => $lang['and'],
"search_keywords" => format_text(stripslashes($org_search_keywords), 2),
this line is different than your line
"search_keywords" => htmlspecialchars(stripslashes($org_search_keywords)),
please i need to search with * could you help me?