![]() |
Moderate Registrations From Certain IP Addresses
One of my clients asked me to create this for him a little while ago. It's a pretty simple hack, but seems to be pretty useful, so I thought I'd share it here as well. :)
What does it do? Ever had problem users that keep registering and you can't ban their IP address because it's too common and other user's may be using the same IP/host? This hack may help you then. It gives you a new setting in your Admin CP where you may specify a list of IP addresses to moderate registrations from. Any new registrations from any of the IP addresses you specify will be added to the "(COPPA) Users Awaiting Moderation" group instead of the registered group. Simple, but effective. :) File Modifications: 1 Queries to run: 3 Time to Install: 1 minute |
Thanks for Sharing Brian, I may find this useful ;)
|
nice..
|
Will this work with partial IPs like the normal IP banning options?
|
Quote:
|
Very useful, much better than moderating everybody. :)
Thanks for sharing. |
It looks very good but what if a future vbulletin version installs over those phraseids? Is there any system in place that frees up particular phraseids or make sure these hacks won't clash?
|
Didn't realize I had the phraseid's in there. There's no way future versions of vB would use those though. The only way you would run into a problem is if you already had those phraseids in your db, in which case you'd get an error when trying to run the queries. I've removed the phraseids from the queries though.
|
While I really the idea behind this hack, I think you could approachthis better by focusing on implementing it in this section instead:
PHP Code:
Hope this makes sense. |
Here you go I have a fix for the issue of this user not having to verify their email first.
Move down your whole code and modify it a bit. The new code should look like Code:
$vboptions['ipusermoderation'] = trim($vboptions['ipusermoderation']); Code:
// sort out emails and usergroups Code:
$activateid = build_user_activation_id($userid, 2, 0); Code:
$activateid = build_user_activation_id($userid, $lateractivationid, 0); |
All times are GMT. The time now is 10:11 AM. |
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:
|