============================================================================================================================
Title: Mark All Threads Read

Version: 1.0

Author: John Briggs

Description:
This modification will provide the option to mark all threads as read through out the forum.

Copyright:  2009 John Briggs. All rights reserved.

Compatibility: XMB 1.9.8 SP4

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

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

Author Note: This modification is developed and released for use with XMB 1.9.8 SP4 which is provided by XMBGarage.com.

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

// Mark All Threads Read Mod Begin

$lang['markread'] = "Mark All Threads Read";
// Mark All Threads Read Mod End

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

    case 'captchaimage':
        nav($lang['textregister']);
        break;

===============
Add Code Above:
===============

    // Mark All Threads Read Mod Begin
    case 'markread':
        nav($lang['markread']);
        break;
    // Mark All Threads Read Mod End

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

    case 'captchaimage':
        require ROOT.'include/captcha.inc.php';
        $oPhpCaptcha = new Captcha(250, 50);
        $imagehash = postedVar('imagehash', '', FALSE, TRUE, FALSE, 'g');
        $oPhpCaptcha->Create($imagehash);
        exit();
        break;

===============
Add Code Above:
===============

    // Mark All Threads Read Mod Begin
    case 'markread':
        $xmblvb = $onlinetime;
        put_cookie('xmblvb', '', 0, $cookiepath, $cookiedomain);
        put_cookie('oldtopics', '', 0, $cookiepath, $cookiedomain);
        $lastvisit = $onlinetime;
        $lastvisit2 = $onlinetime;
        redirect('index.php', 0);
        break;
    // Mark All Threads Read Mod End

============================================================================================================================
=======
Step 3:
=======
===============================
Go To Administration Panel --> Templates
===============================
==============================
Edit Template: index_welcome_member
==============================
==========
Find Code:
==========

<td colspan="3">

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

<td colspan="4">

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

<tr class="ctrtablerow" bgcolor="$THEME[altbg2]">
<td width="33%"><a href="memcp.php"><strong>$lang[textusercp]</strong></a></td>
<td width="33%"><a href="u2u.php"><strong>$lang[textu2umessenger]</strong></a></td>
<td width="33%"><a href="#" onclick="Popup('buddy.php', 'Window', 450, 400);"><strong>$lang[launchbuddylist]</strong></a></td>
</tr>

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

<tr class="ctrtablerow" bgcolor="$THEME[altbg2]">
<td width="25%"><a href="memcp.php"><strong>$lang[textusercp]</strong></a></td>
<td width="25%"><a href="u2u.php"><strong>$lang[textu2umessenger]</strong></a></td>
<td width="25%"><a href="#" onclick="Popup('buddy.php', 'Window', 450, 400);"><strong>$lang[launchbuddylist]</strong></a></td>
<td width="25%"><a href="misc.php?action=markread"><strong>$lang[markread]</strong></a></td>
</tr>

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