The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Send pm at member log in
Hi,
There are events that can happen on the forum while a member is offline. I was initially planning on pm'ing a member when such an event happened to "them", but then I realized that if a member is offline for a few days it might be annoying to receive 5 - 10 nearly identical pms. I would much rather send one summarizing the events that happened while they were offline. To do this I would need to be able to 1) Get the user's previous last login time and compare it to this current login time to see if any events involving this user have transpired 2) Know where in the vbulletin source code to call the send pm code (if an event occurred and the member needs to receive a pm) Does anyone have any idea how I can get last login time? I know there is a last login in the database, but I was afraid that is overwritten immediately when a member logs back in so that it will never be the time before. Is there something that triggers when a user logs in so I can grab that last login time before it is overwritten with this current login time? Then, does anyone have any idea where I can put the send pm code to send a pm I generate based on events that have transpired between last login and now? I can of course handle generating the pm, I just need to know how to get the last login before current and know where to put the send pm code. Thanks so much for any help! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|