The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Restrict login to specific userid(s)?
I'm looking for a way to make my boards "read only" rather than turning them off while we're migrating sql to new servers and thought this approach might work. I'm thinking a plugin could be made for global_start that might work after we kill all sessions. Any suggestions on how to do it?
There was a request for Backup Mode that's very old, but it's based on the same issue. |
#2
|
|||
|
|||
To disable most logins, you could add a plugin to the login_verify_success hook:
Code:
// untested, you need to test it out !! // 1,2,3 are userids permitted to login if (!in_array($vbulletin->userinfo['userid'], array(1,2,3))) { $return_value = false; } |
#3
|
|||
|
|||
Thanks, I tried it out on a test board and it didn't block userids I specified from logging in.
|
#4
|
||||
|
||||
You could maybe do it a different way. Add a conditional in your template which prevents people from seeing your website altogether once logged in.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|