============================================================================================================================
Modification Title: Display Theme In Posts v1.0

Author: John Briggs

Updated By: Adam Clarke

Description:
This modification will display which Theme members are using in their posts.
This modification will display "Default Theme" if a theme is not 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. 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: viewthread.php
===================
==========
Find Code:
==========

require_once('header.php');

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

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

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

            if ($post['location'] != '') {
                $post['location'] = censor($post['location']);
                $location = '<br />'.$lang['textlocation'].' '.$post['location'];
            } else {
                $location = '';
            }

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

            // Display Theme In Posts Mod Begin
            if ($post['theme'] != '' && $post['theme'] != 0) {
                $membertheme = '<br />'.$lang['texttheme'].' '.${'theme'.$post['theme']};
            } else {
                $membertheme = '<br />'.$lang['texttheme'].' '.${'theme'.$SETTINGS['theme']}.$lang['defaulttheme'];
            }
            // Display Theme In Posts Mod End

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

            $location = '';
            $mood = '';

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

            // Display Theme In Posts Mod Begin
            $membertheme = '';
            // Display Theme In Posts Mod End

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

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

============================================================================================================================
=======
Step 3:
=======
===============================
Go To Administration Panel --> Templates
===============================
========================
Edit Template: viewthread_post
========================
==========
Find Code:
==========

$location

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

$membertheme

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

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

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