The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
my purpose is to extend the login process to check another database if a user doesn't yet exists in vb db. If the given username matches on the other database then a new vb user will be created. This works fine using datamanager etc. The user should then be automatically logged in but that doesn't work. A new user will created but not logged in. Instead he will be redirected to login page again. I tried hook location "login_failure", but looking in the code I saw that it can't work. The hook is called after function verify_authentication, which will of course return false if a user doesn't exists yet. Is there a hook I can use which is called before? Maybe I have overseen something. If not a possible solution would be to redirect to login again using same post data. How can I realize this? Does vB API provide some function for this? Thanks in advance. I'd really appreciate. Greetings Bundschuh The hook is directly called after user |
#2
|
|||
|
|||
![]()
You might be able to do something like use hook global_bootstrap_complete, and check for THIS_SCRIPT == 'login' and $_POST['do'] == 'login', if you can find a way to do what you need to do *before* the vb code checks it's login info.
Otherwise, you can always make file edits if you have to. Of course it's not nearly as nice as using plugins, but if it comes down to it it might be better than not having your mod. |
#3
|
|||
|
|||
![]()
Thanks kh99,
that made my day. It's not 'global_bootstrap_complete' but rather 'global_bootstrap_init_complete' where the basic vB things are initialized. This should replace a hook like 'login_init' or sth else. Greetings Bundschuh |
#4
|
|||
|
|||
![]()
Just a little correction to the hook 'global_bootstrap_complete'.
Actually it is called after '*_init_complete' but the variable $vbulletin is only accessable when calling Code:
global $vbulletin; Bundschuh |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|