Hallo,
ich habe hier im Forum danach gesucht, aber nichts gefunden.
Da man den Bilderstatus ändern kann, möchte ich an dieser Stelle zeigen wie ich die Suche erweitert habe um Bilder zu finden die Inaktiv gestellt sind.
1) öffne die lang/admin.php un füge ein:
$lang['field_image_aktive'] = "Bild Aktiv 1=Aktiv/0=Inaktiv";
2) öffne die admin/images.php
a)
suche:
show_input_row($lang['field_hits_lower'], "hitslower", "", $textinput_size);
füge danach ein
show_input_row($lang['field_image_status'], "image_status", "", $textinput_size);
b)
suche:
<option value="i.image_hits"><?php echo $lang['field_hits'] ?></option>
füge danach ein:
<option value="i.image_active"><?php echo $lang['field_image_active'] ?></option>
c)
suche:
$hitsupper = trim($HTTP_POST_VARS['hitsupper']);
if ($hitsupper != "") {
$condition .= " AND i.image_hits > '$hitsupper'";
}
füge danach ein:
$image_status = trim($HTTP_POST_VARS['image_active']);
if ($image_status != "") {
$condition .= " AND i.image_active = '$image_active'";
}
Fertig
Kennt jemand eine Möglichkeit, das ganze als Radiobutton darzustellen?