The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
hook after member login
I want to run a query after a member login to forum
which hook should I use? |
#2
|
|||
|
|||
Depends what you want the query to do
|
#3
|
||||
|
||||
I would try:
login_verify_success |
#4
|
||||
|
||||
Does this hook work when a member login with cookie or session and without login form?
--------------- Added [DATE]1429603453[/DATE] at [TIME]1429603453[/TIME] --------------- I want to add user id who login to forum to another table ( not user table) |
#5
|
|||
|
|||
Quote:
Code:
if ($vbulletin->session->created) { // do your logging here } Note that a session is created for a guest, so if you don't want to log every time a new guest arrives, you'll want to check for $vbulletin->userinfo['userid'] != 0 before logging. And yes, if a guest (who will already have a session) logs in, a new session is created (I tested that). Oh, and that probably works for any hook, although you might want to use global_complete since then whatever you do will happen after the page has been sent. |
Благодарность от: | ||
offpista |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|