Add Media Item: default the "Highlighted" choice to "NO"
Brought to you by:
canajun2eh,
yalnifj
Add Media Item: default the "Highlighted" choice to "NO"
"Yes" is only chosen once for each INDI, but "NO" is usually the choice for all the other items added.
I've had to go back numerous times because I forgot to set it to "NO" when adding a census image, etc.
Logged In: YES
user_id=1910459
Originator: NO
This one I agree with, although I think you mean:
Add Media Item: default the "Highlighted Image" choice to "NO"
Add Media Item: default the "Use this image as the thumbnail" choice to "NO"
It's been requested before, but I can't find the earlier request.
Logged In: YES
user_id=1910459
Originator: NO
I finally got round to working out how to do this. Here's how for anyone interested:
In the file /includes/functions_edit.php find the section that starts with << else if ($fact=="_PRIM" or $fact=="_THUM") { >> In my copy (ver 3462) its at row 1307. Yous should be somwhere near there. This will work with any version. Keep a copy of your changes though, as this will be over-written on your next upgrade, and need re-doing.
Remove or comment out the 3rd row << print "<option value=\"\"></option>\n";
Move the next three rows:
print "<option value=\"Y\"";
if ($value=="Y") print " selected=\"selected\"";
print ">".$pgv_lang["yes"]."</option>\n";
down to below the three after them (i.e. reverse the order of the Yes and No options).
You should end up with this:
else if ($fact=="_PRIM" or $fact=="_THUM") {
print "<select tabindex=\"".$tabkey."\" id=\"".$element_id."\" name=\"".$element_name."\" >\n";
//print "<option value=\"\"></option>\n";
print "<option value=\"N\"";
if ($value=="N") print " selected=\"selected\"";
print ">".$pgv_lang["no"]."</option>\n";
print "<option value=\"Y\"";
if ($value=="Y") print " selected=\"selected\"";
print ">".$pgv_lang["yes"]."</option>\n";
print "</select>\n";
Thats all it takes.
Logged In: YES
user_id=1323533
Originator: YES
Thank you very much! It works great!