Foren / Cotonti / Extensions / Support / User API documentation?

lukgoh
#36363 30. November 2012, 18:52

Hey guys, I'm writing a notifications module which I am hoping will work similar to Facebook's system.

Currently, notifications are stored in the database and it has a very simple system to show notifications, similar to when you get a new private message.

I have a notification JS script to "pop up" the notification. I would like to know how I can get these to pop up if the user is logged in, or to wait for the user to log in before it springs into action. I was looking for some more information on the user API as I was thinking maybe I can do this with cookies?

Thanks in advance.

Luke.