Title: Display Theme In Member Profile v1.0

Author: John Briggs

Updated For 1.9.8 By: WormHole @ XMB Garage

Description:
This modification will display which theme members are using in there member profile.
This modification will display the default theme if used.

Copyright:  2009 John Briggs. All rights reserved.

Compatability: XMB 1.9.8 SP3

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. 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:
=======
==================
Edit File: member.php
==================
==========
Find Code:
==========

require 'header.php';

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

// Display Theme In Member Profile Mod Begin
include(ROOT.'include/theme.inc.php');
// Display Theme In Member Profile Mod End

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

                $memberinfo['regdate'] = gmdate($dateformat , $memberinfo['regdate'] + ($addtime * 3600) + ($timeoffset * 3600));

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

                // Display Theme In Member Profile Mod Begin
                if ($memberinfo['theme'] != '' && $memberinfo['theme'] != 0) {
                    $membertheme = ${'theme'.$memberinfo['theme']};
                } else {
                    $membertheme = ${'theme'.$SETTINGS['theme']}.$lang['defaulttheme'];;
                }
                // Display Theme In Member Profile Mod End

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

// Display Theme In Member Profile Mod Begin
$lang['defaulttheme'] = " (Default)";
// Display Theme In Member Profile Mod End

=======================================================================================================================================
=======
Step 4:
=======
==========================
Go to Admin Panel --> Templates
==========================
=======================
Edit Template: member_profile
==========================
==========
Find Code:
==========

<tr class="tablerow">
<td bgcolor="$altbg1" valign="top">$lang[lastactive]</td>
<td bgcolor="$altbg2">$lastmembervisittext</td>
</tr>

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

<tr class="tablerow">
<td bgcolor="$THEME[altbg1]" valign="top" width="22%">$lang[texttheme]</td>
<td bgcolor="$THEME[altbg2]">$membertheme</td>
</tr>

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

Upload provided file "theme.inc.php" to "include" folder in your forum directory.

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