The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Is there anyway to disallow currently banned users from registering again?
I dont want to ban their IPs as i may forget to unban them after the temporary ban. |
|
#2
|
|||
|
|||
|
A little bump?
|
|
#3
|
||||
|
||||
|
I think this is what you're looking for sir.
https://vborg.vbsupport.ru/showthread.php?t=199077 We use it on 3.8.1 and love it. |
|
#4
|
|||
|
|||
|
I'm not trying to prevent them from registering, i'm simply trying to make it so that their IPs are banned while they're temp banned .
|
|
#5
|
|||
|
|||
|
You could try this: create a new plugin using hook register_start and this code:
Code:
$banned_result = $vbulletin->db->query_first_slave(
"SELECT * FROM
(SELECT userid, ipaddress FROM " .TABLE_PREFIX . "user WHERE usergroupid = 8) AS banned
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.userid = banned.userid)
WHERE banned.ipaddress = '" . IPADDRESS . "' OR post.ipaddress = '" . IPADDRESS . "'
LIMIT 1");
if ($banned_result)
{
standard_error("You cannot register from this ip");
// to use a phrase here, change to standard_error(fetch_error('phrase_name'));
}
I've only done very basic testing. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|