MyBB Community Forums

Full Version: determine how old is the thread?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I wanna check if the thread is 60 minutes old and if so show an error but I can't figure how to determine that'

I have dateline form a table fetched and current time but how to create a value that I can use

if ($thread_age > $check_value)

Thread date-line: 1434998086
TIME_NOW - $thread['dateline']

Returns the seconds.
@Jones H thanks big time buddy. I was so close but without your help wouldn't figure it out Wink +1