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.
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();
[]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.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.