View Full Version : Current time when approving threads/posts
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.
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.