The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Can this be done?
|
|
#2
|
|||
|
|||
|
You can block IP's (or subnets) in your vBulletin Options.
|
|
#3
|
|||
|
|||
|
How please?
|
|
#4
|
|||
|
|||
|
Quote:
I am currently looking into 'custom' banning options as well. A particular 'user' can be banned(with controlable 'permissions') by placing that user into the 'Users'->'Bannned User' group and an IP in general can be locked out entirely by use of same option 1'st mentioned above . . . I am looking into a 'hybrid' of the two -> BAN Any User that is logging from a particular, known IP. In my case, that would be thousands of corporate WORK computers which, not surprizingly, share the same IP. Option1 above does just that quite effectively BUT I would like to be able to control 'permissions' as well as/instead of disabling 'registration' and viewing/posting ENTIRELY. Think of it as a strict 'READING CLUB' for a particular group of both registered/non-register users in general . . . I am currently compiling a PHP 'function list' in pursuit of that eventual goal, Rabbit |
|
#5
|
|||
|
|||
|
Quote:
If the logging IP (from work) is listed 1'st in my banning list & I get a match I want to automatically log that user as user#8(forumid = 8?). User8 has already been assigned to a special usegroup with special, restricted permissions. Can I Just Return to global.php and this will do the trick?? Can I 'break' from a 'foreach'?? I Guess I Need To get a test server going huh?? Rabbit Code:
function verify_ip_ban()
{
global $vbulletin;
$vbulletin->options['banip'] = trim($vbulletin->options['banip']);
if ($vbulletin->options['enablebanning'] == 1 AND $vbulletin->options['banip'])
{
$addresses = explode(' ', preg_replace("/[[:space:]]+/", " ", $vbulletin->options['banip']) );
$myIPposition = 0; ->MYADD
foreach ($addresses AS $val)
{
if (strpos(' ' . IPADDRESS, ' ' . trim($val)) !== false)
{
if ($myIPposition++ == 1); ->MYADD
{
$vbulletin->forumid = 8; ->MYADD
break; ->MYADD
}
else
{
eval(standard_error(fetch_error('banip', $vbulletin->options['contactuslink'])));
}
}
}
}
}
|
|
#6
|
|||
|
|||
|
OK I just want to hide my isp from all members on my forum.
|
|
#7
|
|||
|
|||
|
Quote:
Did MarcoH64 & my response indeed answer Your Q?? I'm looking to do a forced login to forumid 'user = 8' based on 'detected IP'. Rabbit |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|