Modification Name: Force Newsletter To All Option v1.0

Description: This modification will provide an option in the admin panel newsletter section that allows admins to override newsletter options and send to all regardless of their setting.

Compatability: XMB 1.9.8 SP3

Code Designed By: John Briggs

Updated for 1.9.8 by: WormHole @ XMB Garage

Notes: This modification is released under the GPL. A copy is provided with this software package.

Please backup your files before installing this modification. Neither XMB Garage nor the author 
can be held responsible if your board stops functioning properly due to you installing this modification.

=======================================================================================================================
=======
Step 1:
=======
====================
Edit File: English.lang.php
====================
============================
Add Code To End Of File Above ?>
============================

// Force Newsletter To All Option Mod Begin
$lang['textforceall'] = "All Members <small>(Override Member Option)</small>";
// Force Newsletter To All Option Mod End

=======================================================================================================================
=======
Step 2:
=======
===============
Edit File: cp2.php
===============
==========
Find Code:
==========

        <input type="radio" value="mod" name="to" /> <?php echo $lang['textsendmod']?></td>

================
Replace Code With:
================

        <input type="radio" value="mod" name="to" /> <?php echo $lang['textsendmod']?><br />
        <!-- Force Newsletter To All Option Mod Begin -->
        <input type="radio" value="forceall" name="to" /> <?php echo $lang['textforceall']?></td>
        <!-- Force Newsletter To All Option Mod End -->

==========
Find Code:
==========

        } else if ($to == "mod") {
            $query = $db->query("SELECT username, email FROM ".X_PREFIX."members WHERE status='Moderator' ORDER BY uid");
===============
Add Code Below:
===============

        // Force Newsletter To All Option Mod Begin
        } else if ($to == "forceall") {
            $query = $db->query("SELECT username, email FROM ".X_PREFIX."members ORDER BY uid");
        // Force Newsletter To All Option Mod End

=======================================================================================================================
Enjoy!