Story so far: Sending mail from my server hadn't worked in about a year, so I had to turn off user activation, and thus, I have plenty of users and trolls with fake email addresses that registsred for the server. Finally, I now have email working again. How to validate all the users that now exist? This script deactivates everyone, and then sends them all the activation emails so that users with legitimate email addresses can activate themselves. Give your users a week to update their email addresses, and then run this script. It is also possible to force re-activation of a single user.
Code: Select all
##############################################################
## MOD Title: Force Re-activation
## MOD Author: Deepblue < [email protected] > (Vic Vijayakumar) http://www.bluethings.net
## MOD Description: Forces users to reactivate so as to validate their email addresses.
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 2 Minutes
## Files To Edit: (2)
## lang_main.php
## lang_admin.php
## Included Files: (4)
## admin_force_reactivate.php
## usercp_reactivate.php
## admin_force_reactivate.tpl
## admin_force_reactivate.tpl
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
### Author Notes:
##
## This is for forums like mine where I had to turn off activation for a while
## since sendmail wasn't functioning well. Thus, I had a lot of users with invalid [email protected]
## type email addresses. This mod deactivates everyone, and forces them to reactivate.
##
###
##############################################################
## MOD History:
##
## 2004-05-06 - version 1.0.0 BETA
## - First BETA release.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
Comments, suggestions, criticism invited.