![]() |
Delayed Email Verification Hack (DEV)
This hack allows newly registered users awaiting email activation to use the forums, but then restricts them from logging in after a certain period of time and informing them that the time limit has passed.
My forum is designed for a close community of students, but I still want email verification to prevent abuse. But my forum isn't established yet, and I don't want to scare people off by forcing them to check their email. I would like them to check out the forums and get used to them for a while before forcing them to do more work. So I've made this hack that should allow for a delay in email verification of one day. Two files need to be modified and an extra phrase must be added. There are some flaws: In theory because this only restricts login, someone could stay logged on past the grace period, but a higher degree of rigour restricting this exploit would not be appropriate for a delayed email verification anyways. I've been programming for approximate 1 day. If anyone can teach me how to write admincp functions that allow some customization over the grace periods, or teach me how write a program to install this hack that would be great. Replace this code in /login.php Code:
if (!verify_authentication($username, $password, $md5password, $md5password_utf, true)) Code:
if (!verify_authentication($username, $password, $md5password, $md5password_utf, true)) Insert before Code:
if ($send_cookies) With this this code : Code:
//check to see if user need verification UPDATE `phrase` SET `text` = 'You may not login to the forums over one day after registering without activating your account. <br><br> Activation should be easy. Please check your email to find the instructions to activate your account. <br><br> If you''re still having problems, please contact the administrator of the board at $vboptions[webmasteremail].' WHERE `phraseid` = '12302' LIMIT 1; |
You have to attach a text version of this hack as per vbulletin.org TOS.
Good work on your hack! -dndog |
All times are GMT. The time now is 01:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|