Log in

View Full Version : Current time when approving threads/posts


ka99
01-28-2017, 05:32 AM
Hi

is there anyway to assign the current time for moderated threads/posts when approving them?

because is a thread/posts get approved late it will not show up at the top of the forum

Thank you.

ka99
02-09-2017, 12:04 PM
Hi again..

I found this in poll.php and its related to my question.. hope someone can help

-------------------
if ($vbulletin->options['updatelastpost'])
{
// option selected in CP
$threadman =& datamanager_init('Thread', $vbulletin, ERRTYPE_SILENT, 'threadpost');
$threadman->set_existing($threadinfo);
$threadman->set('lastpost', TIMENOW);
$threadman->save();
}
-------------------

my question now is how can I implement set('lastpost, TIMENOW);, to the threads/posts when they get approved by moderators?

TIA.