============================================================================================================================
Modification Title: Copyright Notice

Version: 1.0

Author: John Briggs

Description: This modification will provide an option in the admin panel settings to add your own copyright text in the footer of your forum.

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:
=======
===================================
Go To Administration Panel -->Insert Raw SQL
===================================

Upload provided file named "SQL.txt" & click "Submit Changes" button.

============================================================================================================================
=======
Step 2:
=======
==============
Edit File: cp.php
==============
==========
Find Code:
==========

        $SETTINGS['bbrulestxt'] = stripslashes($SETTINGS['bbrulestxt']);

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

        // Copyright Notice Mod Begin
        $SETTINGS['copyrightnotice'] = stripslashes($SETTINGS['copyrightnotice']);
        // Copyright Notice Mod End

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

        printsetting4($lang['textbboffreason'], 'bboffreasonnew', $SETTINGS['bboffreason'], 5, 50);

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

        // Copyright Notice Mod Begin
        printsetting2($lang['copyrightnotice'], 'copyrightnoticenew', $SETTINGS['copyrightnotice'], 50);
        // Copyright Notice Mod End

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

        $bboffreasonnew = addslashes($bboffreasonnew);

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

        // Copyright Notice Mod Begin
        $copyrightnoticenew = addslashes($copyrightnoticenew);
        // Copyright Notice Mod End

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

$db->query("UPDATE $table_settings SET langfile='$langfilenew',

===================================
Find Code In-Line At End Of Above Statement
===================================

");

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

, copyrightnotice='$copyrightnoticenew'");

============================================================================================================================
=======
Step 3:
=======
=================
Edit File: header.php
=================
==========
Find Code:
==========

// if the user is registered, check for new u2u's
    $newu2umsg = '';
    if (X_MEMBER) {
        $query = $db->query("SELECT count(readstatus) FROM $table_u2u WHERE owner='$self[username]' AND folder='Inbox' AND readstatus='no'");
        $newu2unum = $db->result($query, 0);
        if ( $newu2unum > 0) {
            $newu2umsg = "<a href=\"#\" onclick=\"Popup('u2u.php', 'Window', 700, 450);\">$lang[newu2u1] $newu2unum $lang[newu2u2]</a>";
        }
    }

===============
Add Code Above:
===============

// Copyright Notice Mod Begin
$SETTINGS['copyrightnotice'] = stripslashes($SETTINGS['copyrightnotice']);
// Copyright Notice Mod End

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

// Copyright Notice Mod Begin
$lang['copyrightnotice'] = "Copyright Notice:<br /><span class=\"smalltxt\">This will display your copyright notice in the footer.</span>";
// Copyright Notice Mod End

============================================================================================================================
=======
Step 5:
=======
===============================
Go To Administration Panel --> Templates
===============================
=================
Edit Template: footer
=================
==========
Find Code:
==========

$footerstuff[totaltime]$footerstuff[querynum]<br />

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

$SETTINGS[copyrightnotice]
<br />
<br />
$footerstuff[totaltime]$footerstuff[querynum]<br />

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