UBB.Dev
Posted By: RandyJG Beta-[6.2-6.3] UBB6.2 Verify Users 1.0 - 12/03/2003 10:07 PM
Mod Name / Version: UBB6.2 Verify Users 1.0

Description: This lists users not approved in the database and allows you to verify them (instead of using a manual SQL statement to set U_Approved to 'yes').

Helps in cases when users don't get verification e-mails and can't register.

Working Under: UBB.Threads 6.2 & 6.3

Mod Status: Beta

Any pre-requisites: None

Author(s): RandyJG

Date: 12/03/03

Credits: None

Files Altered: None

New Files: verifyuser.php
doverifyusers.php

Database Altered: none

Info/Instructions: UBBThreads 6.2 verifyusers

Use this to verify users who do not recieve verification e-mails and are having troubles registering their accounts.

SETUP:

1) Add the file verifyuser.php and doverifyusers.php to your ubbthreads/admin directory.

2) Insert this into your admin/menu.php file above Approve Users

<br>
<a href="{$config['phpurl']}/admin/verifyuser.php?Cat=$Cat" target="mainFrame">
Verify new users
</a>

This script is a modified version of approveuser.php for approving user registrations.

It acts how Approve Users acts, and send an E-mail if a denial reason is given.

It lists users with U_Approved not equal to 'yes' and sets U_Approved to 'yes' on users checked to be approved, does nothing if no action is set.

I've been using this for awhile to verify users with problems registering on 6.2 only.

NOTE: Language files for approveuser.php are still used in this script.

6.4 Instructions (Smilesforu):
In doverifyusers.php:
1) Change line 67 to this
include ("$thispath/languages/${$config['cookieprefix']."w3t_language"}/admin/doapproveusers.php");
2) and line 95/96 to
$mailer -> send_mail("","","$to","$subject","$msg");

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attached File
100996-verifyusers1.zip  (34 downloads)
Posted By: JoshPet Re: Beta-[6.2] UBB6.2 Verify Users 1.0 - 12/03/2003 10:13 PM
Good work - much needed as a convenience.
Posted By: Twisty Re: Beta-[6.2] UBB6.2 Verify Users 1.0 - 12/03/2003 11:54 PM
This ones works flawlessly in 6.3.2 for those who are wondering.

Great mod btw
Posted By: JoshPet Re: Beta-[6.2] UBB6.2 Verify Users 1.0 - 12/04/2003 12:28 AM
Thanks - I tagged it to include 6.3.
Posted By: smilesforu 6.4 not quite - 12/07/2003 7:36 AM
In 6.4 I get this when I click to add the members.

Warning: Failed opening '/home/www/steelheader/ubbthreads/languages/english/doapproveusers.php' for inclusion (include_path='') in /home2/www/steelheader/ubbthreads/admin/doverifyusers.php on line 67

Fatal error: Call to undefined function: headers() in /home2/www/steelheader/ubbthreads/admin/doverifyusers.php on line 96



This is line 67
include ("$thispath/languages/${$config['cookieprefix']."w3t_language"}/doapproveusers.php");


and this is line 96
$header = $mailer -> headers();
Posted By: smilesforu Re: 6.4 not quite - 12/07/2003 7:50 AM
change line 67 to this

include ("$thispath/languages/${$config['cookieprefix']."w3t_language"}/admin/doapproveusers.php");


and line 95/96 to
$mailer -> send_mail("","","$to","$subject","$msg");


its working for me with 6.4 now
Posted By: CurlGirl Re: Beta-[6.2-6.3] UBB6.2 Verify Users 1.0 - 01/16/2004 7:03 AM
[]RandyJG said:
6.4 Instructions (Smilesforu):
In verifyuser.php:
1) Change line 67 to this
include ("$thispath/languages/${$config['cookieprefix']."w3t_language"}/admin/doapproveusers.php");
2) and line 95/96 to
$mailer -> send_mail("","","$to","$subject","$msg");
[/]

You should make changes to the "doverifyusers.php"...not the "verifyuser.php" as stated if you use 6.4.

This confused me at first.

Great Mod! Thanks!
Posted By: RandyJG Re: Beta-[6.2-6.3] UBB6.2 Verify Users 1.0 - 01/20/2004 4:31 PM
Changed it to doverifyusers.php
© UBB.Developers