============================================================================================================================
Modification Name: Newsletter Option - Force Email-U2U To All

Version: 1.0

Code Designed By: John Briggs

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

Compatability: XMB 1.9.5 SP1

Updated by: maluta (Mike Kaplunov)

Install Note: Before adding this modification to your forum, you should back up all files related to this mod.

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

Author Note:
You downloaded this modification from XMBGarage.com, the best source for XMB related downloads.
Please visit http://www.xmbgarage.com/ for support.
============================================================================================================================
=======
Step 1:
=======
=======================
Edit File: lang/English.lang.php
=======================
============================
Add Code To End Of File Above  ?>
============================

// Newsletter Option Mod Begin
$lang['textforceall'] = "All Members <small>(Override Member Option)</small>";
// Newsletter 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 />
        <input type="radio" value="forceall" name="to" /> <?php echo $lang['textforceall']?></td>

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

        } elseif ($to == "mod") {
            $query = $db->query("SELECT username, email FROM $table_members WHERE status='Moderator' ORDER BY uid");

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

        } elseif ($to == "mod") {
            $query = $db->query("SELECT username, email FROM $table_members WHERE status='Moderator' $tome ORDER BY uid");
        // Newsletter Option Mod Begin
        } elseif ($to == "forceall") {
            $query = $db->query("SELECT username, email FROM $table_members ORDER BY uid");
        // Newsletter Option Mod End

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