============================================================================================================================
Modification Title: Forum Display Mass Moderation

Version: 1.1

Author: John Briggs, Mark Hemstead

Description: This modification will provide mass moderation tools on forum display for multi tasking of moderator options.

Copyright:  2010 John Briggs. All Rights Reserved.
Copyright:  2010 Mark Hemstead. All Rights Reserved.

Compatability: XMB 1.9.5 SP1

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 License v3. A copy is provided with this software package.

Author Note:
You downloaded this modification from XMBGarage.com, the #1 source for XMB related downloads.
Please visit http://www.xmbgarage.com/ for support.
============================================================================================================================
=======
Step 1:
=======

Upload provided file "massmod.inc.php" to your forum's "include" folder.
Upload provided files "install.php and massmod.xmb to your forum's "root" folder.

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

// Forum Display Mass Moderation Mod Begin
$lang['massmod_go'] = "Go";
$lang['massmod_close'] = "Close/Open Thread(s)";
$lang['massmod_top'] = "Top/Untop Thread(s)";
$lang['massmod_bump'] = "Bump Thread(s)";
$lang['massmod_copy'] = "Copy Thread(s)";
$lang['massmod_delete'] = "Delete Thread(s)";
$lang['massmod_empty'] = "Empty Thread(s)";
$lang['massmod_move'] = "Move Thread(s)";
$lang['massmod_merge'] = "Merge Thread(s)";
$lang['massmod_tidsmerged'] = "TIDs to be merged";
$lang['massmod_notids'] = "No TIDs selected.";
$lang['massmod_options'] = "Options";
// Forum Display Mass Moderation Mod End

============================================================================================================================
=======
Step 3:
=======
=====================
Edit File: forumdisplay.php
=====================
==========
Find Code:
==========

loadtemplates(

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

loadtemplates(
'massmod_openclose',
'massmod_topuntop',
'massmod_bump',
'massmod_copy',
'massmod_merge',
'massmod_delete',
'massmod_empty',
'massmod_move',

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

if ($status1 == "Moderator") {
    $forumdisplay_thread = 'forumdisplay_thread_admin';
}

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

if ($status1 == 'Moderator') {
    $forumdisplay_thread = 'forumdisplay_thread_admin';
    // Forum Display Mass Moderation Mod Begin
    include_once(ROOT.'include/massmod.inc.php');
    // Forum Display Mass Moderation Mod End
}

============================================================================================================================
=======
Step 4:
=======

Run the installation script.

Example: http://www.sitename.com/forumname/install.php

============================================================================================================================
=======
Step 5:
=======
===============================
Go To Administration Panel --> Templates
===============================
==========================
Edit Template: forumdisplay_admin
==========================
==========
Find Code:
==========

<table width="$tablewidth" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="post" align="right">&nbsp;$newtopiclink$newpolllink</td>
</tr>

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

<form name="massmod_form" method="post" action="forumdisplay.php?fid=$fid">

===================
Find Code & Delete:
===================

<td width="6%" class="header">$lang[topuntop]</td>

===================
Find Code & Delete:
===================

<td width="4%" class="header">$lang[deletecolon]</td>

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

<td width="4%" class="header" align="center"><img src="./images/admin/hammer.gif" border="0" alt = "$lang[altadmintools]" /></td>

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

<td width="2%" class="header" align="center"><input type="checkbox" onclick="invertSelection('massmod_form', 'cmassmod[]'); return true;" /></td>

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

$threadlist
$multipage

===============
Add Code Below:
===============

<tr class="tablerow">
<td bgcolor="$THEME[altbg2]" colspan="8" align="right">
$lang[massmod_options]:
<select style="font-size: 9px" name="mass_mod">
<option value="" selected="selected">$lang[textadminoptions]</option>
$mt_option
<option value="close">$lang[massmod_close]</option>
<option value="top">$lang[massmod_top]</option>
<option value="bump">$lang[massmod_bump]</option>
<option value="copy">$lang[massmod_copy]</option>
<option value="delete">$lang[massmod_delete]</option>
<option value="empty">$lang[massmod_empty]</option>
<option value="move">$lang[massmod_move]</option>
<option value="merge">$lang[massmod_merge]</option>
</select>
&nbsp;<input style="font-size: 9px" class="submit" type="submit" name="mass_mod_go" value="$lang[massmod_go]" />
</td>
</tr>
</form>

============================================================================================================================
=======
Step 6:
=======
===============================
Go To Administration Panel --> Templates
===============================
=================================
Edit Template: forumdisplay_multipage_admin
=================================
==========
Find Code:
==========

colspan="10"

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

colspan="8"

============================================================================================================================
=======
Step 7:
=======
===============================
Go To Administration Panel --> Templates
===============================
=============================
Edit Template: forumdisplay_nothreads
=============================
==========
Find Code:
==========

colspan="10"

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

colspan="8"

============================================================================================================================
=======
Step 8:
=======
===============================
Go To Administration Panel --> Templates
===============================
===============================
Edit Template: forumdisplay_thread_admin
===============================
===================
Find Code & Delete:
===================

<td bgcolor="$altbg1" class="ctrtablerow" align="center"><font class="mediumtxt"><a href = "topicadmin.php?tid=$thread[tid]&amp;fid=$forum[fid]&amp;action=top">$topimage</a></font></td>

===================
Find Code & Delete:
===================

<td bgcolor="$altbg1" class="ctrtablerow"><a href="topicadmin.php?tid=$thread[realtid]&amp;fid=$forum[fid]&amp;action=delete"><img src="./images/admin/deletetopic.gif"
alt="$lang[deletethread]" border="0" /></a></td>

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

<td bgcolor="$altbg2" class="ctrtablerow"><a href="viewthread.php?tid=$thread[tid]#admintools"><img src="./images/admin/hammer.gif" border="0" alt = "$lang[altadmintools]" /></a></td>

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

<td bgcolor="$altbg1" class="ctrtablerow"><input type="checkbox" name="cmassmod[]" value="$thread[realtid]" /></td>

============================================================================================================================
=======
Step 9:
=======

Now ensure you upload all effected files regarding this modification to their proper directory path.

============================================================================================================================
========
Step 10:
========

Delete the following files from your "board" directory.

install.php
massmod.xmb

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