MyBB Community Forums

Full Version: Latest post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can someone please tell me how to do an sql query to obtain the name, thread, post number etc. of the latest post to be made on a forum.

For example, say I wanted to check for new posts made to thread 50 (tid=50), how could I check for that and presumably I'd also need to use javascript as well as php?

I'm attempting a plugin that checks for new posts made to a thread so that the user can be alerted that things have changed before they actually submit their reply.

Thank you Smile