OK, one more for you
I have created buttons that "replace" or "enhance" the "new post" buttons in some of my forums. What I am doing, is a lot of database manipulation specific to the forum and the thread, so I do not want to touch the standard newreply.php.
I've created my own versions of this, and it works fine. I get exactly what I need, except for under one condition. I have to do my database queries, and inserts before the actual post is made, because part of the post is a result of this database work.
My problem is this: Occassionally a user gets logged out before he clicks the button for timeout reasons. My database work goes forward, because no login is necessary for this, but when standard
vB calls are made to generate the actual post, it fails because the user has been logged out. He is asked to log in again, but then
vB restarts the submission process, causing my database activities to happen twice, which is not good.
So, I am positive there is a method of doing this. How do I determine if the user is currently logged in? (from within php code)?
Thank you.