============================================================================================================================
Modification Title: Display Theme In Profiles

version: 1.0

Author: John Briggs

Updated By: Adam Clarke

Description:
This modification will display which theme the members are using in their member profile.
This modification will display the default theme if no theme is selected.

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

require_once('header.php');

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

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

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

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

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

            // Display Theme In Profiles Mod Begin
            if ($memberinfo['theme'] != '' && $memberinfo['theme'] != 0) {
                $membertheme = ${'theme'.$memberinfo['theme']};
            } else {
                $membertheme = ${'theme'.$SETTINGS['theme']}.$lang['defaulttheme'];;
            }
            // Display Theme In Profiles 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 Administration Panel --> Templates
===============================
=======================
Edit Template: member_profile
=======================
==========
Find Code:
==========

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

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

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

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

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

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