Title: Display Theme In Threads v1.0

Author: John Briggs

Updated By: Curuncula

Description:
This modification will display which theme members are using in their threads.
This modification will display default theme if used.

Copyright:  2009 John Briggs.

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.

=======================================================================================================================================
=======
Step 1:
=======
===================
Edit File: viewthread.php
===================
==========
Find Code:
==========

require "./header.php";

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

// Display Theme In Threads Mod Begin
include(ROOT.'include/theme.inc.php');
// Display Theme In Threads 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 Threads 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 Threads Mod End

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

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

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

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

=======================================================================================================================
=======
Step 3:
=======
=======================
Edit File: lang/English.lang.php
=======================
==========
Find Code:
==========

============================
Add Code To End Of File Above ?>
============================

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

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

$location

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

$membertheme

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

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

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