This is in regards to the e-mail mailing list page in the control panel.
Under the “Mailing List” drop-down menu, instead of showing e-mail “all mailing list subscribers”, I would like it to show something like “Please select mailing list”. I have had problems with other administrators inadvertently e-mailing the wrong mailing list, because the default “All subscribers” is shown. I would like for them to have to select which mailing list before they can send.
I found the mailinglist.cp.php file, and the following code that applies to this function:
<select name="to_whom" class="pulldown">
<?php
echo "<option value=\"all\">$L_POSTOFFICE[550] ($total)</option>";
$sql = "select pm_option, pm_value from $db_prefs where pm_option LIKE 'mailinglist_name_%' order by pm_value desc";
$query = new DB_query($DB, $sql);
while($query->db_fetch_array())
{
$m_name = $query->row['pm_option'];
$name = substr($m_name,17);
$mailinglistname = $query->row['pm_value'];
$result = new DB_query($DB, "select count(*) as sub_count from $db_mailinglist where `$name` = 'yes' ");
$result->db_fetch_object();
$sub_count = $result->obj->sub_count;
unset($result);
echo "<option value=\"$name\">$mailinglistname ($sub_count)</option>\n";
}
?>
</select>
Now, how do I change it to show, as default, “Please select mailng list”?
