![]() |
hook after member login
I want to run a query after a member login to forum
which hook should I use? |
Depends what you want the query to do
|
I would try:
login_verify_success |
Quote:
--------------- Added [DATE]1429603453[/DATE] at [TIME]1429603453[/TIME] --------------- Quote:
|
Quote:
Code:
if ($vbulletin->session->created) 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. |
All times are GMT. The time now is 08:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|