Title: Mod Drop Down List v1.2

Author: John Briggs

Description:
This mod provides an drop down list of all moderators assigned to a forum and subforums.

Copyright:  2006 John Briggs. All rights reserved.

Compatability: XMB 1.9.5 Final

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

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

Author Note:
You downloaded this hack from XMBMods.com, the #1 source for XMB related downloads.
Please visit http://www.xmbmods.com/ for support.

=======================================================================================================================================
=======
Step 1:
=======

========================
Edit File: functions.php
========================

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

    if (X_SADMIN || $hideprivate == 'off' || privfcheck($forum['private'], $forum['userlist'])) {
        if ( $forum['moderator'] != '') {
            $moderators = explode(', ', $forum['moderator']);
            $forum['moderator'] = array();
            for($num = 0; $num < count($moderators); $num++) {
                $forum['moderator'][] = '<a href="member.php?action=viewpro&amp;member='.rawurlencode($moderators[$num]).'">'.$moderators[$num].'</a>';
            }
            $forum['moderator'] = implode(', ', $forum['moderator']);

            $forum['moderator'] = '('.$lang['textmodby'].' '.$forum['moderator'].')';
        }
        eval("\$foruminfo = \"".template("$template")."\";");
    }

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

    if (X_SADMIN || $hideprivate == 'off' || privfcheck($forum['private'], $forum['userlist'])) {
        if (isset($forum['moderator']) && $forum['moderator'] != '') {
            $moderators = explode(', ', $forum['moderator']);
            $forum['moderator'] = array();
            for ($num = 0; $num < count($moderators); $num++) {
                $forum['moderator'][] = '<option value="member.php?action=viewpro&amp;member='.rawurlencode($moderators[$num]).'">'.$moderators[$num].'</option>';
            }
            $forum['moderator'] = implode("\n", $forum['moderator']);
            $forum['moderator'] = stripslashes($forum['moderator']);
        }
        eval('$foruminfo = "'.template($template).'";');
    }

=======================================================================================================================================
=======
Step 2:
=======

======================================================
Go to administration panel -> templates -> index_forum
======================================================

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

&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"><select name="mod" class="smalltxt" onchange="if(options[selectedIndex].value){location = options[selectedIndex].value}"><option value="">$lang[textmods]</option><option value="">--------------------</option>$forum[moderator]</select></td>

=======================================================================================================================================
=======
Step 3:
=======

================================================================
Go to administration panel -> templates -> forumdisplay_subforum
================================================================

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

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

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

<td bgcolor="$altbg1" class="tablerow"><font size="1" face="verdana">$lastpostrow</font></td>

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

<td bgcolor="$altbg2" class="ctrtablerow"><select name="mod" class="smalltxt" onchange="if(options[selectedIndex].value){location = options[selectedIndex].value}"><option value="">$lang[textmods]</option><option value="">--------------------</option>$forum[moderator]</select></td>

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

=========================================================
Go to administration panel -> templates -> index_category
=========================================================

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

<td colspan="6" class="category">

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

<td colspan="7" class="category">

=======================================================================================================================================
=======
Step 5:
=======

============================================================
Go to administration panel -> templates -> index_category_hr
============================================================

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

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

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

<td width="20%" class="header">$lang[textmoderator]</td>

=======================================================================================================================================
=======
Step 6:
=======

=================================================================
Go to administration panel -> templates -> forumdisplay_subforums
=================================================================

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

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

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

<td width="20%" class="header">$lang[textmoderator]</td>

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