4images Modifications / Modifikationen > Mods & Plugins (Releases & Support)

[MOD] Search between specifyed date

<< < (9/9)

awf:
странно, но в 1.7.2, если искать фотки допустим за месяц, то в результате выдаются все (за всё время существования галереи) фотки... может я чего-то не так делаю.... надеюсь на помощь.
Спасибо

ccsakuweb:
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:


--- Code: ---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'],
--- End code ---


--- Code: ---   "search_keywords" => format_text(stripslashes($org_search_keywords), 2),
--- End code ---
this line is different than your line

--- Code: ---   "search_keywords" => htmlspecialchars(stripslashes($org_search_keywords)),
--- End code ---

please i need to search with * could you help me?

dplmartin:
Did anyone ever figure out how this mod could be changed so that it does not require any keyword or just one * to show all images between set dates?

Dominic

Peter Lehner:
Mit der Version 1.8 funktioniert die MOD für Datumsuche nicht, Basis hat sich zu stark verändert.

With the version 4images 1.8 does not work the MOD for the date search, the base code has changed too much.

Navigation

[0] Message Index

[*] Previous page

Go to full version