============================================================================================================================
Modification Name: Account Verification

Version: v2.0

Author: Dane Smith and Tristan
-Parts of code by Jonathon of JDMnet.org
-Install Guide

-Account Verification v2.0
-BY WormHole and GuldantheWarlock
-------------------------------------------------------------------------------------------------

Description:
This modification will add a link to the Welcome area on the index page for users to verify their account.
This modification adds a link in the Admin Panel to view the verified accounts and has a reset button to reset the verifications.
--------------------------------------------------------------------------------------------------

Changes Implemented: Now when the button to verify your account is clicked the verify link disappears
until the admin resets the verifications. The admin panel has been integrated with the board's admin
panel. And the reset verification feature has been added into the admin view thereby getting rid of
the extra link in the main admin panel.
--------------------------------------------------------------------------------------------------

Compatibility: XMB 1.9.5 SP1

     2004-2010 XMB Garage
    http://www.xmbgarage.com

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
===================================
===================================
Add The Following Code And Submit Changes:
===================================

ALTER TABLE xmb_members ADD verified char(3) NOT NULL default 'No';

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

// Account Verification Mod Begin
$lang['verify'] = "Verification Stats";
$lang['resetver'] = "Reset Verifications";
$lang['verreset'] = "Verifications Reset";
$lang['userver'] = "User Verification";
$lang['acctver'] = "Account Verified:";
$lang['veracct'] = "Verify Account";
$lang['acctversuccess'] = "Thank You! Your Account Has Been Verified.";
// Account Verification Mod End

============================================================================================================================
=======
Step 3:
=======
===========================
Edit File: /include/admin.user.inc.php
===========================
==========
Find Code:
==========

    &raquo;&nbsp;<a href="cp2.php?action=modlog"><?php echo $lang['textmodlogs']?></a><br />
    &raquo;&nbsp;<a href="cp2.php?action=cplog"><?php echo $lang['textcplogs']?></a>

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

    &raquo;&nbsp;<a href="cp2.php?action=cplog"><?php echo $lang['textcplogs']?></a><br />
    &raquo;&nbsp;<a href="cp2.php?action=modlog"><?php echo $lang['textmodlogs']?></a><br />
    <!-- Account Verification Mod Begin -->
    &raquo;&nbsp;<a href="verify_admin.php"><?php echo $lang['verify']?></a><br />
    <!-- Account Verification Mod End -->

============================================================================================================================
=======
Step 4:
=======
===============
Edit File: index.php
===============
==========
Find Code:
==========

        eval('$welcome = "'.template('index_welcome_member').'";');

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

        // Account Verification Mod Begin
        if ($self['verified'] == 'No') {
            $verifiedlink = "<td align=\"center\" width=\"25%\"><a href=\"verify.php\"><strong>$lang[veracct]</strong></a></td>";
        } else {
            $verifiedlink = '';
        }
        // Account Verification Mod End

============================================================================================================================
=======
Step 5:
=======
===============
Edit File: tools.php
===============
==========
Find Code:
==========

    case 'updatemoods':

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

    // Account Verification Mod Begin
    case 'verifyreset':
        $db->query("UPDATE $table_members SET verified='No'");
        nav($lang['resetver']);
        echo "<tr bgcolor=\"$altbg2\" class=\"tablerow\"><td align=\"center\">$lang[tool_completed] $lang[verreset]</td></tr></table></table>";
        end_time();
        break;
    // Account Verification Mod End

============================================================================================================================
=======
Step 6:
=======
=================
Edit File: member.php
=================

$db->query("INSERT INTO $table_members (uid,

================================
Add Code In-Line BEFORE  ) VALUES (
================================

, verified

==============================
Add To End Of Statement BEFORE  )");
==============================

, 'Yes'

============================================================================================================================
=======
Step 7:
=======
===============================
Go To Administration Panel --> Templates
===============================
===============================
Create New Template: confirm_verification
===============================
========================
Add Code and Submit Changes:
========================

<form method="post" action="verify.php">
<table cellspacing="0" cellpadding="0" border="0" width="$tablewidth" align="center">
<tr>
<td bgcolor="$bordercolor">
<table border="0" cellspacing="$borderwidth" cellpadding="$tablespace" width="100%">
<tr class="header">
<td colspan="2">$lang[userver]</td>
</tr>
<tr class="tablerow">
<td bgcolor="$altbg1" valign="top">$lang[status]</td>
<td bgcolor="$altbg2">$lang[acctver] <b>$verified</b></td>
</tr>
<tr class="tablerow">
<td bgcolor="$altbg1">$lang[userver]</td>
<td bgcolor="$altbg2">Please verify your user account to let the administrator know that this is an active account.<br />Just press the button below and your account will be verified.</td>
</tr>
</table></td>
</tr>
</table>
<br />
<center><input type="submit" name="confirmsubmit" value="$lang[veracct]" /></center>
</form>

============================================================================================================================
=======
Step 8:
=======
===============================
Go To Administration Panel --> Templates
===============================
==============================
Edit Template: index_welcome_member
==============================
==========
Find Code:
==========

<td colspan="3">

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

<td colspan="4">

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

<tr class="tablerow" bgcolor="$altbg2">
<td align="center" width="33%"><a href="memcp.php"><strong>$lang[textusercp]</strong></a></td>
<td align="center" width="33%"><a href="#" onclick="Popup('u2u.php','Window', 700, 450);"><strong>$lang[textu2umessenger]</strong></a></td>
<td align="center" width="33%"><a href="#" onclick="Popup('buddy.php', 'Window', 450, 400);"><strong>$lang[launchbuddylist]</strong></a></td>
</tr>

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

<tr class="tablerow" bgcolor="$altbg2">
<td align="center" width="25%"><a href="memcp.php"><strong>$lang[textusercp]</strong></a></td>
<td align="center" width="25%"><a href="#" onclick="Popup('u2u.php','Window', 700, 450);"><strong>$lang[textu2umessenger]</strong></a></td>
<td align="center" width="25%"><a href="#" onclick="Popup('buddy.php', 'Window', 450, 400);"><strong>$lang[launchbuddylist]</strong></a></td>
$verifiedlink
</tr>
============================================================================================================================
=======
Step 9:
=======

Upload To Your Forum's Root Directory: verify_admin.php and verify.php
Upload All Edited Files (admin.user.inc.php, member.php, tools.php, English.lang.php)

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