=============================================================================================================================
TITLE:
 - Moderators in Separate Column

RELEASE VERSION:
 - 1.0

RELEASE DATE:
 - 27 April 2008; 11:50 AM (EDT)

COMPATIBILITY:
 - XMB v.1.9.8 Engage Final SP2

CODE DESIGNER:
 - Jonathon of JDMnet ( jonathon@jdmnet.org | www.jdmnet.org )

UPDATED FOR 1.9.8:
 - WormHole @ XMB Garage

DESCRIPTION:
 - This modification takes the listed forum moderators from the description column and puts them in a separate column after the lastpost row.

LICENSE NOTE:
 - This mod is released under the GPL v3 License. A copy is provided with this software.

NOTES:
 - Backup all templates, PHP files, and the database BEFORE proceeding.
 - This version is specifically for 1.9.8 SP2 and not any previous version of XMB
 - The long dashes are NOT part of the mod unless otherwise stated; they are there merely for separation of the lines.
 - This directions are based on a default/un-modified XMB; some instructions may very if you have modified your forums.
=============================================================================================================================


=======
Step 1.
=======.
=========================
Edit Template: index_category_hr
=========================
==========
Find Code:
==========
------------------------------------------------------------------------------------

<td width="54%">$lang[textforum]</td>

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

<td width="50%">$lang[textforum]</td>

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

<td width="19%">$lang[textlastpost]</td>

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

<td width="13%">$lang[mod_moderators]</td>

------------------------------------------------------------------------------------
=======
Step 2.
=======
=======================
Edit Template: index_category
=======================
------------------------------------------------------------------------------------
Find Code:
------------------------------------------------------------------------------------

colspan="5"

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

colspan="6"

------------------------------------------------------------------------------------
=======
Step 3.
=======
=====================
Edit Template: index_forum
=====================
------------------------------------------------------------------------------------
==========
Find Code:
==========
------------------------------------------------------------------------------------

<td bgcolor="$altbg2" class="tablerow" width="54%">

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

<td bgcolor="$altbg2" class="tablerow" width="50%">

------------------------------------------------------------------------------------
==================
Find And Delete Code:
==================
------------------------------------------------------------------------------------

&nbsp;<font class="smalltxt">$forum[moderator]&nbsp;</font>

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

<td bgcolor="$altbg1" class="rghttablerow" width="19%">$lastpostrow</td>

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

<td bgcolor="$altbg2" class="ctrtablerow" width="13%"><font class="smalltxt">$forum[moderator]</font></td>

------------------------------------------------------------------------------------
=======
Step 4.
=======
============================
Edit Template: forumdisplay_subforum
============================
==================
Find And Delete Code:
==================
------------------------------------------------------------------------------------

&nbsp;<font class="smalltxt">$forum[moderator]</font>

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

<td bgcolor="$altbg1" class="ctrtablerow">$lastpostrow</td>

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

<td bgcolor="$altbg2" class="ctrtablerow"><font class="smalltxt">$forum[moderator]</font></td>

------------------------------------------------------------------------------------
=======
Step 5.
=======
=============================
Edit Template: forumdisplay_subforums
=============================
==========
Find Code:
==========
------------------------------------------------------------------------------------

<td width="58%">$lang[textforum]</td>

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

<td width="52%">$lang[textforum]</td>

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

<td width="19%">$lang[textlastpost]</td>

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

<td width="13%">$lang[mod_moderators]</td>

------------------------------------------------------------------------------------
=======
Step 6.
=======
===================
Edit File: English.lang.php
===================
====================
Find Code At End Of File:
====================
------------------------------------------------------------------------------------

?>

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

// Moderators In Separate Column Mod Begin
$lang['mod_moderators'] = 'Moderators';
// Moderators In Separate Column Mod End

------------------------------------------------------------------------------------
=======
Step 7.
=======
=======================
Edit File: /include/functions.php
=======================
==========
Find Code:
==========
------------------------------------------------------------------------------------

$forum['moderator'] = implode(', ', $forum['moderator']);
$forum['moderator'] = '('.$lang['textmodby'].' '.$forum['moderator'].')';

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

$forum['moderator'] = implode('<br />', $forum['moderator']);
$forum['moderator'] = $forum['moderator'];

------------------------------------------------------------------------------------

Now upload your newly edited English.lang.php and functions.php files over your old ones.

Enjoy!

============================================================================================================================