Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
Mailing List Issue
Posted: 09 January 2007 03:00 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  263
Joined  2005-12-21

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]&nbsp;($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&nbsp;($sub_count)</option>\n";
    
}

?>

</select>

Now, how do I change it to show, as default, “Please select mailng list”?

 Signature 

EE v. 1.6.6

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 64434 Total Logged-in Users: 0
Total Topics: 80890 Total Anonymous Users: 0
Total Replies: 435386 Total Guests: 19
Total Posts: 516276    
Members ( View Memberlist )
Newest Members:  jstewMizoBobbyBDan HessMateus SouzagiusiMolideverbeeldingnana2007soundseller
Active Members: